/* ==========================================================================
   CIFENT — Centro Integral de Fisioterapia Estética, Nutrición y Traumatología
   Querétaro, México
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  --brand-navy: #0d3a68;
  --brand-navy-soft: #15528f;
  --brand-blue-deep: #0f4c8a;
  --brand-blue: #0f76bd;
  --brand-green: #7dbe3c;
  --brand-green-deep: #4f8f26; /* el verde de marca no contrasta sobre blanco */
  --brand-tint: #e9f2fa;
  --brand-orange: #ef7c00;
  --brand-orange-dark: #cd6900;

  --bg: #ffffff;
  --surface: #f4f7fa;
  --line: #dfe7ef;
  --text: #17324a;
  --muted: #5c6f84;

  --wa: #25d366;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(13, 58, 104, .06), 0 4px 12px rgba(13, 58, 104, .05);
  --shadow-md: 0 2px 6px rgba(13, 58, 104, .07), 0 16px 40px rgba(13, 58, 104, .09);
  --shadow-lg: 0 30px 70px rgba(13, 58, 104, .16);

  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", var(--sans);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--brand-navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.65rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.35rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

/* --- Layout --------------------------------------------------------------- */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

/* El header es sticky: sin este margen, entrar directo por una ancla
   (p. ej. cifent.com.mx/#opinion) deja el titulo escondido detras del header. */
section[id], main[id], .ancla-alias { scroll-margin-top: clamp(5.5rem, 9vw, 7.5rem); }

/* Ancla invisible que no ocupa espacio ni altera el layout. */
.ancla-alias { display: block; height: 0; }

.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--navy { background: var(--brand-navy); color: #cddff0; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--brand-orange);
  border-radius: 2px;
}
.section-head--center .eyebrow::before { display: none; }
.section--navy .eyebrow { color: var(--brand-green); }

.lead { font-size: clamp(1.03rem, 1.5vw, 1.15rem); color: var(--muted); }
.section--navy .lead { color: #a7c1dc; }

/* --- Botones -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-size: .97rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--primary { background: var(--brand-orange); color: #fff; box-shadow: 0 8px 20px rgba(239, 124, 0, .32); }
.btn--primary:hover { background: var(--brand-orange-dark); box-shadow: 0 12px 28px rgba(239, 124, 0, .38); }

.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn--wa:hover { background: #1fbb5a; }

.btn--ghost { background: transparent; color: var(--brand-navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

.btn--on-dark { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--on-dark:hover { background: rgba(255, 255, 255, .18); }

/* Azul de marca: no compite con el naranja, que en todo el sitio significa
   "agendar cita". Dejar opinion es una accion secundaria. */
.btn--opinion { background: var(--brand-blue); color: #fff; box-shadow: 0 8px 20px rgba(15, 118, 189, .28); }
.btn--opinion:hover { background: var(--brand-blue-deep); box-shadow: 0 12px 28px rgba(15, 118, 189, .34); }

.btn--sm { padding: .6rem 1.05rem; font-size: .87rem; }
.btn--block { width: 100%; }

/* --- Topbar --------------------------------------------------------------- */
.topbar {
  background: var(--brand-navy);
  color: #a7c1dc;
  font-size: .82rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: .55rem;
}
.topbar__list { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.topbar a { color: #cddff0; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__socials { display: flex; gap: .85rem; }
.topbar__socials svg { width: 17px; height: 17px; }

@media (max-width: 720px) {
  .topbar { display: none; }
}

/* --- Header --------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(13, 58, 104, .07);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .8rem;
}
.header__logo { flex: none; }
.header__logo img { width: 210px; height: auto; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.7vw, 1.7rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  color: var(--brand-navy);
  padding: .4rem 0;
  position: relative;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--brand-orange);
  transition: right .25s ease;
}
.nav__list a:hover::after { right: 0; }

.header__cta { flex: none; }

/* El CTA de WhatsApp dentro del nav solo existe en el menu movil */
.nav__cta { display: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--brand-tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand-navy);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 1rem var(--gutter) 1.6rem;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list li:last-child { border-bottom: 0; }
  .nav__list a { display: block; padding: .95rem .2rem; font-size: 1.05rem; }
  .nav__list a::after { display: none; }
  .nav__cta { display: flex; margin-top: 1.1rem; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(0, 160, 223, .16), transparent 58%),
    linear-gradient(180deg, var(--brand-tint) 0%, #fff 72%);
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .42rem .95rem .42rem .5rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand-blue-deep);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}
.hero__badge span {
  background: var(--brand-blue);
  color: #fff;
  border-radius: 999px;
  padding: .16rem .6rem;
  font-size: .74rem;
  letter-spacing: .04em;
}
.hero h1 strong { color: var(--brand-blue); font-weight: inherit; }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.19rem); color: var(--muted); max-width: 34rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  margin-top: 2.6rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--line);
}
.hero__trust div strong {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--brand-navy);
  line-height: 1.1;
}
.hero__trust div span { font-size: .86rem; color: var(--muted); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__card {
  position: absolute;
  left: -1.5rem;
  bottom: -1.75rem; /* fuera del encuadre: si sube, tapa las caras del equipo */
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  max-width: 17rem;
}
.hero__card i {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand-blue);
}
.hero__card i svg { width: 22px; height: 22px; }
.hero__card b { display: block; font-family: var(--display); font-size: .95rem; color: var(--brand-navy); }
.hero__card small { color: var(--muted); font-size: .82rem; line-height: 1.4; display: block; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  /* En movil la tarjeta crece a 3 lineas y taparia media foto: mejor debajo. */
  .hero__card {
    position: static;
    max-width: none;
    margin-top: 1rem;
  }
  .hero__trust { gap: 1.2rem 1.8rem; }
  .hero__trust div strong { font-size: 1.4rem; }
}

/* --- Servicios ------------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(1.1rem, 2vw, 1.7rem);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.card__media { aspect-ratio: 4 / 3; background: var(--brand-tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .5rem; }
.card__body p { font-size: .95rem; color: var(--muted); }
.card__list {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  font-size: .9rem;
  color: var(--muted);
}
.card__list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .35rem;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-green);
}
.card__foot { margin-top: auto; }

/* --- Padecimientos -------------------------------------------------------- */
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .8rem;
}
.chip {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .95rem 1.1rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--brand-navy);
  transition: border-color .2s ease, transform .2s ease;
}
.chip:hover { border-color: var(--brand-green); transform: translateY(-2px); }
.chip svg { width: 20px; height: 20px; color: var(--brand-blue); flex: none; }

.section--surface .chip { background: #fff; }

/* --- Proceso -------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
  counter-reset: step;
}
.step { position: relative; padding-top: 3.6rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 800;
  color: rgba(125, 190, 60, .55);
  line-height: 1;
}
.step h3 { margin-bottom: .45rem; }
.step p { font-size: .95rem; color: var(--muted); }
.section--navy .step p { color: #a7c1dc; }

/* --- Sedes ---------------------------------------------------------------- */
.sedes { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem); }
.sede {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sede__media { aspect-ratio: 16 / 10; }
.sede__media img { width: 100%; height: 100%; object-fit: cover; }
.sede__body { padding: 1.5rem 1.5rem 1.7rem; }
.sede__body h3 { margin-bottom: .3rem; }
.sede__addr { font-size: .95rem; color: var(--muted); margin-bottom: 1.1rem; }
.sede__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.3rem;
}
.sede__meta span {
  background: var(--brand-tint);
  color: var(--brand-blue-deep);
  border-radius: 999px;
  padding: .28rem .75rem;
  font-size: .8rem;
  font-weight: 600;
}
.sede__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* --- Equipo --------------------------------------------------------------- */
.team {
  display: grid;
  /* 210px hace que los 5 especialistas quepan en una sola fila a 1180px. */
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.member {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* 3/4 es el formato nativo de los retratos: asi no se recorta nada. */
.member__media { aspect-ratio: 3 / 4; background: var(--brand-tint); }
.member__media img { width: 100%; height: 100%; object-fit: cover; }
.member__body { padding: 1.1rem 1.2rem 1.4rem; }
.member__body h3 { font-size: 1.02rem; margin-bottom: .15rem; }
.member__role {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: .6rem;
}
.member__body p { font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* --- Seguros -------------------------------------------------------------- */
.insurers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  align-items: center;
}
/* Los logos ya vienen recortados y normalizados a la misma caja optica
   (400x144 transparente), asi que van a color y sin tratamiento extra. */
.insurers img {
  width: 100%;
  height: auto;
  opacity: .9;
  transition: opacity .25s ease, transform .25s ease;
}
.insurers img:hover { opacity: 1; transform: translateY(-2px); }

.insurers-note { font-size: .88rem; color: var(--muted); margin-top: 1.6rem; text-align: center; }

/* --- Opiniones ------------------------------------------------------------ */
.opinion__pregunta {
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}

.opinion__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.8rem);
  max-width: 54rem;
  margin-inline: auto;
}

.sucursal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.7rem, 3vw, 2.3rem) clamp(1.3rem, 2.5vw, 1.9rem);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sucursal:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.sucursal__pin {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 1.15rem;
}
.sucursal__pin svg { width: 25px; height: 25px; }
.sucursal--azul  .sucursal__pin { background: var(--brand-tint); color: var(--brand-blue); }
.sucursal--verde .sucursal__pin { background: #eef6e4; color: var(--brand-green-deep); }

.sucursal h3 { margin-bottom: .35rem; }
.sucursal__servicios { font-size: .93rem; color: var(--muted); margin-bottom: 1.15rem; }

.sucursal__estrellas { display: flex; gap: .22rem; color: #f5a623; margin-bottom: 1.5rem; }
.sucursal__estrellas svg { width: 18px; height: 18px; }

.sucursal .btn { width: 100%; margin-top: auto; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { max-width: 48rem; margin-inline: auto; }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  background: none;
  border: 0;
  padding: 1.25rem .2rem;
  text-align: left;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy);
  cursor: pointer;
}
.faq__q svg {
  flex: none;
  width: 20px; height: 20px;
  color: var(--brand-blue);
  transition: transform .25s ease;
}
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
/* La altura la calcula main.js con scrollHeight: es exacta y no depende
   de la resolucion de tracks flexibles. */
.faq__a {
  height: 0;
  overflow: hidden;
  transition: height .3s ease;
}
.faq__a p {
  padding: 0 .2rem 1.35rem;
  font-size: .97rem;
  color: var(--muted);
}

/* --- CTA final ------------------------------------------------------------ */
.cta-final {
  background:
    radial-gradient(90% 130% at 12% 0%, rgba(125, 190, 60, .3), transparent 62%),
    linear-gradient(120deg, var(--brand-navy) 0%, var(--brand-blue-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 4rem);
  text-align: center;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #bcd4ea; max-width: 40rem; margin-inline: auto; }
.cta-final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-top: 2rem;
}

/* --- Footer --------------------------------------------------------------- */
.footer {
  background: var(--brand-navy);
  color: #a7c1dc;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .93rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
}
.footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
/* Aqui va la version blanca del logo, asi que no necesita fondo. */
.footer__logo img { width: 250px; margin-bottom: 1.3rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .6rem; }
.footer a { color: #cddff0; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__phone { display: block; font-size: .78rem; color: #7d9bbb; letter-spacing: .08em; text-transform: uppercase; }
.footer__phone + a { font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.02rem; }

.footer__socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer__socials a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  transition: background-color .2s ease;
}
.footer__socials a:hover { background: rgba(255, 255, 255, .18); }
.footer__socials svg { width: 19px; height: 19px; }

.footer__bottom {
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  font-size: .84rem;
  color: #7d9bbb;
}

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* --- WhatsApp flotante ---------------------------------------------------- */
.wa-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 80;
}
.wa-fab__btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--wa);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.25rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .4);
  transition: transform .2s ease;
}
.wa-fab__btn:hover { transform: translateY(-2px); }
.wa-fab__btn svg { width: 22px; height: 22px; }

.wa-fab__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + .75rem);
  width: min(19rem, calc(100vw - 2rem));
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  display: none;
}
.wa-fab.is-open .wa-fab__menu { display: block; }
.wa-fab__menu p {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .8rem;
}
.wa-fab__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .7rem .85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: .92rem;
  transition: background-color .18s ease;
}
.wa-fab__menu a:hover { background: var(--brand-tint); }
.wa-fab__menu a small { color: var(--muted); font-weight: 500; font-size: .8rem; }

@media (max-width: 560px) {
  .wa-fab__btn span { display: none; }
  .wa-fab__btn { padding: 1rem; border-radius: 50%; }
}

/* --- Utilidades ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand-navy);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* Animación de entrada */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .member:hover, .chip:hover { transform: none; }
}
