/* ==========================================================================
   EMAU - HERO SECTION STYLESHEET
   Construcción pixel-perfect basada en referencia-01.webp (1672x941 px)
   ========================================================================== */

/* ---- 0. VARIABLES Y RESET ---- */
:root {
  --red-900: #5E0806;
  --red-800: #7A0B06;
  --red-700: #9A1305;
  --red-600: #B81E08;
  --orange:  #FF7A1F;
  --amber:   #FFB23E;
  --gold:    #F8BC35;
  --gold-soft: #FFD98A;
  --cream:   #FFF0DA;
  --cream-text: #FFF4E6;
  --ink:     #7C1A10;
  --white:   #FFFFFF;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background: var(--red-800);
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  color: var(--white);
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accesibilidad y foco */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---- 1. HERO Y FONDO (CASO A) ---- */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: var(--red-800);
}

/* Fondo atmosférico animado */
.hero__bg {
  position: absolute;
  inset: -4%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  animation: bgDrift 32s ease-in-out infinite alternate;
  background:
    /* 1. Viñeta periférica */
    radial-gradient(ellipse at center, transparent 55%, rgba(60, 0, 0, 0.45) 100%),
    /* 2. Resplandor cálido de horizonte centrado en x: 48%, y: 87% */
    radial-gradient(ellipse 65% 15% at 48% 87.5%, rgba(255, 205, 85, 0.95) 0%, rgba(255, 135, 40, 0.65) 35%, rgba(255, 90, 20, 0) 75%),
    /* 3. Luz cálida detrás de los productos (x: 70%, y: 48%) */
    radial-gradient(ellipse 34% 58% at 70% 48%, rgba(255, 110, 40, 0.32) 0%, transparent 70%),
    /* 4. Degradado vertical del cielo */
    linear-gradient(180deg, #6B0804 0%, #8E1005 30%, #A81806 55%, #C9300C 78%, #E8561A 88%, #931908 100%);
}

@keyframes bgDrift {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.09) translate3d(-1%, -1%, 0); }
}

/* Tablones inferiores anteriores desactivados (reemplazados por imagen inferior-hero.webp) */
.hero__bg-slats {
  display: none !important;
}

/* ---- 2. NUBES (DINÁMICAS, POSICIONABLES Y CAPAS Z-INDEX) ---- */
.hero__clouds {
  display: contents;
}

.cloud-item {
  position: absolute;
  left: var(--cx, 50%);
  top: var(--cy, 50%);
  width: var(--csize, 40vw);
  z-index: var(--cz, 1);
  transform: translate(-50%, -50%) rotate(var(--crot, 0deg));
  opacity: var(--copacity, 0.9);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  transition: opacity .35s ease;
}

.cloud-item img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.18));
}

.cloud-item.drift-gentle img {
  animation: cloudGentleDrift var(--cdur, 22s) ease-in-out infinite alternate var(--cdelay, 0s);
}
.cloud-item.drift-tr img {
  animation: cloudDriftTR 24s ease-in-out infinite alternate;
}
.cloud-item.drift-bl img {
  animation: cloudDriftBL 26s ease-in-out infinite alternate;
}
.cloud-item.drift-tl img {
  animation: cloudDriftTL 22s ease-in-out infinite alternate;
}
.cloud-item.drift-br img {
  animation: cloudDriftBR 28s ease-in-out infinite alternate;
}

@keyframes cloudGentleDrift {
  0%   { transform: scale(1.0) translate3d(0, 0, 0); }
  50%  { transform: scale(1.03) translate3d(1.4%, -1.2%, 0); }
  100% { transform: scale(1.01) translate3d(-1.2%, 1.4%, 0); }
}

/* Compatibilidad con capas de nubes estáticas */
.cloud-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cloud-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.cloud-img--tr {
  object-position: right top;
  animation: cloudDriftTR 22s ease-in-out infinite alternate;
}
.cloud-img--bl {
  object-position: left bottom;
  animation: cloudDriftBL 26s ease-in-out infinite alternate;
}
.cloud-img--tl {
  object-position: left top;
  animation: cloudDriftTL 24s ease-in-out infinite alternate;
}
.cloud-img--br {
  object-position: right bottom;
  animation: cloudDriftBR 28s ease-in-out infinite alternate;
}

@keyframes cloudDriftTR {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.06) translate3d(-1.5%, 1.2%, 0); }
}
@keyframes cloudDriftBL {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.06) translate3d(1.5%, -1.2%, 0); }
}
@keyframes cloudDriftTL {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.06) translate3d(1.2%, 1.5%, 0); }
}
@keyframes cloudDriftBR {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.06) translate3d(-1.2%, -1.5%, 0); }
}

/* ---- 3. HEADER & NAVEGACIÓN (Z-INDEX 10) ---- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10.6%;
  min-height: 80px;
  max-height: 110px;
  padding: 0 5.4% 0 7.4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  background: transparent;
  transition: background .35s var(--ease-out), backdrop-filter .35s var(--ease-out), box-shadow .35s var(--ease-out);
}

.nav.is-scrolled {
  position: fixed;
  background: rgba(110, 10, 6, 0.55);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(255, 220, 170, 0.22);
  box-shadow: 0 8px 30px rgba(40, 0, 0, 0.3);
}

/* Logo colocado por caja de contenido (sobresale por debajo del header) */
.nav__brand {
  position: absolute;
  left: 7.5%;
  top: 2.1%;
  width: 10.5vw;
  display: inline-block;
  text-decoration: none;
  z-index: 11;
  transition: transform .25s var(--ease-out), filter .25s var(--ease-out);
}

.nav__brand:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 14px rgba(255, 220, 150, 0.75));
}

.nav__logo {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Menú central */
.nav__menu {
  position: absolute;
  left: 50%;
  top: 54px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.5vw, 59px);
}

.nav__link {
  position: relative;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 0.96vw, 17px);
  color: var(--cream-text);
  text-decoration: none;
  padding: 6px 0;
  letter-spacing: 0.01em;
  transition: color .25s var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease-out);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

/* Acciones del header */
.nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* Botón "Ordena ahora" */
.btn-order {
  height: clamp(40px, 2.7vw, 46px);
  padding: 0 clamp(18px, 1.45vw, 26px);
  border-radius: 999px;
  background: var(--cream);
  color: #8A1A0E;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 0.97vw, 17px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(255, 200, 120, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}

.btn-order .icon-bag {
  width: 18px;
  height: 18px;
  stroke: #8A1A0E;
  transition: transform .25s var(--ease-out);
}

.btn-order::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-20deg);
  transition: transform .6s var(--ease-out);
  pointer-events: none;
}

.btn-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 200, 120, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-order:hover::after {
  transform: skewX(-20deg) translateX(380%);
}

.btn-order:hover .icon-bag {
  transform: scale(1.1);
}

.btn-order:active {
  transform: scale(0.97);
}

/* Botón toggle móvil y cajón lateral (ocultos en escritorio) */
.nav__toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

.nav__toggle .icon-close {
  display: none;
}

.nav__toggle.is-open .icon-menu {
  display: none;
}

.nav__toggle.is-open .icon-close {
  display: block;
}

.mobile-drawer {
  display: none;
}

/* ---- 4. BLOQUE DE TEXTO (COLUMNA IZQUIERDA, Z-INDEX 10) ---- */
.hero__content {
  position: absolute;
  left: 6.40%;
  top: 49.00%;
  transform: translateY(-50%) rotate(0.0deg);
  width: 42.00vw;
  max-width: 42vw;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  will-change: transform, opacity;
}

/* Tag píldora solo contorno dorado */
.tag {
  display: inline-flex;
  align-items: center;
  height: clamp(32px, 2.2vw, 38px);
  padding: 0 clamp(16px, 1.2vw, 20px);
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  background: transparent;
  margin-bottom: clamp(10px, 0.8vw, 15px);
}

.tag span {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: clamp(12px, 0.96vw, 17px);
  letter-spacing: 0.08em;
  color: #FAC53F;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Título Fredoka One */
.hero__title {
  font-family: "Fredoka One", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(52px, 5.25vw, 102px);
  line-height: 0.94;
  letter-spacing: -0.005em;
  margin: 0 0 clamp(14px, 0.9vw, 18px);
  display: flex;
  flex-direction: column;
}

.hero__title-line {
  white-space: nowrap;
  display: block;
}

.hero__title-line.line-1 .word,
.hero__title-line.line-3 .word {
  color: var(--white);
  -webkit-text-stroke: 0.018em currentColor;
  paint-order: stroke fill;
  text-shadow: 0 6px 18px rgba(70, 0, 0, 0.35);
}

/* Línea 2: degradado dorado con brillo sutil continuo */
.hero__title-line.line-2 .word.color-gold {
  background: linear-gradient(90deg, #FFE3A0 0%, #FFD27A 45%, #FFC85A 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 14px rgba(70, 0, 0, 0.35));
  animation: goldShine 6s ease-in-out infinite;
  display: inline-block;
}

@keyframes goldShine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@supports not (-webkit-background-clip: text) {
  .hero__title-line.line-2 .word.color-gold {
    color: #FFD684;
    -webkit-text-fill-color: #FFD684;
  }
}

/* Subtítulo */
.hero__subtitle {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.17vw, 21px);
  line-height: 1.28;
  color: var(--white);
  margin: 0 0 clamp(20px, 1.5vw, 26px);
  max-width: 32vw;
}

/* Botones del hero */
.hero__cta {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.4vw, 23px);
  margin-bottom: clamp(26px, 2.3vw, 40px);
}

.btn {
  height: clamp(44px, 3.05vw, 54px);
  padding: 0 clamp(24px, 1.95vw, 34px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Outfit", sans-serif;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s;
}

.btn .icon-arrow {
  width: 20px;
  height: 20px;
  transition: transform .25s var(--ease-out);
}

.btn:hover .icon-arrow {
  transform: translateX(5px);
}

.btn:active {
  transform: scale(0.97);
}

.btn-solid {
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(15px, 1.0vw, 18px);
  box-shadow: 0 8px 22px rgba(60, 0, 0, 0.35);
}

.btn-solid::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  transition: transform .6s var(--ease-out);
  pointer-events: none;
}

.btn-solid:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(60, 0, 0, 0.45);
}

.btn-solid:hover::after {
  transform: skewX(-20deg) translateX(380%);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--cream);
  color: var(--cream-text);
  font-weight: 500;
  font-size: clamp(15px, 1.0vw, 18px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* Beneficios con separadores verticales */
.hero__benefits {
  display: flex;
  align-items: center;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.benefit-icon {
  width: clamp(26px, 1.95vw, 34px);
  height: clamp(26px, 1.95vw, 34px);
  color: var(--white);
  flex-shrink: 0;
}

.benefit-text {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 0.9vw, 16px);
  line-height: 1.22;
  color: var(--white);
  white-space: nowrap;
}

.benefit-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 clamp(16px, 1.3vw, 23px);
  flex-shrink: 0;
}

/* ---- 5. PRODUCTOS Y BASE (MÉTODO CAJA DE CONTENIDO) ---- */
.prod {
  position: absolute;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  height: auto;
}

/* Barra inferior fija (inferior-hero.webp, estable sin respiración/animación, z-index configurable) */
.prod--inferior {
  z-index: 1;
  left: 0.00%;
  top: 90.66%;
  width: 101.00vw;
  animation: none !important;
  will-change: auto;
  filter: drop-shadow(0 -4px 18px rgba(180, 20, 10, 0.45));
}

/* Composición completa artesanal (base + shake + paletas en 1 sola imagen) */
.prod--completo {
  z-index: 5;
  left: 46.58%;
  top: 8.32%;
  width: 38.60vw;
  display: block;
  filter: drop-shadow(0 22px 32px rgba(40, 0, 0, 0.35));
  animation: shakeFloat 8s ease-in-out infinite;
}

.prod--paleta1 {
  z-index: 5;
  left: 39.10%;
  top: 47.73%;
  width: 14.30vw;
  transform: translate(-50%, -50%) rotate(-8.8deg);
  display: none;
}

.prod--paleta2 {
  z-index: 5;
  left: 82.20%;
  top: 58.20%;
  width: 14.70vw;
  transform: translate(-50%, -50%) rotate(17.6deg);
  display: none;
}

.prod--shake {
  z-index: 4;
  left: 35.70%;
  top: -2.27%;
  width: 20.95vw;
  display: none;
}

.prod--base {
  z-index: 2;
  left: 46.21%;
  top: 69.97%;
  width: 42.14vw;
  display: none;
}


/* Flotación sutil independiente de los productos */
@keyframes shakeFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

@keyframes paleta1Float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -7px; }
}

@keyframes paleta2Float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

/* ---- 6. PARTÍCULAS FLOTANTES (Z-INDEX 3 Y 6) ---- */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  left: var(--px);
  top: var(--py);
  width: var(--psize);
  transform: translate(-50%, -50%) translate3d(var(--bx, 0px), var(--by, 0px), 0) rotate(calc(var(--prot, 0deg) + var(--brot, 0deg)));
  pointer-events: auto;
  cursor: pointer;
  will-change: transform, opacity;
  transition: opacity .4s ease;
}

.particle.is-back  { z-index: 3; }
.particle.is-front { z-index: 6; }

.particle img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 8px 16px rgba(40, 0, 0, 0.3));
  animation: particleFloat var(--dur, 7s) ease-in-out infinite var(--delay, 0s);
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r0, 0deg)); }
  50%      { transform: translateY(var(--fy, -14px)) rotate(var(--r1, 5deg)); }
}

.particle.is-bursting {
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.5) !important;
  opacity: 0 !important;
  transition: transform .28s var(--ease-out), opacity .28s var(--ease-out) !important;
}

.particle.is-reappearing {
  animation: particleReappear .8s var(--ease-spring) forwards;
}

@keyframes particleReappear {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ---- 7. RÁFAGAS Y ESTELA DEL CURSOR (Z-INDEX 9) ---- */
.burst-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  overflow: hidden;
}

.burst-particle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  animation: burstFly .9s var(--ease-out) forwards;
}

.burst-particle img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

@keyframes burstFly {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(0.3) rotate(var(--trot, 180deg));
    opacity: 0;
  }
}

.cursor-sparkle {
  position: absolute;
  width: 16px;
  height: 16px;
  color: var(--gold-soft);
  pointer-events: none;
  z-index: 12;
  transform: translate(-50%, -50%) scale(0);
  animation: sparkleFade .6s ease-out forwards;
}

.cursor-sparkle svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@keyframes sparkleFade {
  0% {
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.4) rotate(90deg);
    opacity: 0;
  }
}

/* ---- 8. ANIMACIÓN DE ENTRADA ESCALONADA (IS-LOADING / IS-LOADED) ---- */
body.is-loading .nav {
  opacity: 0;
  translate: 0 -20px;
}
body.is-loaded .nav {
  opacity: 1;
  translate: 0 0;
  transition: opacity .8s var(--ease-out), translate .8s var(--ease-out);
}

body.is-loading .tag {
  opacity: 0;
  translate: 0 20px;
}
body.is-loaded .tag {
  opacity: 1;
  translate: 0 0;
  transition: opacity .7s var(--ease-out) .05s, translate .7s var(--ease-out) .05s;
}

body.is-loading .hero__title-line.line-1 {
  opacity: 0;
  translate: 0 24px;
}
body.is-loaded .hero__title-line.line-1 {
  opacity: 1;
  translate: 0 0;
  transition: opacity .9s var(--ease-out) .15s, translate .9s var(--ease-out) .15s;
}

body.is-loading .hero__title-line.line-2 {
  opacity: 0;
  translate: 0 24px;
}
body.is-loaded .hero__title-line.line-2 {
  opacity: 1;
  translate: 0 0;
  transition: opacity .9s var(--ease-out) .25s, translate .9s var(--ease-out) .25s;
}

body.is-loading .hero__title-line.line-3 {
  opacity: 0;
  translate: 0 24px;
}
body.is-loaded .hero__title-line.line-3 {
  opacity: 1;
  translate: 0 0;
  transition: opacity .9s var(--ease-out) .35s, translate .9s var(--ease-out) .35s;
}

body.is-loading .hero__subtitle {
  opacity: 0;
  translate: 0 20px;
}
body.is-loaded .hero__subtitle {
  opacity: 1;
  translate: 0 0;
  transition: opacity .7s var(--ease-out) .45s, translate .7s var(--ease-out) .45s;
}

body.is-loading .hero__cta {
  opacity: 0;
  translate: 0 20px;
}
body.is-loaded .hero__cta {
  opacity: 1;
  translate: 0 0;
  transition: opacity .7s var(--ease-out) .55s, translate .7s var(--ease-out) .55s;
}

body.is-loading .hero__benefits {
  opacity: 0;
  translate: 0 20px;
}
body.is-loaded .hero__benefits {
  opacity: 1;
  translate: 0 0;
  transition: opacity .7s var(--ease-out) .65s, translate .7s var(--ease-out) .65s;
}

body.is-loading .prod--inferior {
  opacity: 0;
  translate: 0 30px;
}
body.is-loaded .prod--inferior {
  opacity: 1;
  translate: 0 0;
  transition: opacity .8s var(--ease-out) .05s, translate .8s var(--ease-out) .05s;
}

body.is-loading .prod--base {
  opacity: 0;
  translate: 0 60px;
}
body.is-loaded .prod--base {
  opacity: 1;
  translate: 0 0;
  transition: opacity .9s var(--ease-out) .1s, translate .9s var(--ease-out) .1s;
}

body.is-loading .prod--shake {
  opacity: 0;
  translate: 0 40px;
  scale: 0.94;
}
body.is-loaded .prod--shake {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  transition: opacity 1.0s var(--ease-spring) .35s, translate 1.0s var(--ease-spring) .35s, scale 1.0s var(--ease-spring) .35s;
}

body.is-loading .prod--paleta1 {
  opacity: 0;
  translate: 0 50px;
}
body.is-loaded .prod--paleta1 {
  opacity: 1;
  translate: 0 0;
  transition: opacity .9s var(--ease-out) .5s, translate .9s var(--ease-out) .5s;
}

body.is-loading .prod--paleta2 {
  opacity: 0;
  translate: 0 50px;
}
body.is-loaded .prod--paleta2 {
  opacity: 1;
  translate: 0 0;
  transition: opacity .9s var(--ease-out) .6s, translate .9s var(--ease-out) .6s;
}

body.is-loading .prod--completo {
  opacity: 0;
  translate: 0 50px;
}
body.is-loaded .prod--completo {
  opacity: 1;
  translate: 0 0;
  transition: opacity .9s var(--ease-out) .4s, translate .9s var(--ease-out) .4s;
}

body.is-loading .cloud-item {
  opacity: 0;
  scale: 0.96;
}
body.is-loaded .cloud-item {
  opacity: var(--copacity, 0.9);
  scale: 1;
  transition: opacity 1.1s var(--ease-out) 0.2s, scale 1.1s var(--ease-out) 0.2s;
}

body.is-loading .particle {
  opacity: 0;
  scale: 0.6;
}
body.is-loaded .particle {
  opacity: 1;
  scale: 1;
  transition: opacity .8s var(--ease-out) var(--intro-delay, 0.9s), scale .8s var(--ease-out) var(--intro-delay, 0.9s);
}

/* ---- 9. RESPALDO RESPONSIVO (SECCIÓN 9) ---- */
@media (max-width: 1279px) {
  .hero__benefits {
    display: none;
  }
}

@media (max-width: 1099px) {
  .nav__menu {
    display: none;
  }
  .nav__toggle {
    display: block;
  }
}

@media (max-width: 767px) {
  .hero {
    height: auto;
    min-height: 100svh;
    padding-bottom: 60px;
  }

  .nav__brand {
    position: static;
    width: clamp(100px, 24vw, 130px);
  }

  .nav {
    padding: 16px 20px;
    height: auto;
  }

  .nav__actions .btn-order {
    display: none;
  }

  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    background: rgba(110, 10, 6, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 220, 170, 0.25);
    border-radius: 20px;
    padding: 24px;
    gap: 18px;
    z-index: 100;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
  }

  .mobile-drawer.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer__links {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .mobile-drawer__link {
    color: var(--cream-text);
    font-size: 18px;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 0;
  }

  .mobile-drawer__link.is-active {
    color: var(--gold);
  }

  .mobile-drawer__cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 10px;
  }

  .hero__content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    padding: 100px 24px 20px;
    z-index: 7;
  }

  .hero__title {
    font-size: clamp(38px, 11vw, 56px);
  }

  .hero__subtitle {
    max-width: 100%;
    font-size: 16px;
  }

  /* En móvil los productos se escalan en flujo */
  .prod--base {
    position: relative;
    left: auto;
    top: auto;
    width: 85%;
    margin: 40px auto 0;
    display: block;
  }

  .prod--shake {
    position: absolute;
    left: 45%;
    bottom: 30px;
    width: 44vw;
  }

  .prod--paleta1 {
    position: absolute;
    left: 20%;
    bottom: 30px;
    width: 30vw;
  }

  .prod--paleta2 {
    position: absolute;
    left: 75%;
    bottom: 30px;
    width: 32vw;
  }

  .hero__particles {
    display: none;
  }
}

/* ---- 10. PREFERS-REDUCED-MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__bg,
  .cloud-img,
  .particle img,
  .prod {
    animation: none !important;
  }

  .burst-layer,
  .cursor-sparkle {
    display: none !important;
  }
}
