/* ══════════════════════════════════════════════════════════════════════════
   Autismo Pamplona · hoja de estilos
   Direccion: papel calido y formas organicas con los cuatro colores del
   infinito (coral, cielo, salvia, sol). Calma visual: poco movimiento, nada
   que parpadee, buen contraste y prefers-reduced-motion respetado.
   Cada seccion tiene su color: terapia=coral, informacion=sky,
   materiales=sage, habilidades=sun, localidades=ink.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --paper: #FAF5EE;
  --paper-2: #F3ECE1;
  --card: #FFFFFF;
  --line: #E7DDCE;
  --ink: #1F2D3A;
  --ink-2: #3F4C59;
  --muted: #5A6470;

  --coral: #EE8B7E; --coral-ink: #A23F35; --coral-soft: #FCE8E3;
  --sky: #86C6E0;   --sky-ink: #1F6385;   --sky-soft: #E2F0F6;
  --sage: #93C4A3;  --sage-ink: #2D6844;  --sage-soft: #E4F0E7;
  --sun: #EDC15A;   --sun-ink: #77560B;   --sun-soft: #FAEFD2;
  --plum: #B9A3D0;  --plum-ink: #5B4479;  --plum-soft: #EFE8F6;

  --primary: #1F6385;
  --primary-hover: #164B66;
  --wa: #1A7F4B;
  --wa-hover: #13663B;

  --font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(31, 45, 58, .05), 0 8px 24px -12px rgba(31, 45, 58, .18);
  --shadow-lg: 0 2px 4px rgba(31, 45, 58, .05), 0 24px 48px -20px rgba(31, 45, 58, .28);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* Color de seccion: cualquier bloque con data-c hereda --c, --c-ink y --c-soft */
[data-c="coral"] { --c: var(--coral); --c-ink: var(--coral-ink); --c-soft: var(--coral-soft); }
[data-c="sky"]   { --c: var(--sky);   --c-ink: var(--sky-ink);   --c-soft: var(--sky-soft); }
[data-c="sage"]  { --c: var(--sage);  --c-ink: var(--sage-ink);  --c-soft: var(--sage-soft); }
[data-c="sun"]   { --c: var(--sun);   --c-ink: var(--sun-ink);   --c-soft: var(--sun-soft); }
[data-c="ink"]   { --c: var(--plum);  --c-ink: var(--plum-ink);  --c-soft: var(--plum-soft); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}
/* grano de papel muy suave */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.18; color: var(--ink); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Botones ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1rem/1.2 var(--font-body);
  padding: .85em 1.35em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px rgba(31, 99, 133, .7); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .55em 1em; font-size: .95rem; }
.w-full { width: 100%; }

/* ── Cabecera ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 238, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo img { width: 46px; height: 46px; }
.logo__name { font-family: var(--font-display); font-size: 1.32rem; line-height: 1; }
.logo__sub { display: block; font: 700 .68rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 11px; border-radius: 999px; border: 0; background: none;
  font: 700 .97rem/1 var(--font-body); color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.nav__link:hover, .nav__trigger:hover, .nav__item.open > .nav__trigger { background: var(--paper-2); color: var(--ink); }
.nav__link.is-active, .nav__trigger.is-active { box-shadow: inset 0 -3px 0 var(--c, var(--sun)); border-radius: 10px 10px 4px 4px; }
.nav__trigger svg { width: 14px; height: 14px; transition: transform .2s; }
.nav__item { position: relative; }
.nav__item.open > .nav__trigger svg { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  min-width: 290px; padding: 10px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item.open > .nav__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__panel a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .97rem; line-height: 1.25;
}
.nav__panel a:hover { background: var(--c-soft); }
.nav__panel .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--c-soft); color: var(--c-ink); display: grid; place-items: center; flex: none; }
.nav__panel .ico svg { width: 20px; height: 20px; }
.nav__panel .nav__all { margin-top: 4px; border-top: 1px dashed var(--line); border-radius: 0 0 12px 12px; color: var(--c-ink); font-size: .9rem; }
.header__cta { display: flex; gap: 8px; flex: none; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; }

@media (max-width: 1460px) { .header__cta .btn-ghost { display: none; } }
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header__cta { margin-left: auto; }
  .mobile-nav { display: block; max-height: 0; overflow: hidden; transition: max-height .3s ease; background: var(--paper); }
  .mobile-nav.open { max-height: 85vh; overflow-y: auto; border-top: 1px solid var(--line); }
  .mobile-nav__inner { padding: 12px var(--gutter) 24px; }
  .mobile-nav details { border-bottom: 1px solid var(--line); }
  .mobile-nav summary, .mobile-nav > .mobile-nav__inner > a {
    display: flex; align-items: center; gap: 10px; padding: 14px 4px;
    font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer; list-style: none;
  }
  .mobile-nav > .mobile-nav__inner > a { border-bottom: 1px solid var(--line); }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
  .mobile-nav summary svg { margin-left: auto; width: 16px; height: 16px; transition: transform .2s; }
  .mobile-nav details[open] summary svg { transform: rotate(180deg); }
  .mobile-nav details a { display: block; padding: 9px 0 9px 22px; color: var(--ink-2); text-decoration: none; }
  .mobile-nav__cta { display: grid; gap: 10px; margin-top: 18px; }
}
@media (max-width: 520px) {
  .header__cta { display: none; }
  .logo__sub { display: none; }
}

/* ── Formas organicas y adornos ──────────────────────────────────────────── */
.blob { position: absolute; z-index: 0; pointer-events: none; }
.squiggle { position: relative; white-space: nowrap; z-index: 0; }
.squiggle::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .42em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C 40 4, 70 18, 105 10 S 170 4, 198 12' fill='none' stroke='%23EDC15A' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-ink, var(--ink-2)); background: var(--c-soft, var(--paper-2));
  padding: 8px 12px; border-radius: 999px; margin-bottom: 18px; max-width: 100%; flex-wrap: wrap; line-height: 1.3;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--sun)); }
.infinito-sep { display: block; width: 120px; height: 40px; margin: 0 auto; }

/* ── Portada ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero__lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--sage-ink); }
.hero__media { position: relative; }
.hero__photo {
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow-lg);
  border: 8px solid var(--card);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__card {
  position: absolute; left: -24px; bottom: 6%;
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: var(--r); padding: 12px 16px 12px 12px; box-shadow: var(--shadow-lg);
  max-width: 290px;
}
.hero__card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.hero__card strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; line-height: 1.2; }
.hero__card span { font-size: .85rem; color: var(--muted); line-height: 1.35; display: block; }
.hero__badge {
  position: absolute; right: -6px; top: 4%;
  width: 104px; height: 104px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.hero__badge img { width: 70px; height: 70px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero__card { left: 0; }
  .hero__badge { right: 4px; width: 84px; height: 84px; }
  .hero__badge img { width: 56px; height: 56px; }
}

/* ── Secciones genericas ─────────────────────────────────────────────────── */
.sec { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.sec--tint { background: var(--paper-2); }
.sec--wave { background: var(--paper-2); }
.sec--wave::before, .sec--wave::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 200 0, 400 0, 600 20 S 1000 40, 1200 10 L1200 40 Z' fill='%23F3ECE1'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.sec--wave::before { top: -39px; }
.sec--wave::after { bottom: -39px; transform: rotate(180deg); }
.sec__head { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.sec__head p { color: var(--ink-2); font-size: 1.1rem; }
.sec__head--left { margin-left: 0; text-align: left; }

/* Tarjetas grandes "para quien" */
.quien { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quien__card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r-lg); padding: 28px 26px 24px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  border-top: 6px solid var(--c); transition: transform .25s, box-shadow .25s;
}
.quien__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.quien__card .ico { width: 64px; height: 64px; border-radius: 22px; background: var(--c-soft); color: var(--c-ink); display: grid; place-items: center; margin-bottom: 18px; }
.quien__card .ico svg { width: 36px; height: 36px; }
.quien__card h3 { margin-bottom: .4em; }
.quien__card p { color: var(--ink-2); flex: 1; }
.quien__more { font-weight: 700; color: var(--c-ink); display: inline-flex; align-items: center; gap: 6px; }
.quien__more svg { width: 18px; height: 18px; transition: transform .2s; }
.quien__card:hover .quien__more svg { transform: translateX(4px); }
@media (max-width: 900px) { .quien { grid-template-columns: 1fr; } }

/* Mosaico de temas (informacion, materiales, habilidades) */
.mosaico { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tema {
  grid-column: span 4; position: relative; overflow: hidden;
  background: var(--c-soft); border-radius: var(--r-lg); padding: 26px;
  text-decoration: none; color: var(--ink); min-height: 230px; display: flex; flex-direction: column;
  transition: transform .25s;
}
.tema:hover { transform: translateY(-3px); color: var(--ink); }
.tema--wide { grid-column: span 6; }
.tema h3 { font-size: 1.45rem; margin-bottom: .35em; padding-right: 84px; position: relative; }
.tema p { padding-right: 60px; position: relative; }
.tema p { color: var(--ink-2); margin-bottom: 14px; }
.tema ul { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tema li { background: var(--card); border-radius: 999px; padding: 5px 12px; font-size: .9rem; font-weight: 700; color: var(--c-ink); }
.tema__ico { position: absolute; right: -12px; top: -12px; width: 108px; height: 108px; color: var(--c); opacity: .45; }
.tema__ico svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .tema, .tema--wide { grid-column: span 12; } }

/* Camino: como trabajo */
.camino { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: paso; }
.camino::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 34px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--line) 0 12px, transparent 12px 22px);
}
.camino li { position: relative; text-align: center; padding: 0 6px; }
.camino__num {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: var(--card); border: 4px solid var(--c); color: var(--c-ink);
  font: 400 1.6rem/1 var(--font-display); box-shadow: var(--shadow);
}
.camino h3 { font-size: 1.2rem; margin-bottom: .35em; }
.camino p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 900px) {
  .camino { grid-template-columns: 1fr; gap: 8px; }
  .camino::before { left: 34px; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 12px, transparent 12px 22px); }
  .camino li { display: grid; grid-template-columns: 72px 1fr; gap: 18px; text-align: left; padding: 0; }
  .camino__num { margin: 0; }
}

/* Nota manuscrita */
.nota-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.nota {
  position: relative; background: #FFFDF6; padding: 38px 34px 30px; border-radius: 6px;
  box-shadow: var(--shadow-lg); transform: rotate(-1.6deg);
  border-left: 3px solid rgba(238, 139, 126, .45);
}
.nota::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; transform: translateX(-50%) rotate(2deg);
  background: rgba(237, 193, 90, .55); border-radius: 3px;
}
.nota blockquote { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.5; color: var(--ink); }
.nota cite { display: block; margin-top: 16px; font-style: normal; font-weight: 700; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .nota-wrap { grid-template-columns: 1fr; } .nota { transform: none; } }

/* Lista con iconos (lo que hago / lo que no) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.caja { background: var(--card); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.caja h3 { display: flex; align-items: center; gap: 10px; }
.caja h3 svg { width: 26px; height: 26px; color: var(--c-ink); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D6844' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 13px;
}
.checks--no li::before {
  background: var(--c-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A23F35' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3C/svg%3E") no-repeat center / 12px;
}
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }

/* Retrato y bio */
.bio { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.bio__foto { position: relative; }
.bio__foto img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 8px solid var(--card); box-shadow: var(--shadow-lg); }
.bio__foto::before { content: ""; position: absolute; inset: -18px -10px 14px 22px; border-radius: 50%; background: var(--sage-soft); z-index: -1; }
.credenciales { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; padding: 0; list-style: none; }
.credenciales li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: .92rem; line-height: 1.3; }
.credenciales strong { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 800px) { .bio { grid-template-columns: 1fr; } .bio__foto { max-width: 260px; margin: 0 auto; } }

/* Localidades (chips) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.chips a:hover { border-color: var(--plum-ink); color: var(--plum-ink); }
.chips svg { width: 16px; height: 16px; color: var(--plum-ink); }

/* ── Cabecera de pagina interior ─────────────────────────────────────────── */
.ph { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 5vw, 64px); background: var(--c-soft); }
.ph__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; z-index: 1; }
.ph h1 { font-size: clamp(2rem, 4vw, 3rem); }
.ph__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; margin-bottom: 22px; }
.ph__img { border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; overflow: hidden; aspect-ratio: 1; border: 6px solid var(--card); box-shadow: var(--shadow-lg); }
.ph__img img { width: 100%; height: 100%; object-fit: cover; }
.ph__ico { width: min(260px, 100%); aspect-ratio: 1; margin-left: auto; border-radius: 50%; background: var(--card); color: var(--c-ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.ph__ico svg { width: 46%; height: 46%; }
.ph__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: 20px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--ink-2); }
@media (max-width: 800px) { .ph__grid { grid-template-columns: 1fr; } .ph__img, .ph__ico { display: none; } }

/* ── Articulo ────────────────────────────────────────────────────────────── */
.art { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(32px, 5vw, 72px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); align-items: start; }
.prose { max-width: 70ch; }
.prose h2 { position: relative; padding-top: 10px; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 5px; border-radius: 4px; background: var(--c, var(--sun)); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--c-ink, var(--primary)); }
.prose ol li::marker { color: var(--c-ink, var(--primary)); font-weight: 700; }
.prose a { color: var(--c-ink, var(--primary)); }
.prose strong { color: var(--ink); }
.aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.toc { background: var(--card); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.toc p { font: 700 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 6px 0; color: var(--ink-2); text-decoration: none; font-size: .93rem; line-height: 1.35; }
.toc a::before { content: counter(t); font-weight: 700; color: var(--c-ink); }
.toc a:hover { color: var(--ink); }
.mini-cita { background: var(--ink); color: #fff; border-radius: var(--r); padding: 22px; }
.mini-cita p { color: #E6ECF1; font-size: .95rem; }
.mini-cita strong { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; display: block; margin-bottom: 6px; color: #fff; }
.mini-cita .btn { width: 100%; margin-top: 8px; }
@media (max-width: 960px) { .art { grid-template-columns: 1fr; } .aside { position: static; } .toc { display: none; } }

/* FAQ con details (sin JS) */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border-left: 5px solid var(--c, var(--sun)); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-display); color: var(--c-ink, var(--primary)); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 18px; color: var(--ink-2); }

/* Relacionadas */
.rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.rel a { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: var(--r); padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s; }
.rel a:hover { transform: translateY(-2px); color: var(--ink); }
.rel .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--c-soft); color: var(--c-ink); display: grid; place-items: center; flex: none; }
.rel .ico svg { width: 26px; height: 26px; }
.rel small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.rel span { font-weight: 700; line-height: 1.3; }

/* ── Bloque de cita (contacto) ───────────────────────────────────────────── */
.cita { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
.cita h2 { color: #fff; }
.cita p { color: #DCE4EA; }
.cita__tel { display: inline-block; font: 700 clamp(1.8rem, 4vw, 2.5rem)/1.1 var(--font-body); letter-spacing: .02em; color: #fff; text-decoration: none; margin: 6px 0 18px; }
.cita__tel:hover { color: var(--sun); }
.cita__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cita__nota { font-size: .9rem; margin-top: 18px; color: #B9C6D1 !important; }
.cita .blob { right: -80px; bottom: -90px; width: 320px; opacity: .14; }
@media (max-width: 900px) { .cita { grid-template-columns: 1fr; } }

/* Formulario */
.form { position: relative; z-index: 1; background: var(--card); color: var(--ink); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; }
.form label { font-weight: 700; font-size: .93rem; display: grid; gap: 6px; }
.form input, .form select, .form textarea {
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid #CFC4B3; background: #FFFDFA; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--sky-soft); }
.form .fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--ink-2); }
.form .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.form-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok { display: none; background: var(--sage-soft); color: var(--sage-ink); border-radius: 12px; padding: 14px; font-weight: 700; margin: 0; }
.form-ok.show { display: block; }
@media (max-width: 520px) { .form .fila { grid-template-columns: 1fr; } }

/* Tarifas */
.tarifas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tarifa { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); border-top: 5px solid var(--c); }
.tarifa strong { font: 400 2rem/1 var(--font-display); display: block; margin: 8px 0; }

/* Hubs: lista de paginas de la seccion */
.hub-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.hub-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); padding: 26px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s; border-bottom: 5px solid var(--c); }
.hub-card:hover { transform: translateY(-3px); color: var(--ink); }
.hub-card .ico { width: 56px; height: 56px; border-radius: 18px; background: var(--c-soft); color: var(--c-ink); display: grid; place-items: center; margin-bottom: 16px; }
.hub-card .ico svg { width: 30px; height: 30px; }
.hub-card p { color: var(--ink-2); flex: 1; }
.hub-card .quien__more { color: var(--c-ink); }

/* Legales */
.legal { max-width: 820px; padding: clamp(40px, 6vw, 72px) var(--gutter); margin: 0 auto; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 1.4em; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--paper-2); }

/* ── Pie ─────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #D5DEE6; margin-top: clamp(56px, 8vw, 96px); position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--coral) 0 25%, var(--sun) 25% 50%, var(--sage) 50% 75%, var(--sky) 75%); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding: 64px 0 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--sun); }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer__brand img { width: 44px; height: 44px; background: #fff; border-radius: 50%; padding: 4px; }
.footer__brand span { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }
.footer__title { font: 700 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #9FB0BF; margin-bottom: 14px; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.footer__contact { display: grid; gap: 10px; font-size: .95rem; }
.footer__contact div { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--sun); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .88rem; color: #9FB0BF; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__bottom a { color: #C6D2DC; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: var(--wa-hover); color: #fff; }

/* Aparicion suave al hacer scroll (solo si el usuario no pide menos movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Ningun hijo de grid puede empujar el ancho de la pagina en movil */
.hero__grid > *, .ph__grid > *, .nota-wrap > *, .bio > *, .art > *, .duo > *, .cita > *, .quien > *, .mosaico > * { min-width: 0; }
.prose { overflow-wrap: break-word; }
