/* Quicksand self-hosteado (OFL) — evita depender de Google Fonts CDN en runtime.
   Fuente variable (un archivo cubre 300-700, incluido el 600 que usan nav y títulos),
   partida por unicode-range igual que Google Fonts: latin-ext solo baja si la página lo usa. */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/quicksand-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/quicksand-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens de marca — waoo-kit-de-marca/LEEME.txt (v1.1, 2026-10-14) */
:root {
  --wq-morado: #680198;
  --wq-naranja: #FF9E02;
  --wq-morado-intenso: #8100BC;
  --wq-morado-noche: #35034A;
  --wq-lavanda: #F4E8FA;
  --wq-crema: #FFF1D9;
  --wq-gris-lavanda: #6B5B7B;
}

* { box-sizing: border-box; }

/* El display:none que el navegador da a [hidden] pierde contra cualquier regla display del sitio
   (.wq-tab-panel es flex, .wq-added-pill inline-flex...): sin esto, hidden no oculta nada. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--wq-morado-noche);
  font-family: 'Quicksand', 'Arial Rounded MT Bold', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wq-morado); }
a:hover { color: var(--wq-morado-noche); }

.contenedor-limpio {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle farthest-corner at 50% 50%, var(--wq-morado-intenso) 0%, var(--wq-morado-intenso) 17%, var(--wq-morado-noche) 100%);
}

.tarjeta, .tarjeta-login, .tarjeta-error {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(53, 3, 74, 0.25);
}

.tarjeta-login h1, .tarjeta-error h1, .tarjeta h1 { margin-top: 0; }
.subtitulo { color: var(--wq-gris-lavanda); margin-top: -8px; }

/* Tablas del panel: en el celular se desplazan dentro de la tarjeta en vez de desbordar la página. */
.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) {
  .wq-admin-main { padding: 16px; }
  .wq-admin-main .tarjeta { padding: 20px; }
}

form label { display: block; font-weight: 600; margin: 14px 0 4px; }
form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--wq-lavanda);
  border-radius: 10px;
  font-family: inherit;
}

.wq-btn, button {
  background: var(--wq-naranja);
  color: var(--wq-morado-noche);
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
}

.wq-link-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font: inherit;
}

.aviso-error { color: #B00020; font-weight: 600; }
.aviso-ok { color: #1B8A3C; font-weight: 600; }
.detalle-error { white-space: pre-wrap; background: #F6F6FB; padding: 12px; border-radius: 8px; font-size: 12px; }

.wq-admin-nav {
  background: var(--wq-morado);
  color: #FFFFFF;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wq-admin-nav a { color: #FFFFFF; margin-right: 16px; }
.wq-admin-main { padding: 32px; }

/* ---- Editor de entradas del blog (admin/posts/formulario.php, Trix en vendor/trix) ---- */
.wq-post-form { max-width: 860px; margin: 0 auto; }
.wq-post-form-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.wq-post-form-head h1 { margin: 0; }
.wq-ayuda { margin: 0 0 8px; font-size: 14px; color: var(--wq-gris-lavanda); }
.wq-post-form input[type="text"], .wq-post-form select { border-color: #D9C2E6; font-size: 16px; }
.wq-post-form select { width: 100%; padding: 10px 12px; border: 1px solid #D9C2E6; border-radius: 10px; background: #FFFFFF; color: inherit; font-family: inherit; }
.wq-post-form select + .wq-ayuda { margin-top: 6px; }
.wq-post-form-portada { display: block; max-width: 200px; margin-bottom: 8px; border-radius: 10px; }
.wq-post-form-avanzado { margin-top: 20px; }
.wq-post-form-avanzado summary { cursor: pointer; font-weight: 600; color: var(--wq-morado); }
.wq-post-form-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.wq-post-form-acciones .wq-btn { margin: 0; font-size: inherit; }
.wq-btn-sec {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 8px 18px;
  border: 2px solid var(--wq-morado);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--wq-morado);
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.wq-btn-sec:hover { background: var(--wq-lavanda); color: var(--wq-morado-noche); }

/* Barra pegada arriba mientras se escribe un texto largo: el marco la limita al editor. */
.wq-editor-marco { position: relative; }
.wq-editor-marco trix-toolbar { position: sticky; top: 0; z-index: 3; padding: 8px 0 0; background: #FFFFFF; }
.wq-editor-marco trix-toolbar .trix-button-row { flex-wrap: wrap; gap: 0 8px; overflow-x: visible; }
.wq-editor-marco trix-toolbar .trix-button-group { margin: 0 0 8px; border: 1px solid #D9C2E6; border-radius: 10px; overflow: hidden; background: #FFFFFF; }
.wq-editor-marco trix-toolbar .trix-button { border-bottom: 0; color: var(--wq-morado-noche); }
.wq-editor-marco trix-toolbar .trix-button:not(:first-child) { border-left: 1px solid var(--wq-lavanda); }
.wq-editor-marco trix-toolbar .trix-button--icon { width: 2.75em; height: 2.25em; max-width: none; }
.wq-editor-marco trix-toolbar .trix-button--icon::before { opacity: .8; }
.wq-editor-marco trix-toolbar .trix-button:not(:disabled):hover { background: var(--wq-lavanda); }
.wq-editor-marco trix-toolbar .trix-button.trix-active { background: var(--wq-crema); box-shadow: inset 0 -3px 0 var(--wq-naranja); }
.wq-editor-marco trix-toolbar .trix-button:focus-visible { outline: 2px solid var(--wq-morado); outline-offset: -2px; }
.wq-editor-marco trix-toolbar .trix-dialog { border-top: 3px solid var(--wq-morado); border-radius: 10px; box-shadow: 0 12px 32px rgba(53, 3, 74, 0.18); font-size: 15px; }
.wq-editor-marco trix-toolbar .trix-input--dialog { border: 1px solid #D9C2E6; border-radius: 8px; }
/* "form input" (arriba) les daba width:100% a los botones "Enlace" y "Quitar enlace" del diálogo. */
.wq-editor-marco trix-toolbar .trix-button--dialog { width: auto; color: var(--wq-morado); font-weight: 700; }

.wq-editor {
  display: block;
  min-height: 340px;
  padding: 14px 18px;
  border: 1px solid #D9C2E6;
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--wq-morado-noche);
  font-size: 17px;
  line-height: 1.65;
}
.wq-editor:focus { border-color: var(--wq-morado); box-shadow: 0 0 0 3px rgba(104, 1, 152, 0.15); }
/* Cada párrafo de Trix es un <div>: separados como en el blog publicado. */
.wq-editor > div:not(:last-child) { margin-bottom: 0.8em; }
.wq-editor h2 { margin: 0.8em 0 0.3em; font-size: 1.4em; line-height: 1.3; }
.wq-editor h3 { margin: 0.7em 0 0.3em; font-size: 1.2em; line-height: 1.3; }
.wq-editor ul, .wq-editor ol { margin: 0.4em 0; padding-left: 1.5em; }
.wq-editor blockquote { margin: 0.6em 0; padding: 0.2em 0 0.2em 1em; border-left: 4px solid var(--wq-naranja); background: var(--wq-crema); }
.wq-editor pre { margin: 0.6em 0; padding: 0.6em 0.8em; border-radius: 8px; background: var(--wq-lavanda); font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; white-space: pre-wrap; }
.wq-editor a { color: var(--wq-morado); }
.wq-editor + .aviso-error { margin: 8px 0 0; }

@media (max-width: 600px) {
  .wq-post-form { padding: 20px 16px; }
}
