/* ==========================================================================
   DiversaMente · Centro de Terapia · Chiclayo
   Hoja de estilos principal (mobile-first, sin dependencias)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Marca (relleno de íconos y decoración) */
  --navy: #1E3A9A;
  --navy-900: #152C7A;
  --red: #E53935;
  --orange: #F57C00;
  --yellow: #F9B90F;
  --green: #2E9E48;
  --pink: #E91E63;
  --purple: #7B3FB5;
  --teal: #1FA7C9;
  --blue: #2F6FD6;

  /* Variantes oscurecidas para TEXTO (WCAG AA sobre blanco) */
  --t-red: #C62828;
  --t-orange: #B45309;
  --t-yellow: #8A5A00;
  --t-green: #1E7A34;
  --t-pink: #C2185B;
  --t-purple: #7B3FB5;
  --t-teal: #0E7490;
  --t-blue: #2459B8;

  /* Variantes vivas SOLO para texto grande (≥24px): AA exige 3:1 */
  --h-blue: #2F6FD6;   /* 4.8:1 sobre blanco */
  --h-green: #2A9444;  /* 3.9:1 */
  --h-pink: #E91E63;   /* 4.3:1 */
  --h-orange: #E65100; /* 3.8:1 */
  --h-purple: #7B3FB5; /* 6.5:1 */

  /* Pasteles (manchas de las esquinas, como en los flyers) */
  --p-green: #B7DFA0;
  --p-pink: #F8C4D6;
  --p-blue: #AAC8F0;
  --p-peach: #FCC878;

  /* Tintes suaves para fondos de tarjetas */
  --tint-blue: #EAF1FC;
  --tint-green: #ECF7E7;
  --tint-orange: #FFF1E0;
  --tint-yellow: #FFF6DB;
  --tint-pink: #FDEBF1;
  --tint-purple: #F3ECFA;
  --tint-teal: #E4F5FA;

  /* Neutros */
  --bg: #FFFCF7;
  --surface: #FFFFFF;
  --ink: #27315C;
  --muted: #4A5578;
  --line: #E6E9F2;

  --wa: #157A3C;
  --wa-hover: #10652F;
  --wa-float: #1C9C4F;

  /* Tipografía */
  --font-head: "Fredoka", "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Forma y sombra */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --shadow-sm: 0 2px 8px rgba(30, 58, 154, .07);
  --shadow: 0 10px 30px -10px rgba(30, 58, 154, .18);
  --shadow-lg: 0 24px 50px -18px rgba(30, 58, 154, .28);

  --header-h: 68px;
  --gutter: 16px;
  --maxw: 1180px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) {
  body { overflow-x: clip; }
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.005em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--t-blue); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
strong { font-weight: 800; }

:focus-visible {
  outline: 3px solid var(--t-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; outline-color: var(--yellow); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.icon {
  width: 1.2em; height: 1.2em;
  flex: none;
  display: inline-block;
  vertical-align: -.2em;
}

/* Texto de colores (palabras sueltas) */
.w-blue, .t-blue { color: var(--t-blue); }
.w-green, .t-green { color: var(--t-green); }
.w-orange, .t-orange { color: var(--t-orange); }
.w-pink, .t-pink { color: var(--t-pink); }
.w-purple, .t-purple { color: var(--t-purple); }
.w-red, .t-red { color: var(--t-red); }
.w-yellow, .t-yellow { color: var(--t-yellow); }
/* En titulares grandes se usan los tonos vivos de los flyers */
:is(.hero-title, .section-title) .w-blue   { color: var(--h-blue); }
:is(.hero-title, .section-title) .w-green  { color: var(--h-green); }
:is(.hero-title, .section-title) .w-orange { color: var(--h-orange); }
:is(.hero-title, .section-title) .w-pink   { color: var(--h-pink); }
:is(.hero-title, .section-title) .w-purple { color: var(--h-purple); }

/* Tonos para círculos de íconos */
.tone-blue   { --c: var(--blue);   --ct: var(--t-blue);   --tint: var(--tint-blue); }
.tone-green  { --c: var(--green);  --ct: var(--t-green);  --tint: var(--tint-green); }
.tone-orange { --c: var(--orange); --ct: var(--t-orange); --tint: var(--tint-orange); }
.tone-yellow { --c: var(--yellow); --ct: var(--t-yellow); --tint: var(--tint-yellow); }
.tone-pink   { --c: var(--pink);   --ct: var(--t-pink);   --tint: var(--tint-pink); }
.tone-purple { --c: var(--purple); --ct: var(--t-purple); --tint: var(--tint-purple); }

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .7em 1.35em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn .icon { width: 1.3em; height: 1.3em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(21, 122, 60, .6);
}
.btn-wa:hover { background: var(--wa-hover); color: #fff; }

.btn-purple {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(123, 63, 181, .55);
}
.btn-purple:hover { background: #6A31A3; color: #fff; }

.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-lg { min-height: 56px; font-size: 1.125rem; padding: .8em 1.6em; }
.btn-sm { min-height: 44px; font-size: .98rem; padding: .55em 1.1em; }

/* ---------- 4. Decoración (manchas + piezas de rompecabezas) ---------- */
.deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: min(var(--s, 280px), 62vw);
  height: min(var(--s, 280px), 62vw);
}
.blob--green { color: var(--p-green); }
.blob--pink  { color: var(--p-pink); }
.blob--blue  { color: var(--p-blue); }
.blob--peach { color: var(--p-peach); }

.pz {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size, 40px);
  height: var(--size, 40px);
  transform: rotate(var(--r, 0deg));
  opacity: .9;
}
.pz--yellow { color: var(--yellow); }
.pz--blue   { color: var(--blue); }
.pz--green  { color: var(--green); }
.pz--pink   { color: var(--pink); }
.pz--orange { color: var(--orange); }
.pz--purple { color: var(--purple); }
.pz--red    { color: var(--red); }
.pz--light  { color: rgba(255, 255, 255, .1); }
.pz--light2 { color: rgba(249, 185, 15, .18); }

/* Movimiento breve (< 5 s) que se detiene solo (WCAG 2.2.2) */
@media (prefers-reduced-motion: no-preference) {
  .hero .pz { animation: bob 2.4s ease-in-out 2 alternate; }
  .hero .pz:nth-child(odd) { animation-duration: 2s; }
}
@keyframes bob {
  from { transform: rotate(var(--r, 0deg)) translateY(0); }
  to   { transform: rotate(calc(var(--r, 0deg) + 10deg)) translateY(-10px); }
}

/* ---------- 5. Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(30, 58, 154, .08);
  box-shadow: 0 4px 18px -12px rgba(30, 58, 154, .35);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(10px); }
}
/* Sin JS la cabecera es alta (logo + enlaces): no se queda fija */
html:not(.js) .site-header { position: static; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.brand { display: block; flex: none; margin-right: auto; border-radius: 10px; }
.brand-logo { height: 50px; width: auto; }

.header-cta { display: none; }

/* Sin JavaScript: el menú se muestra como fila de enlaces */
.nav-toggle { display: none; }
.site-nav { width: 100%; padding-bottom: 10px; }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.nav-list a {
  display: inline-block;
  padding: 6px 2px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--t-pink); }
.nav-cta { display: none; }

/* Con JavaScript: menú hamburguesa en móvil */
.js .nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px 0 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.js .nav-toggle:hover { border-color: var(--navy); }
.nav-toggle-box {
  position: relative;
  width: 20px; height: 14px;
  display: inline-block;
}
.nav-toggle-box span {
  position: absolute;
  left: 0;
  width: 100%; height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { top: 5.75px; }
.nav-toggle-box span:nth-child(3) { top: 11.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { top: 5.75px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { top: 5.75px; transform: rotate(-45deg); }

.js .site-nav {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  width: auto;
  padding: 12px var(--gutter) 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 30px -18px rgba(30, 58, 154, .35);
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.js .site-header.is-open .site-nav { display: block; }
.js .nav-list { display: block; }
.js .nav-list li + li { border-top: 1px dashed var(--line); }
.js .nav-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 4px;
  font-size: 1.15rem;
}
.js .nav-cta { display: flex; width: 100%; margin-top: 12px; }

@media (min-width: 600px) {
  .header-cta { display: inline-flex; }
}

@media (min-width: 1200px) {
  :root { --header-h: 80px; }
  .brand-logo { height: 58px; }
  .header-inner { flex-wrap: nowrap; }
  .header-cta { display: none; }
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    position: static;
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .nav-list, .js .nav-list { display: flex; gap: 2px; }
  .js .nav-list li + li { border: 0; }
  .nav-list a, .js .nav-list a {
    min-height: 44px;
    padding: 8px 8px;
    font-size: 1.02rem;
    border-radius: 999px;
  }
  .nav-list a:hover, .nav-list a.is-active { background: var(--tint-pink); }
  .nav-cta, .js .nav-cta { display: inline-flex; width: auto; margin: 0; min-height: 46px; font-size: 1rem; padding: .55em 1.15em; }
}

/* ---------- 6. Secciones genéricas ---------- */
/* Evita que la decoración genere scroll horizontal */
.hero, .section { overflow: hidden; }
@supports (overflow: clip) {
  .hero, .section { overflow: clip; }
}

.section {
  position: relative;
  isolation: isolate;
  padding-block: 72px;
}
.section > .container { position: relative; z-index: 1; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head--left { text-align: left; margin-inline: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.pill span {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.pill::before, .pill::after {
  content: "";
  width: 14px; height: 12px;
  background:
    linear-gradient(var(--c1, var(--red)), var(--c1, var(--red))) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--c2, var(--yellow)), var(--c2, var(--yellow))) 0 50% / 100% 3px no-repeat,
    linear-gradient(var(--c3, var(--green)), var(--c3, var(--green))) 0 100% / 100% 3px no-repeat;
  border-radius: 2px;
}
.pill::before { transform: skewY(-18deg); }
.pill::after { --c1: var(--blue); --c2: var(--pink); --c3: var(--purple); transform: skewY(18deg); }

.section-title {
  font-size: clamp(1.85rem, 1.25rem + 2.6vw, 2.85rem);
  font-weight: 600;
  margin-bottom: .35em;
  text-wrap: balance;
}
.section-title::after {
  content: "";
  display: block;
  width: 118px; height: 12px;
  margin: 14px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 118 12'%3E%3Cpath d='M2 7c10-6 18-6 28 0s18 6 28 0 18-6 28 0 18 6 28 0' fill='none' stroke='%23F9B90F' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.section-head--left .section-title::after,
.section-title--left::after { margin-left: 0; }

.section-lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 auto;
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .section { padding-block: 104px; }
  .section-head { margin-bottom: 56px; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: 36px 0 64px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
}
.hero .deco .pz { --size: 30px; }
/* En móvil solo quedan piezas en zonas libres de texto */
.hero .pz--yellow, .hero .pz--green { display: none; }
.hero .pz--blue { left: 84%; top: 30px; }
.hero .pz--pink { left: 8%; top: auto; bottom: 18px; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero-title .eyebrow-text {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 14px 5px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: .95rem;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: normal;
}
.eyebrow-text .icon { width: 1.05em; height: 1.05em; color: var(--pink); }
.hero-title {
  font-size: clamp(2.1rem, 1.35rem + 3.9vw, 3.9rem);
  line-height: 1.08;
  font-weight: 600;
  margin-bottom: .45em;
  text-wrap: balance;
}
.hero-title span { white-space: nowrap; }
.hero-sub {
  font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem);
  color: var(--muted);
  max-width: 36em;
  margin-bottom: 26px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .94rem;
  line-height: 1.3;
}
.chip .icon { width: 1.1em; height: 1.1em; }
.chip--blue  { background: var(--tint-blue);  color: var(--t-blue); }
.chip--green { background: var(--tint-green); color: var(--t-green); }
.chip--pink  { background: var(--tint-pink);  color: var(--t-pink); }

.hero-art { position: relative; justify-self: center; width: 100%; max-width: 560px; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% -4% -6% 6%;
  border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%;
  background: linear-gradient(135deg, var(--p-blue), var(--p-pink) 55%, var(--p-peach));
  opacity: .55;
  z-index: -1;
  transform: rotate(-4deg);
}
.hero-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 22px 16px 18px;
  box-shadow: var(--shadow-lg);
}
.hero-card img {
  width: 100%;
  max-width: 530px;
  margin-inline: auto;
  clip-path: inset(5% 0 0 0);
  margin-top: -2%;
}
.hero-card-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  text-align: center;
}
.hero-card-quote .icon { color: var(--pink); }

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
}

@media (min-width: 960px) {
  .hero { padding: 72px 0 104px; }
  .hero .deco .pz { --size: 44px; }
  .hero .pz--yellow, .hero .pz--green { display: block; }
  .hero .pz--blue { left: var(--x); top: var(--y); }
  .hero .pz--pink { left: var(--x); top: var(--y); bottom: auto; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
  .hero-card { padding: 30px 26px 24px; }
}

/* ---------- 8. Nosotros ---------- */
.nosotros { background: #fff; }
.ideas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 980px;
  margin: 0 auto 40px;
}
.idea {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  text-align: center;
}
.idea p { margin: 0; font-size: .95rem; font-weight: 600; color: var(--navy); line-height: 1.35; }
.idea-icon, .pillar-icon, .contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--ct);
}
.idea-icon svg, .pillar-icon svg { width: 32px; height: 32px; }
.idea-icon { width: 52px; height: 52px; }
.idea-icon svg { width: 28px; height: 28px; }

@media (min-width: 760px) {
  .ideas { gap: 0; margin-bottom: 48px; }
  .idea { gap: 16px; padding: 8px 28px; }
  .idea p { font-size: 1.1rem; line-height: 1.4; }
  .idea + .idea { border-left: 2px solid var(--line); }
  .idea:nth-child(2) { border-color: var(--p-blue); }
  .idea:nth-child(3) { border-color: var(--p-green); }
  .idea-icon { width: 92px; height: 92px; }
  .idea-icon svg { width: 44px; height: 44px; }
}

.about-text {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
  font-size: 1.12rem;
}
.about-quote {
  display: block;
  margin: 8px 0 0;
  text-wrap: balance;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  color: var(--navy);
}
.about-quote .icon { color: var(--yellow); width: 1.1em; height: 1.1em; margin-right: 6px; vertical-align: -.15em; }

.compromiso {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 18px 28px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 0 0, rgba(183, 223, 160, .55) 0 90px, transparent 91px),
    radial-gradient(circle at 100% 100%, rgba(248, 196, 214, .6) 0 110px, transparent 111px),
    var(--bg);
  border: 1px solid var(--line);
}
.compromiso-title {
  text-align: center;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem);
  margin-bottom: 26px;
}
/* Palabra arcoíris: un solo texto real, color por degradado (todos los tonos ≥ 3:1) */
.rainbow {
  color: var(--h-purple);
  background: linear-gradient(90deg, var(--h-orange), var(--t-red), var(--h-blue), var(--h-pink), var(--h-green), var(--h-purple), var(--t-teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (forced-colors: active) {
  .rainbow { background: none; -webkit-text-fill-color: currentColor; }
}

.pillars { display: grid; gap: 12px; }
.pillar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.pillar p {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--c);
  font-size: 1.08rem;
  line-height: 1.4;
  color: var(--ink);
}
.compromiso-foot {
  margin: 26px 0 0;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  color: var(--navy);
}
@media (min-width: 760px) {
  .compromiso { padding: 48px 40px 36px; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ---------- 9. Servicios ---------- */
.servicios { background: var(--tint-blue); }
.services {
  display: grid;
  gap: 16px;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  background: #fff;
  border-radius: var(--r-md);
  border: 2px solid var(--tint);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c); }
.service-icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  box-shadow: 0 0 0 6px var(--tint);
}
.service-icon svg { width: 30px; height: 30px; }
.service h3 { font-size: 1.35rem; color: var(--ct); margin-bottom: .35em; }
.service p { color: var(--muted); font-size: 1rem; flex: 1; margin-bottom: 14px; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ct);
  text-decoration: none;
}
.service-link .icon { transition: transform .2s ease; }
.service-link:hover { color: var(--ct); text-decoration: underline; }
.service-link:hover .icon { transform: translateX(4px); }

.service--feature { background: var(--tint); border-color: #D9C6EE; }
.service-badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .02em;
}

@media (max-width: 619.98px) {
  .service:not(.service--feature) {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
    align-items: center;
    padding: 20px 18px 14px;
  }
  .service:not(.service--feature) .service-icon { width: 52px; height: 52px; margin: 0; }
  .service:not(.service--feature) .service-icon svg { width: 26px; height: 26px; }
  .service:not(.service--feature) h3 { margin: 0; }
  .service:not(.service--feature) p { grid-column: 1 / -1; margin: 14px 0 6px; }
  /* En móvil, un solo CTA al final en lugar de un enlace por tarjeta */
  .service:not(.service--feature) .service-link { display: none; }
}
@media (min-width: 620px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service--feature { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .services { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .service--feature {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "icon badge link"
      "icon title link"
      "icon text  link";
    column-gap: 24px;
    align-items: center;
    padding: 26px 30px;
  }
  .service--feature .service-icon { grid-area: icon; width: 84px; height: 84px; margin: 0; }
  .service--feature .service-icon svg { width: 42px; height: 42px; }
  .service--feature .service-badge { grid-area: badge; justify-self: start; margin-bottom: 6px; }
  .service--feature h3 { grid-area: title; font-size: 1.6rem; margin-bottom: .2em; }
  .service--feature p { grid-area: text; margin: 0; max-width: 46em; }
  .service--feature .service-link {
    grid-area: link;
    align-self: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--c);
  }
}

.services-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  text-align: center;
}
.services-cta p {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
}

/* ---------- 10. Tarifas ---------- */
.tarifas { background: #fff; }
.prices {
  display: grid;
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
.price {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--r-md);
  background: var(--tint);
  text-align: center;
  border: 2px solid transparent;
}
.price-name { font-size: 1.3rem; margin-bottom: 6px; }
.price-amount {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 2.4rem + 2.4vw, 3.9rem);
  line-height: 1;
  color: var(--ch, var(--ct));
}
.price-amount .cur, .eval-price .cur, .neuro-price .cur { font-size: .5em; vertical-align: .55em; margin-right: .12em; }
.price-note { margin: 10px 0 0; color: var(--muted); font-size: .98rem; }
.price--feature {
  background: #fff;
  border-color: var(--c);
  box-shadow: var(--shadow-lg);
  padding-top: 40px;
}
.price-badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--ct);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  white-space: nowrap;
}
.prices .price--feature { margin-top: 10px; }

.price-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  text-align: center;
}
.duration {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px dashed var(--p-blue);
  color: var(--navy);
  font-weight: 700;
}
.duration .icon { color: var(--t-blue); }
.price-extra { margin: 0 0 8px; color: var(--muted); }

@media (min-width: 760px) {
  .prices { grid-template-columns: repeat(3, 1fr); align-items: center; }
  .prices .price--feature { margin-top: 0; padding-block: 48px 36px; }
}

/* ---------- 11. Evaluaciones + Neuropediatría ---------- */
.evaluaciones { background: linear-gradient(180deg, var(--bg), #FFF7EC); }
.eval-intro {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}
.eval-intro .section-head { margin-bottom: 0; }
.eval-photo {
  display: none; /* decorativa: en móvil no retrasa las tarifas */
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 380px;
}
.eval-photo img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 6px solid #fff;
  box-shadow: 14px 14px 0 var(--p-pink), var(--shadow);
  transform: rotate(1.5deg);
}
.evals { display: grid; gap: 20px; margin-bottom: 28px; }
.eval-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}
.eval-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--navy);
}
.eval-head h3 { margin: 0; color: #fff; font-size: 1.4rem; line-height: 1.15; }
.eval-head small { display: block; font-size: .72em; font-weight: 500; opacity: .92; }
.eval-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .9);
}
.eval-icon svg { width: 28px; height: 28px; }
.eval-desc { padding: 18px 20px 4px; margin: 0; font-size: 1.08rem; color: var(--navy); }
.eval-desc strong { color: var(--ct); }
.eval-card .checks { padding: 12px 20px 8px; flex: 1; }
.eval-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 20px 20px;
  padding-top: 16px;
  border-top: 2px dashed var(--line);
}
.eval-price {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ch, var(--ct));
}

.checks li {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 6px 0;
  line-height: 1.45;
}
.checks .icon {
  width: 24px; height: 24px;
  padding: 4px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--tint, var(--tint-green));
  color: var(--ct, var(--t-green));
}

.neuro {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 24px;
  padding: 30px 22px 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--navy) 0%, #2A4DB8 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.neuro > :not(.deco) { position: relative; z-index: 1; }
.neuro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
}
.neuro-kicker .icon { color: var(--yellow); }
.neuro-title { color: #fff; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); margin-bottom: .25em; }
.neuro-title span { color: var(--yellow); }
.neuro-lead { font-size: 1.1rem; opacity: .95; }
.checks--light li { color: #fff; }
.checks--light .icon { background: var(--yellow); color: var(--navy); }
.neuro-side {
  align-self: center;
  padding: 22px 20px;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
}
.neuro-price {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.2;
}
.neuro-price small { display: block; font-size: .85em; color: var(--muted); margin-bottom: 4px; }
.neuro-price strong { font-weight: 700; font-size: 2.6rem; color: var(--h-orange); }
.neuro-date {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--tint-orange);
  font-size: .98rem;
  line-height: 1.5;
}
.neuro-date .icon { color: var(--t-orange); margin-top: 2px; }
.neuro-side .btn { width: 100%; }

@media (min-width: 860px) {
  .eval-intro { grid-template-columns: 1.3fr .7fr; gap: 48px; margin-bottom: 48px; }
  .eval-photo { display: block; }
  .evals { grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
  .neuro { grid-template-columns: 1.35fr 1fr; gap: 36px; padding: 44px 44px; }
  .neuro-side { padding: 28px 26px; }
}

/* ---------- 12. Familias ---------- */
.familias { background: #fff; }
.familias-grid { display: grid; gap: 40px; align-items: center; }
.familias-photo { position: relative; margin: 0; justify-self: center; width: 100%; max-width: 500px; }
.photo-frame {
  position: relative;
  border-radius: var(--r-lg);
  padding: 8px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: -18px -14px 26px 30px;
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  background: var(--p-green);
  opacity: .7;
  z-index: -1;
  transform: rotate(4deg);
}
.photo-frame img { width: 100%; border-radius: calc(var(--r-lg) - 8px); }
.photo-pz { position: absolute; right: -6px; bottom: -18px; width: 54px; height: 54px; transform: rotate(18deg); }
.familias-copy p { font-size: 1.08rem; }
.familias-copy .checks { margin: 6px 0 26px; }
.familias-copy .checks .icon { background: var(--tint-purple); color: var(--t-purple); }

@media (min-width: 900px) {
  .familias-grid { grid-template-columns: .95fr 1.05fr; gap: 64px; }
}

/* ---------- 13. Cómo trabajamos ---------- */
/* Banda de color intenso a mitad de página (como la tarjeta de neuropediatría) */
.proceso { background: linear-gradient(135deg, var(--navy) 0%, #2A4DB8 100%); color: #fff; }
.proceso .section-title { color: #fff; }
.proceso .section-title .w-orange { color: var(--yellow); } /* 5.6:1 sobre navy */
.proceso .section-lead { color: #E6ECFF; }
.proceso .pill span { background: #fff; color: var(--navy); }
.steps {
  position: relative;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  z-index: 1;
  padding: 22px 20px 20px 84px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 14px 30px -14px rgba(8, 20, 70, .55);
}
.step-num {
  position: absolute;
  left: 18px; top: 20px;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ct);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 0 0 6px var(--tint);
}
.step h3 { font-size: 1.22rem; margin-bottom: .3em; color: var(--ct); }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Línea punteada que une los pasos (móvil: vertical) */
.steps::before {
  content: "";
  position: absolute;
  left: 41px; top: 30px; bottom: 30px;
  border-left: 3px dashed rgba(255, 255, 255, .45);
  z-index: 0;
}

@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .steps::before {
    left: 12%; right: 12%;
    top: 46px; bottom: auto;
    border-left: 0;
    border-top: 3px dashed rgba(255, 255, 255, .45);
  }
  .step { padding: 88px 22px 24px; text-align: center; }
  .step-num { left: 50%; top: 22px; transform: translateX(-50%); width: 52px; height: 52px; }
}

/* ---------- 14. Novedades / galería ---------- */
.novedades { background: #fff; }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery-item {
  display: block;
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--tint-blue);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .4s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after {
  content: "";
  position: absolute;
  right: 10px; bottom: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A9A' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") no-repeat center / 20px;
  box-shadow: var(--shadow-sm);
}
.gallery-item:focus-visible { outline-offset: 4px; }

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: .6em 1.3em;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
.social-btn:hover { transform: translateY(-2px); color: #fff; filter: brightness(1.08); }
.social-btn .icon { width: 1.3em; height: 1.3em; }
.social-btn--ig { background: linear-gradient(45deg, #C13584, #B03AB0 45%, #6A3CC8); }
.social-btn--tt { background: #111827; }
.social-btn--fb { background: #1664D8; }
.social-handle { margin: 14px 0 0; text-align: center; color: var(--muted); }
.social-handle span { white-space: nowrap; }

@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* Visor (dialog) */
.lightbox {
  width: min(94vw, 760px);
  max-width: none;
  max-height: 94vh;
  max-height: 94dvh;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(16, 26, 66, .82); }
.lightbox-inner { position: relative; padding: 12px; }
.lightbox-figure { margin: 0; }
.lightbox-img {
  width: auto;
  max-width: 100%;
  max-height: calc(94vh - 90px);
  max-height: calc(94dvh - 90px);
  margin: 0 auto;
  border-radius: var(--r-sm);
}
.lightbox-caption {
  padding: 10px 56px 2px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--navy); color: #fff; }
.lightbox-close { top: -14px; right: -10px; }
.lightbox-nav { bottom: 6px; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
@media (min-width: 900px) {
  .lightbox-nav { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox-prev { left: -64px; }
  .lightbox-next { right: -64px; }
  .lightbox-caption { padding-inline: 12px; }
}

/* ---------- 15. Preguntas frecuentes ---------- */
.faq { background: var(--tint-pink); }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--p-pink); }
.faq-item summary {
  position: relative;
  display: block;
  padding: 18px 64px 18px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 32px; height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background: var(--tint-pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2185B' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") no-repeat center / 18px;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--t-pink); }
.faq-body { padding: 0 20px 18px; color: var(--ink); }
.faq-body p { margin: 0; }

/* ---------- 16. Contacto ---------- */
.contacto { background: #fff; }
.contact-grid { display: grid; gap: 28px; }
.wa-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #157A3C, #168443); /* blanco ≥ 4.76:1 en todo el degradado */
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 36px -16px rgba(21, 122, 60, .7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-card:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 22px 40px -16px rgba(21, 122, 60, .8); }
.wa-card:focus-visible { outline-color: var(--navy); }
.wa-card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}
.wa-card-icon svg { width: 34px; height: 34px; }
.wa-card-text { display: flex; flex-direction: column; min-width: 0; }
.wa-card-label { font-weight: 700; font-size: 1rem; }
.wa-card-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); line-height: 1.1; letter-spacing: .01em; }
.wa-card-arrow { margin-left: auto; width: 28px; height: 28px; }

.contact-list { display: grid; gap: 4px; margin: 22px 0 18px; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--line);
}
.contact-icon { width: 48px; height: 48px; }
.contact-icon svg { width: 24px; height: 24px; }
.contact-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-list a, .contact-value { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.contact-list a:not(.contact-more) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
.contact-list a:hover { text-decoration-thickness: 3px; }
.contact-value { display: block; font-weight: 600; }
.contact-list .contact-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--tint-orange);
  color: var(--t-orange);
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
}

.social-icons { display: flex; gap: 10px; }
.social-icons a {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--tint-blue);
  color: var(--navy);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.social-icons a:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.social-icons .icon { width: 22px; height: 22px; }
.contact-social .contact-label { margin-bottom: 8px; }

.map {
  min-height: 320px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
  background: var(--tint-blue);
}
.map { display: flex; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
/* Fachada del mapa: Google Maps solo se carga si la persona lo pide */
.map-facade {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 320px;
  padding: 24px;
  border: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .55) 2px, transparent 2px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .55) 2px, transparent 2px) 0 0 / 44px 44px,
    linear-gradient(135deg, var(--tint-blue), var(--tint-green));
  color: var(--navy);
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.map-facade-icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: #fff;
  color: var(--t-red);
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.map-facade-icon svg { width: 36px; height: 36px; }
.map-facade-title {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
}
.map-facade-addr { font-weight: 700; }
.map-facade:hover { color: var(--navy); }
.map-facade:hover .map-facade-icon { transform: translateY(-3px); }
.map-facade:focus-visible { outline-offset: -6px; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: stretch; }
  .wa-card { padding: 24px 26px; }
  .map, .map iframe, .map-facade { min-height: 460px; }
}

/* ---------- 17. Pie de página ---------- */
.site-footer {
  position: relative;
  background: var(--navy-900);
  color: #DCE4FF;
  padding: 56px 0 calc(96px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0 12.5%, var(--orange) 0 25%, var(--yellow) 0 37.5%, var(--green) 0 50%, var(--teal) 0 62.5%, var(--blue) 0 75%, var(--purple) 0 87.5%, var(--pink) 0);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer :focus-visible { outline-color: var(--yellow); }
.footer-grid { display: grid; gap: 36px; }
.footer-logo {
  display: inline-block;
  padding: 10px 16px;
  margin-bottom: 14px;
  border-radius: var(--r-md);
  background: #fff;
}
.footer-logo img { height: 64px; width: auto; }
.footer-brand p { max-width: 22em; font-size: 1.05rem; }
.footer-title {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact-list { display: grid; gap: 2px; margin-bottom: 18px; }
.footer-contact-list a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; overflow-wrap: anywhere; }
.footer-contact-list .icon { color: var(--yellow); }
.social-icons--footer a { background: rgba(255, 255, 255, .12); color: #fff; }
.social-icons--footer a:hover { background: #fff; color: var(--navy); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .95rem;
}
.footer-bottom p { margin: 0 0 4px; }
.footer-alianza { opacity: .9; }

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.3fr; }
  .footer-nav ul { grid-template-columns: 1fr; }
  .footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
}

/* ---------- 18. Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wa-float);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px -6px rgba(21, 122, 60, .6), 0 2px 6px rgba(0, 0, 0, .15);
  transition: transform .2s ease, background-color .2s ease, opacity .25s ease, visibility .25s;
}
/* Se oculta mientras otro botón de WhatsApp está en pantalla (hero / contacto) */
.wa-float--hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.07); background: var(--wa); color: #fff; }
.wa-float:focus-visible { outline-color: var(--navy); outline-offset: 4px; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .wa-float::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 3px solid var(--wa-float);
    animation: ping 2.4s ease-out 2;
    z-index: -1;
  }
}
@keyframes ping {
  0% { transform: scale(1); opacity: .6; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- 19. Animación de aparición (mejora progresiva) ---------- */
/* Solo se oculta contenido si JS añadió .reveal-ready al <html>. */
.reveal-ready .reveal {
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(26px);
}

/* ---------- 20. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-ready .reveal:not(.is-visible) { opacity: 1; transform: none; }
}

/* ---------- 21. Impresión ---------- */
@media print {
  .site-header, .wa-float, .deco, .map, .lightbox, .social-row { display: none !important; }
  body { background: #fff; }
  .section { padding-block: 24px; }
}
