/* =========================================================================
   Singularmente · sistema de diseño
   Tinta indigo-slate + papel + petróleo/teal, acento ámbar.
   Display: Spectral · Cuerpo: IBM Plex Sans · Datos: IBM Plex Mono
   ========================================================================= */

:root {
  --ink: #1C2536;
  --ink-soft: #34404F;
  --muted: #5A6472;
  --paper: #F4F4F1;
  --paper-raised: #FBFBF9;
  --white: #FFFFFF;
  --teal: #17605B;
  --teal-dark: #0F4A46;
  --teal-wash: #E7EFEE;
  --amber: #E3A13C;
  --amber-dark: #B97C1E;
  --line: rgba(28, 37, 54, 0.12);
  --line-strong: rgba(28, 37, 54, 0.22);
  --shadow: 0 1px 2px rgba(28, 37, 54, 0.04), 0 8px 24px rgba(28, 37, 54, 0.06);
  --shadow-lg: 0 2px 4px rgba(28, 37, 54, 0.05), 0 18px 48px rgba(28, 37, 54, 0.10);

  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1120px;
  --wrap-narrow: 720px;

  /* Dimensiones (chips) */
  --dim-cognitivo: #17605B;
  --dim-creativo: #7A5AA6;
  --dim-emocional: #C4553D;
  --dim-sensorial: #2E7DA6;
  --dim-social: #4E8D5B;
  --dim-motivacional: #C98A22;
}

/* ---- Reset ligero -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
code { font-family: var(--font-mono); font-size: .85em; background: var(--teal-wash); padding: .1em .4em; border-radius: 5px; color: var(--teal-dark); }

/* ---- Utilidades ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding: 56px 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* ---- Botones ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---- Cabecera ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 244, 241, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--teal); flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; color: var(--ink); letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--ink-soft); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { background: var(--teal-wash); color: var(--teal-dark); text-decoration: none; }
.nav-cta { background: var(--teal); color: #fff !important; margin-left: 6px; }
.nav-cta:hover { background: var(--teal-dark) !important; }

.nav-toggle, .nav-burger { display: none; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding: 40px 0 20px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.eyebrow {
  font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--teal-dark); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); margin-bottom: .35em; }
.hero-accent { color: var(--teal); }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 40ch; margin-bottom: 1.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.hero-note { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.hero-figure { display: flex; justify-content: center; }
.constellation { width: 100%; max-width: 420px; overflow: visible; }
.profile-shape { transition: none; }

/* ---- Encabezado de página ------------------------------------------------ */
.page-head { padding: 42px 0 8px; }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); }
.page-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.crumbs { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; opacity: .6; }
.crumbs-current { color: var(--ink-soft); }

.section-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: .2em; }
.section-sub { color: var(--muted); margin-bottom: 28px; max-width: 60ch; }

/* ---- Puertas de entrada -------------------------------------------------- */
.doors-section { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doors { display: grid; grid-template-columns: 1fr; gap: 16px; }
.door {
  display: block; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: var(--radius); padding: 24px; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease;
}
.door:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.door-tag { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.door h3 { font-size: 1.25rem; margin: .5em 0 .35em; }
.door p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1em; }
.door-cta { font-weight: 600; color: var(--teal); font-size: .95rem; }
.door.dim-familia_sospecha { border-left-color: var(--dim-cognitivo); }
.door.dim-familia_dx { border-left-color: var(--dim-emocional); }
.door.dim-docente { border-left-color: var(--dim-social); }
.door.dim-adulto { border-left-color: var(--dim-creativo); }

/* ---- Banda CTA ----------------------------------------------------------- */
.cta-band { background: var(--ink); color: #EAEDF1; }
.cta-band .section-title { color: #fff; }
.cta-band-inner { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.cta-band p { color: #C6CDD6; max-width: 60ch; margin: 0; }

/* ---- Tarjetas y chips ---------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: transform .14s ease, box-shadow .14s ease; color: var(--ink);
}
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.2rem; margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .97rem; margin-bottom: .8em; }
.card-more { font-weight: 600; color: var(--teal); font-size: .92rem; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }

.chip {
  font-family: var(--font-mono); font-size: .72rem; padding: 3px 9px; border-radius: 999px;
  background: var(--teal-wash); color: var(--teal-dark); white-space: nowrap; line-height: 1.5;
}
.reading { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }

.chip.dim-cognitivo   { background: #E4EEEC; color: #10514C; }
.chip.dim-creativo    { background: #EEE9F5; color: #5B4084; }
.chip.dim-emocional   { background: #F7E7E2; color: #9C3D28; }
.chip.dim-sensorial   { background: #E2EEF5; color: #1F5E82; }
.chip.dim-social      { background: #E5F0E7; color: #356B41; }
.chip.dim-motivacional{ background: #F6ECD9; color: #8A5E14; }
.chip-area { background: var(--teal-wash); color: var(--teal-dark); }

/* ---- Lista de módulos ---------------------------------------------------- */
.modules-section { background: var(--paper-raised); border-top: 1px solid var(--line); }
.module-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.module-row { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); color: var(--ink); }
.module-row:last-child { border-bottom: none; }
.module-row:hover { background: var(--teal-wash); text-decoration: none; }
.module-num { font-family: var(--font-mono); font-size: .95rem; color: var(--amber-dark); font-weight: 500; flex: none; }
.module-text { display: flex; flex-direction: column; flex: 1; }
.module-title { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.module-sub { color: var(--muted); font-size: .92rem; }
.module-arrow { color: var(--teal); font-size: 1.2rem; flex: none; }

/* ---- Artículo / prosa ---------------------------------------------------- */
.article { padding: 8px 0 20px; }
.article-head { margin-bottom: 20px; }
.article-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.article-audience { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.article-summary {
  font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); font-family: var(--font-display);
  border-left: 3px solid var(--amber); padding-left: 18px; margin: 20px 0 28px;
}
.prose { font-size: 1.06rem; color: var(--ink); }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 1.4em 0; padding: 14px 20px; background: var(--teal-wash); border-radius: var(--radius-sm);
  border-left: 4px solid var(--teal); color: var(--ink-soft); font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .96rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--teal-wash); color: var(--teal-dark); font-family: var(--font-body); font-weight: 600; }

.next-step {
  margin: 32px 0; padding: 24px; background: #FBF4E7; border: 1px solid #EFD9AF;
  border-radius: var(--radius); border-left: 4px solid var(--amber);
}
.next-step h2, .next-step h3 { color: var(--amber-dark); font-size: 1.3rem; margin-bottom: .4em; }
.next-step .prose { font-size: 1rem; }

.article-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---- Glosario ------------------------------------------------------------ */
.glossary { display: flex; flex-direction: column; gap: 2px; }
.glossary-item { padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.glossary-item dt { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin-bottom: .25em; }
.glossary-item dd { margin: 0; color: var(--ink-soft); }

/* ---- FAQ ----------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--teal); font-size: 1.4rem; flex: none; }
.faq-item[open] summary::after { content: '–'; }
.faq-cat { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--teal-wash); padding: 3px 8px; border-radius: 999px; }
.faq-answer { padding: 0 20px 18px; color: var(--ink-soft); }
.faq-answer p { margin: 0; }

/* ---- Mitos --------------------------------------------------------------- */
.myth-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.myth-item { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.myth-false, .myth-true { padding: 20px; }
.myth-false { background: #FBF1EF; }
.myth-true { background: var(--white); }
.myth-label { display: inline-block; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.myth-false .myth-label { background: #E9BEB4; color: #8A2E1A; }
.myth-true .myth-label { background: var(--teal-wash); color: var(--teal-dark); }
.myth-false p, .myth-true p { margin: 0; }
.myth-false p { color: #7A3323; font-weight: 500; }
.myth-true p { color: var(--ink-soft); }

/* ---- Actividades --------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-bottom: 24px; padding: 18px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-field { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.filter-field select { font-family: var(--font-body); font-size: 1rem; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); color: var(--ink); }
.filter-count { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); margin: 0 0 0 auto; }
.activity-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.activity-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.activity-card h3 { font-size: 1.12rem; margin: .5em 0 .35em; }
.activity-card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: .6em; }
.activity-age { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }

/* ---- CCAA ---------------------------------------------------------------- */
.ccaa-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
.ccaa-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; color: var(--ink); }
.ccaa-card:hover { background: var(--teal-wash); text-decoration: none; }
.ccaa-card h3 { font-size: 1.08rem; margin: 0; }
.region-block { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.region-block h2 { font-size: 1.2rem; margin-bottom: .3em; }
.region-block p { color: var(--ink-soft); margin: 0; }
.region-cta { margin-top: 24px; }
.disclaimer-note { font-size: .92rem; color: var(--muted); background: var(--paper-raised); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 20px; }

/* ---- Bibliografía -------------------------------------------------------- */
.book-group { font-size: 1.25rem; margin: 28px 0 12px; }
.book-list { list-style: none; padding: 0; margin: 0 0 12px; }
.book-item { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.book-title { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; }
.book-author { color: var(--ink-soft); font-size: .95rem; }
.book-year { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.book-note { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---- Generador de documentos --------------------------------------------- */
.doc-card { display: flex; flex-direction: column; }
.doc-icon { font-size: 1.6rem; color: var(--amber-dark); line-height: 1; margin-bottom: 6px; }

.doc-form { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field > label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.form-field .req { color: #C4553D; }
.form-field input[type="text"],
.form-field input[type="date"],
.form-field textarea,
.form-field select {
  font-family: var(--font-body); font-size: 1rem; padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: 9px; background: var(--white); color: var(--ink); width: 100%;
}
.form-field textarea { resize: vertical; line-height: 1.55; }
.form-field.missing input,
.form-field.missing textarea,
.form-field.missing select,
.form-field.missing .checkbox-group { border-color: #D98A6A; background: #FBF1EE; }
.checkbox-group { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; background: var(--white); }
.checkbox-opt { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .97rem; }
.checkbox-opt input { accent-color: var(--teal); width: 18px; height: 18px; margin-top: 2px; flex: none; }

.doc-actions { margin-top: 22px; text-align: center; }

.doc-result { margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--teal-wash); }
.doc-preview {
  white-space: pre-wrap; font-family: 'IBM Plex Mono', monospace; font-size: .9rem; line-height: 1.7;
  color: var(--ink); background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm); padding: 24px; margin: 16px 0; box-shadow: var(--shadow);
}
.doc-footnote { font-size: .9rem; color: var(--muted); background: #FBF4E7; border: 1px solid #EFD9AF; border-radius: var(--radius-sm); padding: 12px 16px; }

/* ---- Comparador de perfiles ---------------------------------------------- */
.compare-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 24px; }
.compare-list { display: flex; flex-direction: column; gap: 18px; }
.compare-row { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 20px 22px; box-shadow: var(--shadow); }
.compare-area { font-size: 1.18rem; margin-bottom: 14px; }
.compare-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.compare-cell { border-left: 3px solid var(--line-strong); padding: 4px 0 4px 14px; }
.compare-cell p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.cell-aacc { border-left-color: var(--dim-cognitivo); }
.cell-tdah { border-left-color: var(--dim-sensorial); }
.cell-tea { border-left-color: var(--dim-creativo); }
.compare-tag { display: inline-block; font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .06em; margin-bottom: 5px; }
.cell-aacc .compare-tag { color: var(--dim-cognitivo); }
.cell-tdah .compare-tag { color: var(--dim-sensorial); }
.cell-tea .compare-tag { color: var(--dim-creativo); }
.compare-foot { margin-top: 28px; padding: 22px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.compare-foot p { color: var(--ink-soft); }

/* ---- Diario del observador ----------------------------------------------- */
.diary-form { margin: 8px 0 20px; display: flex; flex-direction: column; gap: 16px; }
.diary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.diary-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diary-count { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); margin: 0; }
.diary-tools { display: flex; gap: 10px; }
.diary-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.diary-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); padding: 16px 18px; box-shadow: var(--shadow); }
.diary-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.diary-date { font-family: var(--font-mono); font-size: .8rem; color: var(--ink); font-weight: 500; }
.diary-del { margin-left: auto; background: transparent; border: 0; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.diary-del:hover { background: #FBF1EE; color: #A23A1E; }
.diary-text { margin: 0; color: var(--ink-soft); white-space: pre-wrap; }

/* ---- Checklist ----------------------------------------------------------- */
.check-group { margin-bottom: 22px; }
.check-title { font-size: 1.14rem; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--teal-wash); }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.check-item { display: flex; align-items: flex-start; gap: 11px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); cursor: pointer; font-size: .98rem; }
.check-item:hover { background: var(--teal-wash); }
.check-item input { accent-color: var(--teal); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.check-item input:checked + span { color: var(--muted); text-decoration: line-through; }
.check-notes { margin-top: 20px; }

/* ---- Newsletter ---------------------------------------------------------- */
.newsletter-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); max-width: 560px; }
.newsletter-form { display: flex; flex-direction: column; gap: 16px; }
.newsletter-form input[type="email"] { font-family: var(--font-body); font-size: 1.05rem; padding: 13px 16px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
.consent { font-size: .92rem; color: var(--ink-soft); align-items: flex-start; }
.consent input { accent-color: var(--teal); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.newsletter-note { margin-top: 18px; font-size: .88rem; color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form-error { background: #FBF1EE; border: 1px solid #E9BEB4; color: #8A2E1A; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .95rem; }

.btn-danger { color: #A23A1E; border-color: #E4B5A8; }
.btn-danger:hover { background: #FBF1EE; color: #8A2E1A; }

/* ---- Asociaciones -------------------------------------------------------- */
.assoc-block { border-bottom: none; }
.assoc-list { list-style: none; padding: 0; margin: 0 0 12px; }
.assoc-item { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.assoc-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.assoc-url { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; background: var(--teal-wash); color: var(--teal-dark); padding: 3px 10px; border-radius: 999px; }
.assoc-url:hover { background: var(--teal); color: #fff; text-decoration: none; }
.assoc-note { flex-basis: 100%; color: var(--muted); font-size: .9rem; }
.assoc-help { color: var(--ink-soft); font-size: .95rem; margin-top: 6px; }
.national-assoc { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---- Recursos hub -------------------------------------------------------- */
.resource-card h3 { font-size: 1.2rem; }

/* ---- Búsqueda ------------------------------------------------------------ */
.search-form { display: flex; gap: 10px; margin-top: 18px; }
.search-form input[type="search"] { flex: 1; font-family: var(--font-body); font-size: 1.05rem; padding: 13px 18px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink); }
.search-group { font-size: 1.2rem; margin: 26px 0 10px; }
.search-list { list-style: none; padding: 0; margin: 0; }
.search-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.search-list li a { font-weight: 600; font-size: 1.05rem; }
.search-list li span { display: block; color: var(--muted); font-size: .92rem; margin-top: 3px; }

/* ---- Cribado ------------------------------------------------------------- */
.disclaimer-box { background: #FBF4E7; border: 1px solid #EFD9AF; border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 28px; }
.disclaimer-box.small { padding: 14px 18px; }
.disclaimer-box h2 { color: var(--amber-dark); font-size: 1.2rem; margin-bottom: .3em; }
.disclaimer-box p { margin: 0; color: var(--ink-soft); }

.test-catalog { display: grid; grid-template-columns: 1fr; gap: 14px; }
.test-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.test-card.is-active { border-left: 4px solid var(--teal); }
.test-card.is-soon { opacity: .72; }
.test-card h3 { font-size: 1.14rem; margin-bottom: .2em; }
.test-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.badge-soon { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); background: var(--paper); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; flex: none; }

.test-audience-note { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.test-head { padding-bottom: 0; }

.test-progress { position: sticky; top: 66px; height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 26px; z-index: 5; }
.test-progress-bar { height: 100%; width: 0; background: var(--teal); transition: width .2s ease; }

.test-items { list-style: none; padding: 0; margin: 0; counter-reset: item; }
.test-item { margin-bottom: 14px; }
.test-item fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0; background: var(--white); transition: border-color .15s ease, background .15s ease; }
.test-item.missing fieldset { border-color: #D98A6A; background: #FBF1EE; }
.test-item legend { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 0; font-weight: 500; font-size: 1.03rem; }
.test-item-num { font-family: var(--font-mono); font-size: .82rem; color: var(--amber-dark); background: #FBF4E7; border-radius: 6px; padding: 2px 7px; flex: none; }
.test-item-text { flex: 1; min-width: 60%; }
.scale { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.scale-opt { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: .95rem; transition: background .12s ease, border-color .12s ease; }
.scale-opt:hover { background: var(--teal-wash); }
.scale-opt input { accent-color: var(--teal); width: 18px; height: 18px; flex: none; }
.scale-opt input:checked + span { font-weight: 600; color: var(--teal-dark); }

.test-actions { margin-top: 26px; text-align: center; }
.test-warning { color: #A23A1E; font-weight: 600; margin-top: 12px; }

/* ---- Resultado ----------------------------------------------------------- */
.test-result { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--teal-wash); }
.test-result h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.result-intro { color: var(--ink-soft); max-width: 60ch; }
.result-figure { display: flex; justify-content: center; margin: 20px 0; }
#radar { width: 100%; max-width: 620px; height: auto; margin: 0 auto; }
.result-bars { margin: 20px 0; }
.reading-list { list-style: none; padding: 0; margin: 0; }
.reading-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.reading-dim { font-family: var(--font-mono); font-size: .78rem; padding: 3px 9px; border-radius: 999px; }
.reading-dim.dim-cognitivo { background: #E4EEEC; color: #10514C; }
.reading-dim.dim-creativo { background: #EEE9F5; color: #5B4084; }
.reading-dim.dim-emocional { background: #F7E7E2; color: #9C3D28; }
.reading-dim.dim-sensorial { background: #E2EEF5; color: #1F5E82; }
.reading-dim.dim-social { background: #E5F0E7; color: #356B41; }
.reading-dim.dim-motivacional { background: #F6ECD9; color: #8A5E14; }
.reading-pct { margin-left: auto; font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.result-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* ---- Estados varios ------------------------------------------------------ */
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state p { margin-bottom: 16px; }
.error-page { padding: 80px 0; text-align: center; }
.error-code { font-family: var(--font-mono); font-size: 3rem; color: var(--amber); margin: 0; }
.error-page .hero-actions { justify-content: center; }

/* ---- Barra de cuidado ---------------------------------------------------- */
.carebar { background: var(--ink); color: #D7DCE3; }
.carebar-inner { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; }
.carebar-icon { color: var(--amber); font-size: 1.2rem; flex: none; line-height: 1.5; }
.carebar p { margin: 0; font-size: .95rem; }
.carebar strong { color: #fff; }

/* ---- Pie ----------------------------------------------------------------- */
.site-footer { background: #131A24; color: #AEB6C1; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-brand .brand-name { color: #fff; font-size: 1.2rem; }
.footer-tag { color: #8A93A0; font-size: .95rem; margin-top: 8px; }
.footer-col h3 { color: #fff; font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-col a { display: block; color: #AEB6C1; font-size: .95rem; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: .88rem; color: #8A93A0; }
.footer-legal-links a { color: #AEB6C1; margin-left: 16px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 860px) {
  .site-nav {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    gap: 2px; transform: translateY(-120%); transition: transform .22s ease; box-shadow: var(--shadow-lg);
  }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); }
  .site-nav a { padding: 12px 10px; border-radius: 8px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer;
    background: transparent; border: 0;
  }
  .nav-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (min-width: 640px) {
  .doors { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .activity-grid { grid-template-columns: repeat(2, 1fr); }
  .ccaa-grid { grid-template-columns: repeat(2, 1fr); }
  .myth-item { grid-template-columns: 1fr 1.2fr; }
  .scale { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero { padding: 56px 0 32px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .doors { grid-template-columns: repeat(2, 1fr); }
  .cta-band-inner { grid-template-columns: 1.6fr auto; }
  .ccaa-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 68px 0; }
}

@media (min-width: 1040px) {
  .doors { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Preferencias de movimiento ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---- Fuentes y referencias ------------------------------------------------ */
.sources-kind { font-size: 1.2rem; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--teal-wash); }
.sources-list { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.source-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .95rem; }
.source-title { font-weight: 600; }
.source-meta { color: var(--muted); margin-left: 4px; }
.source-link { font-family: var(--font-mono); font-size: .8rem; margin-left: 6px; }
.source-notes { margin: 4px 0 0; color: var(--ink-soft); font-size: .88rem; }
.article-sources { margin: 34px 0 8px; padding: 20px 22px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.article-sources h2 { font-size: 1.1rem; margin-bottom: 10px; }
.article-sources ul { margin: 0 0 10px; padding-left: 18px; color: var(--ink-soft); font-size: .92rem; display: flex; flex-direction: column; gap: 5px; }
