/* =========================================================
   Adaptación: escritorio grande → laptop → tablet → móvil
   Prioridad móvil: objetivos táctiles ≥ 44 px, sin desbordamiento horizontal,
   textos sin cortes y composición de la portada pensada para pantalla vertical.
   ========================================================= */

@media (max-width: 1100px) {
  .hero__media { inset: 0; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 0%, rgb(5 5 7 / .78) 30%, rgb(5 5 7 / .1) 58%, rgb(5 5 7 / .45) 100%); }
  [data-theme="light"] .hero__shade { background: linear-gradient(0deg, var(--bg) 0%, rgb(245 247 251 / .85) 32%, transparent 62%); }
  .hero__cue { display: none; }
  .hdr__nav { display: none; }
  .hdr__burger { display: grid; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .ftr__top { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --hdr-h: 68px; }
  .sec-head--split { grid-template-columns: 1fr; gap: 22px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { position: relative; top: 0; width: min(520px, 100%); margin-inline: auto; }
  .nutri__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "p p" "a b" "c d"; }
  .why__photo { min-height: 0; aspect-ratio: 16 / 11; }
  .why__photo img { object-position: 50% 25%; }
  .process__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .process__head, .faq__side, .contact__info { position: static; }
  .faq__photo { display: none; }
  .steps { gap: 14px; }
  .step { position: relative; top: 0; grid-template-columns: 1fr; min-height: 0; }
  .step picture { aspect-ratio: 16 / 9; display: block; }
  .soon { grid-template-columns: 1fr; }
  .menu__inner { grid-template-columns: 1fr; align-items: start; }
  .hero__emblem { width: 78vw; }
}

@media (max-width: 760px) {
  :root { --t-md: 16.5px; --sec: 84px; }
  .hdr { padding: calc(8px + var(--safe-t)) 8px 0; }
  .hdr__bar { padding: 6px 6px 6px 14px; min-height: 56px; gap: 8px; }
  .hdr__brand img { width: 34px; }
  .hdr__brand .wordmark { font-size: 14.5px; }
  .hdr__cta { display: none; }

  /* Portada vertical: foto completa, texto abajo, nada cortado */
  .hero { padding-top: calc(var(--hdr-h) + 24px); padding-bottom: calc(84px + var(--safe-b)); align-items: end; }
  .hero__media { inset: 0; }
  .hero__pic img, .hero__video { object-position: 50% 18%; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 0%, rgb(5 5 7 / .78) 30%, rgb(5 5 7 / .1) 58%, rgb(5 5 7 / .45) 100%); }
  [data-theme="light"] .hero__shade { background: linear-gradient(0deg, var(--bg) 0%, rgb(245 247 251 / .85) 32%, transparent 62%); }
  .hero__emblem { left: 50%; top: auto; bottom: 34%; width: 92vw; margin-left: -46vw; opacity: .5 !important; }
  .hero__title { font-size: calc(clamp(56px, 18vw, 120px) * var(--fit, 1)); }
  .hero__kicker { font-size: 13.5px; margin-bottom: 12px; }
  .hero__foot { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 14px; }
  .hero__lead { font-size: 16.5px; max-width: none; }
  .hero__btns { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero__btns .btn { width: 100%; }
  .hero__cue { display: none; }

  .about__intro { font-size: 22px; }
  .about__duo { grid-template-columns: 1fr; }
  .about__duo .about__block { padding: 20px; }
  .about__btns .btn { flex: 1 1 100%; }
  .ag__item { height: 380px; }
  .ag__item:nth-child(3n+2) { height: 300px; margin-top: 40px; }

  .method__head { align-items: start; }
  .seg { max-width: 100%; display: flex; }
  .seg button { flex: 1 1 auto; padding: 0 12px; font-size: 14px; }
  .nutri__plans .seg { width: 100%; }
  .principles { grid-template-columns: 1fr; }

  .plan { width: min(86vw, 360px); scroll-snap-align: center; }
  .promo { border-radius: 20px; align-items: start; }

  .calc__fields { grid-template-columns: 1fr 1fr; }
  .calc__fields .field:last-child { grid-column: 1 / -1; }

  .why__grid { grid-template-columns: 1fr; grid-template-areas: "p" "a" "c" "b" "d"; gap: 12px; }
  .why__item { padding: 22px; }

  .tcard { width: 88vw; }
  .cmp__knob { width: 50px; height: 50px; }
  .quote-empty { grid-template-columns: 1fr; text-align: left; }
  .quote-empty .btn { justify-self: start; }

  .ig__head { align-items: start; }
  .ig__tools { width: 100%; justify-content: space-between; }
  .ig__arrows { display: none; }
  .ig__cell { width: 64vw; }
  .ig__cell:nth-child(even) { margin-top: 0; }

  .wiz { padding: 22px 16px; }
  .wiz__grid, .opts--2, .opts--prog, .opts--3 { grid-template-columns: 1fr; }
  .wiz__bar span { font-size: 0; }
  .wiz__bar li { height: 4px; }
  .sum__group dl div { grid-template-columns: 1fr; gap: 0; }
  .wiz__nav .btn { flex: 1; }

  /* Acceso rápido a todo el ancho, por encima del área segura de iOS */
  .dock { left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); }
  .dock__btn { flex: 1; }
  .toast { bottom: calc(84px + var(--safe-b)); }

  .ftr__nav { grid-template-columns: 1fr 1fr; }
  .ftr__logo .wordmark { font-size: 17px; }
  .ftr__logo img { width: 44px; }
  .ftr__legal { flex-direction: column; }
  .ftr { padding-bottom: calc(90px + var(--safe-b)); }

  .igv__bottom { grid-template-columns: auto 1fr auto; }
  .igv__cap { grid-column: 1 / -1; grid-row: 2; white-space: normal; text-align: center; }
  .igv .btn--glass { grid-column: 2; grid-row: 1; justify-self: center; }
  .dlg[open] { padding: 12px; align-items: end; }
  .dlg__box { border-radius: 26px; max-height: calc(100dvh - 24px); }
}

@media (max-width: 380px) {
  .hdr__brand .wordmark { font-size: 13px; }
  
  .ftr__nav { grid-template-columns: 1fr; }
  .calc__fields { grid-template-columns: 1fr; }
}

/* Puntero fino: sin inclinación cuando los efectos 3D están desactivados */
html:not(.fx3d) [data-tilt] { transform: none !important; }
html:not(.fx3d) .hero__emblem .em--back, html:not(.fx3d) .hero__emblem .em--mid { transform: none; }
@media (hover: none) { [data-tilt] { transform: none !important; } }

/* Vista previa del panel */
html.is-preview .dock { position: fixed; }
