/* =========================================================
   Bruno Giordanengo — Nutrición deportiva
   Base compartida con el resto de las landings + tokens propios.
   ========================================================= */

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

  /* Paleta */
  --teja: rgb(206, 72, 47);        /* marca / botones */
  --naranja: rgb(235, 161, 82);    /* destacados sobre fondo oscuro */
  --tinta: rgb(26, 26, 26);        /* titulares */
  --tinta-fuerte: rgb(13, 20, 26);
  --texto: rgb(86, 88, 94);        /* cuerpo */
  --gris-claro: rgb(184, 192, 204);
  --verde-suave: #E3F9E5;
  --nav: #0d141a;
  --overlay: rgb(29, 30, 32);

  /* Grilla: desktop 1224px; mobile fluido con tope 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(--teja); outline-offset: 3px; }

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

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

.naranja { color: var(--naranja); }

/* ---------- Contenedor ---------- */
.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); }

  /* 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); }
}

@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: 400;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--teja);
  border-radius: 28px;
  transition: filter .2s ease, transform .2s ease;
}
.btn:hover { filter: brightness(.92); }
.btn:active { transform: translateY(1px); }
.btn--gris { background: var(--texto); }

.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: 103px;
  padding: 24px 16px;
}
.header__logo { display: block; flex: none; }
.header__logo img { width: 55px; height: 55px; 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,
.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; }

.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); }

.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: 78px; padding: 0 16px; }
  .header__logo img { width: 78px; height: 78px; }
  .header__nav { display: block; margin-left: auto; }
  .header__social { display: flex; margin-left: 32px; }
  .burger, .menu-mobile { display: none !important; }
}

/* =========================================================
   SECCIONES Y FONDOS DE VÍDEO
   ========================================================= */
.seccion { position: relative; }
.seccion--blanca { background: #fff; }

.bg-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.bg-video video,
.bg-video img { width: 100%; height: 100%; object-fit: cover; }
.bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  opacity: var(--velo, .7);
}
.seccion > .wrap { position: relative; z-index: 1; }

/* Fondo fijo (parallax). `clip-path` recorta el vídeo fijo a la sección;
   funciona también en iOS, donde `background-attachment: fixed` no. */
.seccion--fijo { clip-path: inset(0); }
.seccion--fijo .bg-video { position: fixed; }
@media (prefers-reduced-motion: reduce) {
  .seccion--fijo { clip-path: none; }
  .seccion--fijo .bg-video { position: absolute; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { text-align: center; padding: 80px 0 46px; overflow: hidden; --velo: .69; }
.hero h1 { color: #fff; }
.hero__lema { margin-top: 15px; font-size: 16px; font-weight: 700; line-height: 1.3; color: #fff; }
.hero__texto { margin-top: 24px; font-size: 16px; font-weight: 700; line-height: 1.3; color: #fff; }
.hero__cta { margin-top: 41px; display: flex; justify-content: center; }

@media (min-width: 921px) {
  .hero { padding: 160px 0 174px; }
  .hero__lema { margin-top: 24px; font-size: 24px; }
  .hero__texto { margin-top: 25px; font-size: 24px; max-width: 812px; margin-inline: auto; }
  .hero__cta { margin-top: 44px; }
}

/* =========================================================
   SERVICIOS (4 tarjetas sobre vídeo)
   ========================================================= */
.servicios { padding: 40px 0 56px; overflow: hidden; --velo: .2; }
.servicios h2 { color: #fff; text-align: center; }
.servicios__intro { margin-top: 35px; font-size: 16px; line-height: 1.5; color: #fff; text-align: center; }
.servicios__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; margin-top: 40px; }
.servicio {
  padding: 28px 24px;
  background: #fff;
  border-radius: 20px;
}
.servicio h3 { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--tinta-fuerte); }
.servicio p { margin-top: 18px; font-size: 16px; line-height: 1.3; color: var(--texto); }
.servicios__cta { margin-top: 56px; display: flex; justify-content: center; }

@media (min-width: 921px) {
  .servicios { padding: 80px 0 143px; }
  .servicios__intro { margin-top: 22px; max-width: 606px; margin-inline: auto; }
  .servicios__grid {
    grid-template-columns: repeat(2, calc(408 * var(--u)));
    justify-content: space-between;
    gap: calc(24 * var(--u)) calc(104 * var(--u));
    margin-top: 62px;
  }
  .servicio { min-height: 242px; padding: 42px calc(34 * var(--u)); }
  .servicios__cta { margin-top: 58px; }
}

/* =========================================================
   FRASE
   ========================================================= */
.frase { padding: 40px 0 63px; background: #fff; text-align: center; }
.frase h2 { font-weight: 400; }
@media (min-width: 921px) { .frase { padding: 64px 0 64px; } }

/* =========================================================
   SERVICIO / MODALIDAD DE TRABAJO
   ========================================================= */
.modalidad { padding: 40px 0 56px; overflow: hidden; --velo: .9; }
.modalidad h2 { color: #fff; text-align: center; }
.modalidad__caja {
  margin-top: 24px;
  padding: 24px 20px 40px;
  background: #fff;
  border-radius: 20px;
  text-align: center;
}
.modalidad__titulo { font-size: 16px; font-weight: 700; line-height: 1.3; color: #000; }
.modalidad__lista { margin-top: 40px; text-align: left; }
.modalidad__lista li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--texto);
}
.modalidad__lista li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--texto);
}
.modalidad__cierre { margin-top: 26px; font-size: 16px; font-weight: 700; line-height: 1.3; color: #000; }
.modalidad__cta { margin-top: 28px; display: flex; justify-content: center; }

@media (min-width: 921px) {
  .modalidad { padding: 64px 0 112px; }
  .modalidad__caja { max-width: 812px; margin: 51px auto 0; padding: 54px 55px 40px; }
  .modalidad__titulo { font-size: 20px; }
  .modalidad__lista { margin-top: 56px; }
  .modalidad__lista li { font-size: 16px; margin-bottom: 12px; padding-left: 22px; }
  .modalidad__cierre { margin-top: 44px; font-size: 20px; }
  .modalidad__cta { margin-top: 32px; }
}

/* =========================================================
   CASOS REALES
   ========================================================= */
.casos { padding: 56px 0; background: #fff; }
.casos h3 { text-align: center; }
.casos__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 44px; }
.casos__grid a { display: block; border-radius: 20px; overflow: hidden; transition: transform .2s ease; }
.casos__grid a:hover { transform: translateY(-3px); }
.casos__grid img { width: 100%; height: auto; aspect-ratio: 328 / 184; object-fit: cover; }
.casos__cta { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; }

@media (min-width: 921px) {
  .casos { padding: 75px 0 105px; }
  .casos h3 { max-width: 974px; margin-inline: auto; }
  .casos__grid { grid-template-columns: repeat(2, calc(503 * var(--u))); justify-content: space-between; gap: calc(32 * var(--u)) calc(12 * var(--u)); margin-top: 40px; }
  .casos__grid img { aspect-ratio: 503 / 296; }
  .casos__cta { flex-direction: row; justify-content: center; gap: 12px; margin-top: 56px; }
}

/* =========================================================
   SUBPÁGINAS
   ========================================================= */
.sub { padding: 40px 0 48px; background: #fff; }
.sub h1 { font-size: 32px; }
.sub__texto { margin-top: 24px; font-size: 16px; line-height: 1.5; }
.sub__texto p { margin-bottom: 16px; }
.sub__texto p:last-child { margin-bottom: 0; }
.sub__figura { margin-top: 32px; }
.sub__figura img { width: 100%; height: auto; border-radius: 20px; }
.sub__cta { margin-top: 40px; display: flex; justify-content: center; }

@media (min-width: 921px) {
  .sub { padding: 64px 0 64px; }
  .sub h1 { font-size: 48px; }
  .sub__duo { display: grid; grid-template-columns: 49.5098% 41.0948%; justify-content: space-between; align-items: center; gap: 0 5.2288%; }
  .sub__texto { margin-top: 26px; font-size: 18px; }
  .sub__figura { margin-top: 0; }
  .sub__ancho { max-width: 83.1699%; margin-inline: auto; }
}

/* Tarjetas de testimonio de la subpágina */
.testi { padding: 32px 0; background: #fff; }
.testi__item { margin-bottom: 48px; }
.testi__item:last-child { margin-bottom: 0; }
.testi__nombre { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--tinta); }
.testi__cargo { margin-top: 6px; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--teja); text-transform: uppercase; }
.testi__texto { margin-top: 14px; font-size: 16px; line-height: 1.5; }
.testi__foto { margin-top: 20px; }
.testi__foto img { width: 100%; height: auto; border-radius: 20px; }

@media (min-width: 921px) {
  .testi { padding: 40px 0; }
  .testi__item {
    display: grid;
    grid-template-columns: calc(606 * var(--u)) calc(606 * var(--u));
    justify-content: space-between;
    align-items: center;
    gap: 0 calc(12 * var(--u));
    margin-bottom: 64px;
  }
  /* Los testimonios alternan el lado de la foto: impares a la derecha,
     pares a la izquierda, igual que el original. */
  .testi__foto { margin-top: 0; grid-row: 1 / span 3; grid-column: 2; }
  .testi__nombre { grid-column: 1; grid-row: 1; }
  .testi__cargo  { grid-column: 1; grid-row: 2; }
  .testi__texto  { grid-column: 1; grid-row: 3; }
  .testi__item:nth-child(even) .testi__foto { grid-column: 1; }
  .testi__item:nth-child(even) .testi__nombre,
  .testi__item:nth-child(even) .testi__cargo,
  .testi__item:nth-child(even) .testi__texto { grid-column: 2; }
  .testi__nombre { font-size: 24px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #fff; padding: 40px 0; border-top: 1px solid rgba(0, 0, 0, .06); }
.footer__logo img { width: 156px; height: auto; }
.footer__lema { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--gris-claro); }
.footer__social { margin-top: 24px; display: flex; gap: 20px; }
.footer__social a { display: flex; color: #000; }
.footer__social svg { width: 24px; height: 24px; }
.footer__legal { margin-top: 32px; font-size: 14px; line-height: 1.5; color: var(--texto); }
.footer__legal a { color: var(--texto); text-decoration: underline; }

@media (min-width: 921px) {
  .footer { padding: 59px 0 44px; }
  .footer__grid { display: grid; grid-template-columns: 1fr auto; align-items: end; }
  .footer__lema { margin-top: 8px; max-width: 297px; }
  .footer__social { margin-top: 27px; }
  .footer__legal { grid-column: 2; grid-row: 1; margin-top: 0; text-align: right; }
}

/* =========================================================
   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
   ========================================================= */
.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; }
}

/* Anchos de línea del original */
@media (min-width: 921px) {
  .servicios h2 { max-width: 812px; margin-inline: auto; }
  .modalidad__lista { max-width: 703px; margin-inline: auto; }
  .modalidad__cierre { max-width: 391px; margin-inline: auto; }
  .hero h1 { max-width: 1224px; margin-inline: auto; }
}

/* Foto en banda a ancho completo de la página "Sobre mí" */
.sub__figura--banda img { width: 100%; height: auto; aspect-ratio: 1224 / 545; object-fit: cover; }
@media (min-width: 921px) {
  .sub--banda { padding: 24px 0; }
  /* La foto de la portada mide 399px en el original, no toda la columna */
  .sub__duo { grid-template-columns: 49.5098% 32.5980%; justify-content: start; column-gap: 6.2092%; }
}

/* =========================================================
   HEADER: el original usa el layout "desktop-3" —una grilla de tres
   columnas con el logo a la izquierda, el menú CENTRADO y las redes a la
   derecha—, no un flex que empuja todo hacia el borde.
   ========================================================= */
@media (min-width: 921px) {
  .header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .header__logo { justify-self: start; }
  .header__nav { justify-self: center; margin-left: 0; }
  .header__social { justify-self: end; margin-left: 0; }
}

/* =========================================================
   "Sobre mí": medidas reales del original.
   Los bloques de texto ocupan los 1224px completos, igual que la foto en
   banda; antes iban a 1018px y no alineaban con ella.
   ========================================================= */
.sub h1, .sub h2 { font-size: 24px; }

@media (min-width: 921px) {
  .sub h1, .sub h2 { font-size: 32px; }
  .sub__texto { font-size: 18px; }
  .sub__ancho { max-width: calc(var(--ancho) + 32px); }
  .sub__duo { grid-template-columns: 51.0621% 32.5980%; justify-content: start; column-gap: 4.5752%; }
  .sub__duo .sub__texto { font-size: 18px; }
}
@media (min-width: 921px) {
  /* La barra del original mide 1224px con 16px de padding: su contenido
     queda 16px hacia adentro respecto del cuerpo de la página. */
  .header__inner { max-width: var(--ancho); }
}


/* =========================================================
   AVISO DE COOKIES
   La barra la inyecta site.js; sólo aparece si hay algún script de medición
   esperando consentimiento (<script type="text/plain" data-consent>).
   ========================================================= */
.cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;                 /* por encima del header (20) y de la burbuja (19) */
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin-inline: auto;
  padding: 20px;
  border-radius: 16px;
  background: var(--nav);
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .28);
  animation: cookies-entra .28s ease-out;
}
@keyframes cookies-entra {
  from { opacity: 0; transform: translateY(12px); }
}
.cookies__texto { margin: 0; font-size: 14px; line-height: 1.5; }
.cookies__botones { display: flex; gap: 12px; }
.cookies__btn {
  flex: 1;
  min-height: 44px;            /* área táctil cómoda en el celular */
  padding: 10px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
}
.cookies__btn--si { background: var(--teja); color: #fff; }
.cookies__btn--no {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}
.cookies__btn--no:hover { background: rgba(255, 255, 255, .12); }

/* Enlace del pie para volver a elegir. */
.cookies-link {
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

@media (min-width: 641px) {
  .cookies {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    max-width: 860px;
    padding: 18px 24px;
  }
  .cookies__botones { flex: none; }
  .cookies__btn { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cookies { animation: none; }
}

/* Mientras el aviso está abierto la burbuja de WhatsApp sube, para que no
   quede tapada justo en la primera visita. --cookies-alto lo mide site.js. */
.wa-bubble { transition: bottom .2s ease; }
body.cookies-abierto .wa-bubble { bottom: calc(var(--cookies-alto, 0px) + 32px); }
