/* =========================================================
   Gianina Focarazzo — Asesoramiento nutricional deportivo
   Design tokens extraídos 1:1 del sitio original.
   ========================================================= */

:root {
  --font: "Quicksand", Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Paleta */
  --azul: rgb(127, 190, 228);          /* celeste de marca / botones */
  --azul-oscuro: rgb(29, 53, 87);      /* footer */
  --violeta: rgb(82, 28, 80);          /* hero desktop */
  --navy: rgb(31, 31, 65);             /* hero mobile */
  --tinta: rgb(26, 26, 26);            /* titulares */
  --texto: rgb(86, 88, 94);            /* cuerpo */
  --gris: rgb(176, 176, 176);          /* texto tenue / botón secundario */
  --nav: #0d141a;
  --overlay: rgb(29, 30, 32);
  --wa: #008361;

  /* Grilla.
     El sitio original fijaba el ancho mobile en 360px, así que en pantallas
     grandes dejaba franjas vacías a los costados. Acá el contenido es fluido:
     ocupa todo el ancho disponible hasta un tope cómodo de lectura. */
  --ancho: 1224px;
  --ancho-mobile: 560px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--texto);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p, figure, figcaption { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }

/* ---------- Tipografía base (tokens del sitio original) ---------- */
h1 { font-size: 40px; font-weight: 600; line-height: 1.3; color: var(--tinta); }
h2 { font-size: 36px; font-weight: 600; line-height: 1.3; color: var(--tinta); }
h3 { font-size: 32px; font-weight: 600; line-height: 1.3; color: var(--tinta); }
h4 { font-size: 24px; font-weight: 600; line-height: 1.3; color: var(--tinta); }
h5 { font-size: 24px; font-weight: 600; line-height: 1.3; color: var(--tinta); }
h6 { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--tinta); }
strong, b { font-weight: 700; }

@media (min-width: 921px) {
  h1 { font-size: 64px; }
  h2 { font-size: 56px; }
  h3 { font-size: 48px; }
  h4 { font-size: 40px; }
  h5 { font-size: 32px; }
  h6 { font-size: 24px; }
}

/* ---------- Contenedor: replica la grilla del builder ---------- */
.wrap {
  width: 100%;
  max-width: var(--ancho-mobile);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 921px) {
  .wrap { max-width: calc(var(--ancho) + 32px); padding-inline: 16px; }

  /* La maqueta de escritorio está calibrada sobre un lienzo de 1224px, igual
     que la grilla del builder. Declarando .wrap como contenedor, `--u` vale
     exactamente 1px cuando hay 1224px disponibles y se encoge por debajo, así
     que entre 921px y 1256px (tablet apaisada, ventana a media pantalla) la
     maqueta se comprime en proporción en vez de salirse de la pantalla. */
  .wrap { container-type: inline-size; }
  .wrap * { --u: calc(100cqi / 1224); }
}

/* ---------- Utilidades de visibilidad ----------
   Sólo `.solo-mobile`: ocultar es seguro con cualquier `display`.
   Para mostrar únicamente en desktop se usan reglas por componente,
   porque `display: revert` pisaría el `display` propio del elemento. */
@media (min-width: 921px) {
  .solo-mobile { display: none !important; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 194px;
  min-height: 56px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--azul);
  border-radius: 28px;
  transition: filter .2s ease, transform .2s ease;
}
.btn:hover { filter: brightness(.93); }
.btn:active { transform: translateY(1px); }
.btn--gris { background: var(--gris); }
.btn--blanco { background: #fff; color: rgb(0, 0, 0); }
.btn--ancho { min-width: 249px; }

/* ---------- Listas con emoji (✅ ❌ 🎯) ---------- */
.lista p { margin-bottom: 8px; }
.lista p:last-child { margin-bottom: 0; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: calc(var(--ancho) + 32px);
  margin-inline: auto;
  height: 118px;
  padding: 12px 16px;
}
.header__logo { display: block; flex: none; }
.header__logo img { width: 94px; height: 94px; object-fit: contain; }

.header__nav { display: none; }
.header__nav ul { display: flex; align-items: center; gap: 32px; }
.header__nav a {
  font-size: 16px;
  font-weight: 400;
  color: var(--nav);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.header__nav a:hover { border-bottom-color: var(--nav); }
.header__nav a[aria-current="page"] { border-bottom-color: var(--nav); }

.header__social { display: none; align-items: center; gap: 16px; }
.header__social a { display: flex; color: #000; transition: color .2s; }
.header__social a:hover { color: rgb(58, 58, 58); }
.header__social svg { width: 20px; height: 20px; }

/* Botón hamburguesa */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  flex: none;
  padding: 0;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--nav);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menú desplegable mobile */
.menu-mobile {
  display: none;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
}
.menu-mobile.abierto { display: block; }
.menu-mobile ul {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
  max-width: var(--ancho-mobile);
  margin-inline: auto;
  padding: 20px 16px;
}
.menu-mobile a { font-size: 16px; color: var(--nav); text-decoration: none; }
.menu-mobile__social { display: flex; gap: 20px; padding-top: 4px; }
.menu-mobile__social svg { width: 22px; height: 22px; }

@media (min-width: 921px) {
  .header__inner { height: 56px; padding: 3px 16px; }
  .header__logo img { width: 50px; height: 50px; }
  .header__nav { display: block; margin-left: auto; }
  .header__social { display: flex; margin-left: 32px; }
  .burger, .menu-mobile { display: none !important; }
}

/* =========================================================
   SECCIONES — estructura común
   ========================================================= */
.seccion { position: relative; }
.seccion--blanca { background: #fff; }
.seccion--celeste { background: var(--azul); }

/* =========================================================
   HERO
   ========================================================= */
.hero { background: var(--navy); text-align: center; padding: 40px 0 89px; }
.hero h1 { color: #fff; font-size: 32px; line-height: 1.35; }
.hero h1 .destacado { color: var(--azul); }
.hero__sub { margin-top: 6px; font-size: 16px; font-weight: 700; line-height: 1.5; color: #fff; }
.hero__sub span { color: var(--azul); }
.hero__video {
  position: relative;
  margin-top: 56px;
  aspect-ratio: 41 / 25;
  background: #000;
  overflow: hidden;
}
.hero__video iframe,
.hero__video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.hero__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  background: rgba(0, 0, 0, .15);
  transition: background .2s;
}
.hero__play:hover { background: rgba(0, 0, 0, .05); }
.hero__play svg { width: 68px; height: 48px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }

@media (min-width: 921px) {
  .hero { background: var(--violeta); padding: 53px 0 84px; }
  .hero h1 { font-size: 64px; line-height: 1.02; }
  .hero__sub { margin-top: 13px; font-size: 24px; line-height: 1.3; }
  .hero__video { width: 994px; max-width: 100%; margin: 25px auto 0; }
}

/* =========================================================
   BLOQUE "TEXTO + IMAGEN CON MÉTRICAS"
   ========================================================= */
.split { display: grid; gap: 0; }
.split__titulo { color: var(--tinta); line-height: 1.08; }
.split__figura { position: relative; margin-top: 0; }
.split__figura img {
  width: 100%;
  height: 296px;
  object-fit: cover;
  border-radius: 20px;
}
/* Velo oscuro sobre la foto para que las métricas en blanco se lean */
.split__figura::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  border-radius: 20px;
  pointer-events: none;
}
.split__stats {
  position: absolute;
  z-index: 1;
  left: 25px;
  top: 54px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.split__stat b {
  display: block;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.split__stat span { display: block; font-size: 16px; font-weight: 700; color: #fff; }
.split__cuerpo { margin-top: 24px; }
.split__texto { font-size: 14px; line-height: 1.3; }
.split__intro { margin-top: 38px; font-size: 14px; line-height: 1.3; font-weight: 700; }
.split__lista { margin-top: 8px; font-size: 14px; line-height: 1.3; }
.split__pie { margin-top: 37px; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.3; }
.split__cta { margin-top: 6px; display: flex; justify-content: center; }

.bloque-atletas { padding: 40px 0 43px; }
.bloque-clientes { padding: 40px 0 60px; }
.bloque-clientes .split__titulo { line-height: 1.3; }
.bloque-atletas .split__figura { margin-top: 0; }
.bloque-clientes .split__figura { margin-top: 18px; }
.bloque-clientes .split__figura img { height: 231px; }
.bloque-clientes .split__stats { left: 28px; top: 39px; gap: 30px; }
.bloque-clientes .split__cuerpo { margin-top: 26px; }
.bloque-clientes .split__intro { margin-top: 31px; }
.bloque-clientes .split__lista { margin-top: 5px; }
.bloque-clientes .split__cta { margin-top: 40px; }

@media (min-width: 921px) {
  .split {
    grid-template-columns: 41.0948% 45.9150%;
    column-gap: 12.9902%;
    grid-template-rows: auto 1fr;
    align-items: start;
  }
  .split__titulo { grid-column: 1; grid-row: 1; padding-top: 17px; line-height: 1; }
  .split__figura { grid-column: 2; grid-row: 1 / span 2; margin-top: 0 !important; }
  .split__figura img { height: calc(577 * var(--u)); }
  .split__stats { left: calc(41 * var(--u)); top: calc(252 * var(--u)); gap: calc(63 * var(--u)); }
  .split__stat b { font-size: 48px; }
  .split__cuerpo { grid-column: 1; grid-row: 2; margin-top: 16px !important; }
  .split__texto { font-size: 16px; line-height: 1.5; }
  .split__intro { margin-top: 17px !important; font-size: 16px; line-height: 1.5; }
  .split__lista { margin-top: 7px !important; font-size: 16px; line-height: 1.5; }
  .split__pie { width: calc(146 * var(--u)); margin: 32px 0 0 calc(24 * var(--u)); }
  .split__cta { margin-top: 31px !important; justify-content: flex-start; }
  .split__pie + .split__cta { margin-top: 6px !important; }

  /* variante invertida (imagen a la izquierda) */
  .split--inv { grid-template-columns: 45.9150% 41.0948%; column-gap: 10.5392%; }
  .split--inv .split__figura { grid-column: 1; }
  .split--inv .split__titulo { grid-column: 2; padding-top: 49px; }
  .split--inv .split__cuerpo { grid-column: 2; }
  .split--inv .split__figura img { height: calc(536 * var(--u)); }
  .split--inv .split__stats { left: calc(364 * var(--u)); top: calc(218 * var(--u)); gap: calc(50 * var(--u)); }

  .bloque-atletas { padding: 103px 0 138px; }
  .bloque-clientes { padding: 64px 0 112px; }
}

/* =========================================================
   PLANES (fondo video + overlay)
   ========================================================= */
.planes { position: relative; overflow: hidden; padding: 40px 0 48px; }
.planes__bg { position: absolute; inset: 0; z-index: 0; }
.planes__bg video,
.planes__bg img { width: 100%; height: 100%; object-fit: cover; }
.planes__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  opacity: .6;
}
.planes .wrap { position: relative; z-index: 1; }
.planes h2 { color: #fff; text-align: center; line-height: 1.3; }
.planes__sub { margin-top: 20px; font-size: 16px; color: #fff; text-align: center; line-height: 1.5; }
.planes__grid { display: grid; gap: 41px; margin-top: 16px; }

.plan {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 40px 22px 56px;
  background: #fff;
  border-radius: 20px;
}
.plan__titulo {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--texto);
  text-align: center;
}
.plan__lista { margin-top: 30px; font-size: 14px; line-height: 1.3; color: var(--gris); }
.plan__ideal { margin-top: 31px; font-size: 14px; line-height: 1.3; color: var(--gris); }
.plan__cta { margin-top: auto; padding-top: 32px; display: flex; justify-content: center; }
.plan--oscuro .plan__lista,
.plan--oscuro .plan__ideal { color: var(--texto); }

@media (min-width: 921px) {
  .planes { padding: 80px 0 135px; }
  .planes h2 { font-size: 64px; }
  .planes__sub { margin-top: 21px; font-size: 24px; }
  .planes__grid {
    grid-template-columns: repeat(3, calc(284 * var(--u)));
    justify-content: center;
    column-gap: calc(128 * var(--u));
    row-gap: 0;
    margin-top: 49px;
  }
  .plan { min-height: 480px; padding: 33px calc(27 * var(--u)) 40px; }
  .plan__titulo { max-width: 172px; margin-inline: auto; }
  .plan__lista { margin-top: 40px; }
  .plan__ideal { margin-top: 45px; }
  .plan__cta { padding-top: 24px; }
}

/* =========================================================
   ¿CÓMO TRABAJO?
   ========================================================= */
.proceso { padding: 62px 0 56px; }
.proceso h3 { text-align: center; color: var(--tinta); }
.proceso__intro { margin-top: 13px; font-size: 14px; line-height: 1.3; }

/* Mobile: imagen vertical a la derecha + pasos a la izquierda */
.proceso__mobile {
  position: relative;
  margin-top: 42px;
  height: 543px;
}
.proceso__mobile img {
  position: absolute;
  top: 0;
  right: 0;
  width: 183px;
  height: 543px;
  object-fit: contain;
}
.proceso__pasos-m { position: relative; width: 167px; height: 100%; }
.proceso__pasos-m > div { position: absolute; width: 167px; }
.proceso__pasos-m > div:nth-child(1) { top: 7px; }
.proceso__pasos-m > div:nth-child(2) { top: 134px; }
.proceso__pasos-m > div:nth-child(3) { top: 272px; }
.proceso__pasos-m > div:nth-child(4) { top: 405px; }
.proceso__pasos-m h6 { font-size: 12px; line-height: 1.3; color: var(--tinta); }
.proceso__pasos-m p { margin-top: 6px; font-size: 12px; line-height: 1.3; }
.proceso__cta { margin-top: 75px; display: flex; justify-content: center; }

/* Desktop: diagrama horizontal con pasos arriba/abajo */
.proceso__desktop { display: none; }

@media (min-width: 921px) {
  .proceso { padding: 0 0 127px; }
  .proceso .wrap { width: 100%; }
  .proceso__mobile { display: none; }
  .proceso__desktop { display: grid; grid-template-columns: calc(451 * var(--u)) 1fr; column-gap: calc(64 * var(--u)); align-items: start; }
  .proceso__col { padding-top: 120px; }
  .proceso__col h3 { text-align: center; }
  .proceso__col .proceso__intro { margin-top: 18px; margin-left: calc(45 * var(--u)); width: calc(362 * var(--u)); font-size: 18px; line-height: 1.5; }
  .proceso__col .proceso__cta { margin-top: 37px; justify-content: flex-start; padding-left: calc(31 * var(--u)); }
  .proceso__diagrama { position: relative; height: calc(551 * var(--u)); }
  .proceso__diagrama > img {
    position: absolute;
    top: calc(184 * var(--u));
    left: 0;
    width: calc(666 * var(--u));
    max-width: 100%;
    height: calc(296 * var(--u));
    object-fit: contain;
  }
  .proceso__paso { position: absolute; }
  .proceso__paso h6 { font-size: calc(16 * var(--u)); line-height: 1.3; color: var(--tinta); text-align: center; }
  .proceso__paso p { margin-top: calc(8 * var(--u)); font-size: calc(16 * var(--u)); line-height: 1.1; }
  .proceso__paso--1 { top: calc(449 * var(--u)); left: 0; width: calc(215 * var(--u)); }
  .proceso__paso--1 p { width: calc(203 * var(--u)); margin-left: calc(6 * var(--u)); }
  .proceso__paso--2 { top: calc(80 * var(--u)); left: calc(146 * var(--u)); width: calc(215 * var(--u)); }
  .proceso__paso--2 p { width: calc(204 * var(--u)); margin-left: calc(17 * var(--u)); }
  .proceso__paso--3 { top: calc(449 * var(--u)); left: calc(299 * var(--u)); width: calc(215 * var(--u)); }
  .proceso__paso--3 p { width: calc(248 * var(--u)); margin-left: calc(-16 * var(--u)); }
  .proceso__paso--4 { top: calc(80 * var(--u)); left: calc(432 * var(--u)); width: calc(215 * var(--u)); }
  .proceso__paso--4 p { width: calc(274 * var(--u)); margin-left: calc(-20 * var(--u)); }
}

/* =========================================================
   TESTIMONIOS
   ========================================================= */
.testimonios { padding: 53px 0; }
.testimonios h3, .testimonios h1 { color: #fff; text-align: center; }
.testimonios__sub { margin-top: 16px; font-size: 18px; line-height: 1.5; color: #fff; text-align: center; }
.testimonios__grid { display: grid; gap: 41px; margin-top: 16px; }

.tarjeta {
  display: flex;
  flex-direction: column;
  padding: 18px 14px 49px;
  background: #fff;
  border-radius: 20px;
  text-align: center;
}
.tarjeta__estrellas { font-size: 20px; line-height: 1.3; color: rgb(255, 255, 0); }
.tarjeta__texto { margin-top: 22px; font-size: 16px; line-height: 1.5; }
.tarjeta__texto p + p { margin-top: 8px; }
.tarjeta__pruebas { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }
.tarjeta__pruebas img { width: 143px; height: 96px; object-fit: cover; border-radius: 20px; }
.tarjeta__autor { margin-top: auto; padding-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tarjeta__datos { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tarjeta__avatar { width: 65px; height: 63px; object-fit: cover; border-radius: 160px; }
.tarjeta__nombre { font-size: 16px; font-weight: 600; line-height: 1.3; color: rgb(13, 20, 26); }
.tarjeta__nombre a { text-decoration: none; }
.tarjeta__rol { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--gris); }
.tarjeta__ig { display: inline-flex; margin-top: 13px; color: #000; transition: color .2s; }
.tarjeta__ig:hover { color: rgb(58, 58, 58); }
.tarjeta__ig svg { width: 20px; height: 20px; }

.testimonios__cta { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; }

@media (min-width: 921px) {
  .testimonios { padding: 64px 0 56px; }
  .testimonios__sub { margin-top: 18px; font-size: 20px; }
  .testimonios__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 30px; }
  .tarjeta { min-height: 560px; padding: 64px 48px 54px; text-align: left; }
  .tarjeta__estrellas { font-size: 24px; }
  .tarjeta__texto { margin-top: 9px; }
  .tarjeta__pruebas { justify-content: flex-start; margin-top: 30px; }
  .tarjeta__pruebas img { width: 144px; height: 96px; }
  .tarjeta__autor { flex-direction: row; align-items: center; gap: 12px; padding-top: 0; text-align: left; }
  .tarjeta__avatar { width: 56px; height: 53px; border-radius: 31px; }
  .tarjeta__datos {
    flex: 1;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    column-gap: 12px;
    row-gap: 3px;
    text-align: left;
  }
  .tarjeta__nombre { grid-area: 1 / 1; }
  .tarjeta__ig { grid-area: 1 / 2; margin-top: 0; }
  .tarjeta__rol { grid-area: 2 / 1 / 3 / 4; font-size: 14px; }
  .testimonios__cta { flex-direction: row; justify-content: center; gap: 12px; margin-top: 48px; }
}

/* =========================================================
   SOBRE MÍ (home)
   ========================================================= */
.sobremi { padding: 52px 0 54px; }
.sobremi__grid { display: grid; gap: 0; }
.sobremi h3 { color: var(--tinta); line-height: 1.3; }
.sobremi__figura { margin-top: 25px; }
.sobremi__figura img { width: 100%; height: 296px; object-fit: cover; border-radius: 20px; }
.sobremi__nombre { margin-top: 24px; font-size: 18px; font-weight: 700; line-height: 1.3; color: #000; }
.sobremi__texto { margin-top: 14px; font-size: 16px; line-height: 1.5; }
.sobremi__texto p { margin-bottom: 8px; }
.sobremi__texto p:last-child { margin-bottom: 0; }
.sobremi__cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
/* En mobile el CTA principal va primero; en desktop, a la derecha del secundario. */
.sobremi__plan { order: 1; }
.sobremi__historia { order: 2; }

@media (min-width: 921px) {
  .sobremi { padding: 91px 0 95px; }
  .sobremi h3 { line-height: 1; }
  .sobremi__grid { grid-template-columns: 1fr 1fr; column-gap: 0.9804%; align-items: start; }
  .sobremi__col { grid-column: 1; grid-row: 1; padding-top: 13px; }
  .sobremi__figura { grid-column: 2; grid-row: 1; margin-top: 0; }
  .sobremi__figura img { height: calc(635 * var(--u)); }
  .sobremi__nombre { margin-top: 24px; }
  .sobremi__texto { margin-top: 17px; }
  .sobremi__cta { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; margin-top: 30px; }
  .sobremi__plan { order: 2; }
  .sobremi__historia { order: 1; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--azul-oscuro); color: #fff; padding: 40px 0 0; }
.footer__grid { display: grid; gap: 0; }
.footer h5 { color: #fff; font-size: 24px; line-height: 1.3; }
.footer__desc { margin-top: 12px; font-size: 16px; line-height: 1.5; }
.footer__social { margin-top: 13px; display: flex; gap: 16px; }
.footer__social a { display: flex; color: #fff; }
.footer__social svg { width: 24px; height: 24px; }
.footer__contacto { margin-top: 41px; }
.footer__contacto h6 { font-size: 14px; font-weight: 700; line-height: 1.5; color: #fff; }
.footer__contacto a { display: inline-block; margin-top: 26px; font-size: 16px; color: #fff; text-decoration: underline; }
.footer__legal { margin-top: 40px; font-size: 16px; line-height: 1.5; }
.footer__legal a { color: #fff; text-decoration: underline; }

@media (min-width: 921px) {
  .footer { padding: 70px 0 64px; }
  .footer__grid { grid-template-columns: 50.4902% 1fr; }
  .footer h5 { font-size: 32px; }
  .footer__desc { margin-top: 14px; font-size: 14px; line-height: 1.3; max-width: calc(297 * var(--u)); }
  .footer__social { margin-top: 22px; }
  .footer__contacto { grid-column: 2; grid-row: 1; margin-top: 10px; }
  .footer__contacto a { margin-top: 19px; }
  .footer__legal { grid-column: 1; margin-top: 32px; font-size: 14px; line-height: 1.3; }
  .footer__legal p + p { margin-top: 4px; }
}

/* =========================================================
   BURBUJA DE WHATSAPP
   ========================================================= */
.wa-bubble {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 19;
  width: 64px;
  height: 64px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  transition: transform .2s ease;
}
.wa-bubble:hover { transform: scale(1.05); }
.wa-bubble svg { width: 64px; height: 64px; }

/* =========================================================
   ANIMACIÓN DE ENTRADA (equivalente al "slide" del original)
   ========================================================= */
.anim {
  opacity: 0;
  transform: translateY(24px);
  transition: transform .65s .1s cubic-bezier(.22, .61, .36, 1),
              opacity .65s .1s ease;
}
.anim.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   PÁGINA "SOBRE MÍ"
   ========================================================= */
.sm-hero { padding: 35px 0 17px; background: #fff; }
.sm-hero img { width: 100%; height: 189px; object-fit: cover; border-radius: 25px; }
.sm-hero p { margin-top: 26px; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--texto); }

.sm-vida { padding: 35px 0 0; background: #fff; }
.sm-vida h3 { text-align: center; color: #000; line-height: 1.3; }
.sm-vida__grid { display: grid; gap: 0; }
.sm-vida__texto { margin-top: 16px; font-size: 16px; line-height: 1.3; color: var(--texto); }
.sm-vida__texto p { margin-bottom: 20px; }
.sm-vida__texto p:last-child { margin-bottom: 0; }
.sm-vida img { width: 100%; height: 278px; object-fit: cover; border-radius: 25px; margin-top: 39px; }

.sm-comunidad { padding: 51px 0 0; background: #fff; }
.sm-comunidad__grid { display: grid; gap: 0; }
.sm-comunidad__texto { font-size: 16px; line-height: 1.3; color: var(--texto); }
.sm-comunidad__texto p { margin-bottom: 20px; }
.sm-comunidad__texto p:last-child { margin-bottom: 0; }
.sm-comunidad img.sm-comunidad__foto { width: 100%; height: 278px; object-fit: cover; border-radius: 25px; margin-top: 42px; }
.sm-comunidad__cta { margin-top: 45px; text-align: center; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--texto); }
.sm-comunidad__perfil { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; }
.sm-comunidad__perfil img { width: 53px; height: 52px; object-fit: cover; border-radius: 160px; }
.sm-comunidad__perfil b { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--texto); }
.sm-comunidad__perfil span { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--texto); }
.sm-comunidad__perfil a { color: inherit; text-decoration: none; }
.sm-comunidad__perfil .sm-ig { display: flex; color: #000; }
.sm-comunidad__perfil .sm-ig svg { width: 33px; height: 33px; }

.sm-valida { padding: 37px 0 41px; background: #fff; }
.sm-valida h1 { text-align: center; font-size: 32px; line-height: 1.3; color: #000; }
.sm-valida__intro { margin-top: 21px; font-size: 16px; line-height: 1.3; color: var(--texto); }
.sm-valida__lista { margin-top: 21px; font-size: 16px; line-height: 1.3; color: var(--texto); }
.sm-valida__lista p { margin-bottom: 20px; }
.sm-valida__cierre { margin-top: 16px; font-size: 16px; line-height: 1.3; color: var(--texto); }
.sm-valida__cta { margin-top: 31px; display: flex; justify-content: center; }

.sm-formacion { padding: 37px 0; background: #fff; }
.sm-formacion h3 { text-align: center; color: #000; line-height: 1.3; }
.sm-grupo { margin-top: 68px; }
.sm-grupo h6 { text-align: center; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--tinta); }
.sm-grupo__lista { margin-top: 14px; font-size: 16px; line-height: 1.3; color: var(--texto); }
.sm-grupo__lista p { margin-bottom: 8px; }
.sm-grupo__lista p:last-child { margin-bottom: 0; }
.sm-grupo__linea { display: none; }

@media (min-width: 921px) {
  .sm-hero { padding: 40px 0 5px; }
  .sm-hero img { height: calc(504 * var(--u)); }
  .sm-hero p { margin-top: 19px; font-size: 24px; }

  .sm-vida { padding: 58px 0 71px; }
  .sm-vida__grid { grid-template-columns: calc(503 * var(--u)) calc(606 * var(--u)); justify-content: space-between; margin-top: 24px; }
  .sm-vida__texto { margin-top: 0; padding-top: 24px; font-size: 24px; }
  .sm-vida img { height: calc(504 * var(--u)); margin-top: 0; }

  .sm-comunidad { padding: 71px 0 71px; }
  .sm-comunidad__grid { grid-template-columns: 606fr 503fr; column-gap: 9.3954%; }
  .sm-comunidad img.sm-comunidad__foto { height: calc(576 * var(--u)); margin-top: 0; grid-column: 1; grid-row: 1; }
  .sm-comunidad__col { grid-column: 2; grid-row: 1; padding-top: 30px; }
  .sm-comunidad__texto { font-size: 24px; }
  .sm-comunidad__cta { margin-top: 84px; padding-inline: calc(63 * var(--u)); }
  .sm-comunidad__perfil { margin-top: 17px; }

  .sm-valida { padding: 40px 0 75px; }
  .sm-valida h1 { font-size: 48px; }
  .sm-valida__intro { margin-top: 24px; font-size: 24px; }
  .sm-valida__lista { margin-top: 24px; margin-inline: calc(65 * var(--u)); font-size: 24px; }
  .sm-valida__cierre { margin-top: 58px; font-size: 24px; }
  .sm-valida__cta { margin-top: 22px; }

  .sm-formacion { padding: 80px 0 100px; }
  .sm-formacion h3 { text-align: left; }
  .sm-grupo {
    display: grid;
    grid-template-columns: calc(400 * var(--u)) calc(44 * var(--u)) 1fr;
    align-items: center;
    column-gap: calc(56 * var(--u));
    margin-top: 61px;
  }
  .sm-grupo h6 { font-size: calc(32 * var(--u)); padding-left: calc(103 * var(--u)); text-align: center; }
  .sm-grupo__linea { display: block; width: 4px; min-height: 309px; height: 100%; background: #000; justify-self: center; }
  .sm-grupo__lista { margin-top: 0; font-size: 18px; }
}

/* Variante del bloque "¿cómo trabajo?" usada en las subpáginas */
.proceso__pregunta { text-align: left !important; line-height: 1; }
.proceso__pregunta span { color: var(--texto); }
.proceso__pregunta strong { color: var(--tinta); }
.proceso--pregunta .proceso__intro { margin-top: 30px; }

@media (min-width: 921px) {
  .proceso--pregunta .proceso__col { padding-top: 80px; }
  .proceso--pregunta .proceso__col .proceso__intro { margin-top: 30px; margin-left: 0; width: calc(362 * var(--u)); }
  .proceso--pregunta .proceso__col .proceso__cta { margin-top: 45px; padding-left: 0; }
  .proceso--pregunta .proceso__diagrama { height: calc(580 * var(--u)); }
  .proceso--pregunta .proceso__diagrama > img { top: calc(184 * var(--u)); width: calc(694 * var(--u)); height: calc(308 * var(--u)); }
  .proceso--pregunta .proceso__paso--1,
  .proceso--pregunta .proceso__paso--3 { top: calc(478 * var(--u)); }
}

/* Ajustes finos de la página "Sobre mí" en desktop */
@media (min-width: 921px) {
  .sm-valida__intro,
  .sm-valida__cierre { max-width: calc(1018 * var(--u)); margin-inline: auto; }
  .sm-valida__lista { max-width: calc(888 * var(--u)); margin-inline: auto; }
  .sm-comunidad__cta { width: calc(297 * var(--u)); margin-left: calc(63 * var(--u)); padding-inline: 0; }
  .sm-comunidad__perfil { margin-left: calc(47 * var(--u)); justify-content: flex-start; }
  .sm-grupo { margin-top: 121px; }
  .sm-grupo__linea { justify-self: start; }
  .sm-grupo__lista { max-width: calc(565 * var(--u)); }
  .sm-grupo:last-of-type .sm-grupo__lista { max-width: calc(662 * var(--u)); }
}

/* Fotos de respaldo del testimonio: sólo en desktop (como en el sitio original) */
.tarjeta__pruebas--desk { display: none; }
@media (min-width: 921px) {
  .tarjeta__pruebas--desk { display: flex; }
}

/* Correcciones de desktop que las reglas mobile pisaban */
@media (min-width: 921px) {
  .hero__video { aspect-ratio: 994 / 559; }
  .bloque-clientes .split__titulo { line-height: 1; }
  .planes__sub { line-height: 1.3; }
}

/* =========================================================
   MOBILE FLUIDO
   El layout mobile original estaba clavado a 328px de contenido. Acá todas
   esas medidas pasan a proporciones para que acompañen cualquier pantalla.
   Las relaciones de aspecto conservan las proporciones originales (328px de
   ancho de referencia), así que las superposiciones siguen calzando.
   ========================================================= */
@media (max-width: 920px) {

  /* --- Header: logo más chico y proporcionado --- */
  .header__inner { height: 80px; padding: 10px 16px; }
  .header__logo img { width: 56px; height: 56px; }

  /* --- Fotos con métricas superpuestas --- */
  .split__figura img { height: auto; aspect-ratio: 328 / 296; }
  .split__stats { left: 7.6%; top: 18.2%; }
  .bloque-clientes .split__figura img { aspect-ratio: 328 / 231; }
  .bloque-clientes .split__stats { left: 8.5%; top: 16.9%; }

  /* --- Diagrama del proceso ---
     La foto se recorta con la misma ventana que usaba el sitio original, y
     los pasos se ubican en porcentaje para que las flechas sigan apuntando
     al texto correcto en cualquier ancho. */
  .proceso__mobile { height: auto; aspect-ratio: 328 / 543; }
  .proceso__mobile img {
    width: 55.8%;
    height: 100%;
    object-fit: cover;
  }
  .proceso__pasos-m { width: 51%; }
  .proceso__pasos-m > div { width: 100%; }
  .proceso__pasos-m > div:nth-child(1) { top: 1.3%; }
  .proceso__pasos-m > div:nth-child(2) { top: 24.7%; }
  .proceso__pasos-m > div:nth-child(3) { top: 50.1%; }
  .proceso__pasos-m > div:nth-child(4) { top: 74.6%; }

  /* --- Fotos de respaldo en testimonios ---
     `min-width: 0` es imprescindible: sin eso el ancho intrínseco de la imagen
     (375px) se vuelve el mínimo del flex item y desborda la tarjeta. */
  .tarjeta__pruebas img {
    width: auto;
    height: auto;
    flex: 1 1 0;
    min-width: 0;
    max-width: 180px;
    aspect-ratio: 143 / 96;
  }

  /* --- Fotos de la página "Sobre mí" --- */
  .sm-hero img { height: auto; aspect-ratio: 328 / 189; }
  .sm-vida img,
  .sm-comunidad img.sm-comunidad__foto { height: auto; aspect-ratio: 328 / 278; }
  .sobremi__figura img { height: auto; aspect-ratio: 328 / 296; }
}

/* =========================================================
   TAMAÑOS DE TEXTO DE LAS TARJETAS DE PLANES
   En el sitio original sólo se achicaba en desktop (--fontSizeDesktop);
   en mobile heredaba el cuerpo de 16px y el h6 de 20px.
   ========================================================= */
.plan__titulo { font-size: 20px; }
.plan__lista,
.plan__ideal { font-size: 16px; line-height: 1.5; }

@media (min-width: 921px) {
  .plan__titulo { font-size: 18px; }
  .plan__lista,
  .plan__ideal { font-size: 14px; line-height: 1.3; }
}

/* Las grillas de una sola columna deben seguir el ancho del contenedor y no el
   min-content de las tarjetas (que las fotos internas inflaban). */
.testimonios__grid,
.planes__grid { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 921px) {
  .testimonios__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planes__grid { grid-template-columns: repeat(3, calc(284 * var(--u))); }
}
