/* ==========================================================================
   HERO RICO PAN — SISTEMA DE DISEÑO Y ESTILOS (HTML + CSS + JS)
   Paleta oficial, escalado (--u), tipografías, animaciones y responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   3. PALETA DE COLORES Y SISTEMA DE ESCALA
   -------------------------------------------------------------------------- */
:root {
  /* Lienzo de referencia: 1672 x 941 px */
  --u: min(calc(100vw / 1672), calc(100svh / 941));

  /* Paleta oficial */
  --verde:        #17705C;  /* Fondo principal */
  --verde-claro:  #2E8B6F;  /* Manchas de luz del fondo */
  --verde-osc:    #0F4A3E;  /* Textos sobre amarillo/crema */
  --amarillo:     #FCC30F;  /* Botones, sello, franja inferior, doodles */
  --mostaza:      #DB9A06;  /* Bordes/sombras del amarillo */
  --mantequilla:  #FDE58A;  /* Relleno del óvalo detrás de los panes */
  --crema:        #F7EBD0;  /* Textos sobre verde, píldora */
  --rojo:         #D93A1E;  /* Corazoncitos del sello */
}

/* --------------------------------------------------------------------------
   RESET Y ESTILOS BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--verde);
  color: var(--crema);
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--verde);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a, button {
  font-family: inherit;
  color: inherit;
  outline: none;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 3px;
}

/* Utilidad para lectores de pantalla */
.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;
}

/* Ícono WhatsApp con técnica de máscara CSS */
.icon-whatsapp.icon-mask {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url('assets/icono-whatsapp.webp') center/contain no-repeat;
  mask: url('assets/icono-whatsapp.webp') center/contain no-repeat;
}

/* ==========================================================================
   6.1 NAVEGACIÓN (HEADER)
   ========================================================================== */
.hero-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
  transition: all 0.3s ease;
}

.hero-header, .hero-header * {
  transition: all 0.3s ease;
}

.hero-header.scrolled {
  background-color: rgba(23, 112, 92, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(8, 45, 36, 0.3);
}

.hero-header.compact {
  height: var(--hdr, 64px);
  background: rgba(23, 112, 92, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(8, 45, 36, 0.3);
}

.hero-header.compact .nav-container {
  height: 64px;
  max-width: none;
  padding: 0 clamp(16px, 3vw, 48px);
}

.hero-header.compact .hero-logo-link {
  left: clamp(16px, 3vw, 48px);
  top: 2px;
  width: 84px;
}

.hero-header.compact .hero-nav {
  top: 50%;
  transform: translate(-50%, -50%);
}

.hero-header.compact .nav-list {
  gap: 34px;
}

.hero-header.compact .nav-link {
  font-size: 14px;
}

.hero-header.compact .nav-active-bar,
.hero-header.compact .nav-hover-bar {
  bottom: -8px;
  height: 3px;
}

.hero-header.compact .btn-whatsapp-header {
  left: auto;
  right: clamp(16px, 3vw, 48px);
  top: 11px;
  width: 210px;
  height: 42px;
}

.hero-header.compact .btn-whatsapp-text {
  font-size: 13px;
}

.hero-header.compact .btn-whatsapp-header .icon-whatsapp {
  width: 22px;
  height: 22px;
}

.nav-container {
  width: 100%;
  max-width: calc(1672 * var(--u));
  margin: 0 auto;
  position: relative;
  height: calc(115 * var(--u));
  pointer-events: auto;
}

/* Logo arriba izquierda */
.hero-logo-link {
  position: absolute;
  left: calc(88 * var(--u));
  top: calc(22 * var(--u));
  width: calc(227 * var(--u));
  height: auto;
  z-index: 110;
  display: block;
  transition: transform 0.25s ease;
}

.hero-logo-link:hover {
  transform: scale(1.03) rotate(-1deg);
}

.hero-logo-img {
  width: 100%;
  height: auto;
}

/* Menú de navegación en escritorio */
.hero-nav {
  position: absolute;
  left: calc(826 * var(--u));
  top: calc(72 * var(--u));
  transform: translate(-50%, -50%);
  z-index: 105;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: calc(52 * var(--u));
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: calc(17 * var(--u));
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--crema);
  transition: color 0.2s ease, opacity 0.2s ease;
  padding: calc(6 * var(--u)) calc(4 * var(--u));
  display: inline-block;
}

.nav-link:hover {
  opacity: 0.9;
}

/* Barra amarilla para ítem activo (INICIO) */
.nav-active-bar {
  position: absolute;
  bottom: calc(-10 * var(--u));
  left: 50%;
  transform: translateX(-50%);
  width: calc(68 * var(--u));
  height: calc(4 * var(--u));
  background-color: var(--amarillo);
  border-radius: 999px;
}

/* Barra animada en hover para los otros enlaces */
.nav-hover-bar {
  position: absolute;
  bottom: calc(-10 * var(--u));
  left: 0;
  width: 100%;
  height: calc(4 * var(--u));
  background-color: var(--amarillo);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover + .nav-hover-bar,
.nav-item:hover .nav-hover-bar {
  transform: scaleX(1);
}

/* Botón "PEDIR POR WHATSAPP" */
.btn-whatsapp-header {
  position: absolute;
  left: calc(1338 * var(--u));
  top: calc(43 * var(--u));
  width: calc(257 * var(--u));
  height: calc(55 * var(--u));
  border-radius: 999px;
  background-color: var(--amarillo);
  box-shadow: 0 6px 14px rgba(8, 45, 36, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--u));
  text-decoration: none;
  color: var(--verde-osc);
  transition: transform 0.2s cubic-bezier(0.3, 1.2, 0.4, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 105;
}

.btn-whatsapp-header:hover {
  transform: translateY(-2px);
  background-color: #FFD63F;
  box-shadow: 0 8px 18px rgba(8, 45, 36, 0.35);
}

.btn-whatsapp-header .icon-whatsapp {
  width: calc(30 * var(--u));
  height: calc(30 * var(--u));
  background-color: var(--verde-osc);
  flex-shrink: 0;
}

.btn-whatsapp-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: calc(16 * var(--u));
  text-transform: uppercase;
  color: var(--verde-osc);
  letter-spacing: 0.01em;
}

/* Botón hamburguesa (oculto en escritorio) */
.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   5. FONDO (GRADIENTES, TEXTURA DE PAPEL Y TEXTOS GIGANTES)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background-color: var(--verde);
  scroll-snap-align: start;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Gradientes: luz detrás de panes y viñeta */
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 68% 48%, rgba(46, 139, 111, 0.42), transparent 60%),
    radial-gradient(ellipse at center, transparent 55%, rgba(8, 45, 36, 0.35));
}

/* Textura SVG de papel arrugado */
.hero-bg-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.tex-grain-layer {
  mix-blend-mode: overlay;
  opacity: 0.12;
}

.tex-wrinkles-layer {
  mix-blend-mode: overlay;
  opacity: 0.10;
}

/* 5.1 Texto gigante de fondo (centrado perfectamente) */
.hero-bg-words {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  color: rgba(247, 235, 208, 0.06);
  line-height: 0.95;
  font-size: calc(270 * var(--u));
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding-top: calc(10 * var(--u));
  padding-bottom: calc(90 * var(--u));
}

.bg-word-row {
  width: 100%;
  text-align: center;
  position: relative;
  will-change: transform;
  letter-spacing: 0.04em;
}

.bg-word-row.row-1 {
  top: calc(-10 * var(--u));
  animation: driftRow1 60s ease-in-out infinite alternate;
}

.bg-word-row.row-2 {
  top: 0;
  animation: driftRow2 60s ease-in-out infinite alternate;
}

.bg-word-row.row-3 {
  top: calc(10 * var(--u));
  animation: driftRow3 60s ease-in-out infinite alternate;
}

@keyframes driftRow1 {
  from { transform: translateX(0); }
  to { transform: translateX(-40px); }
}

@keyframes driftRow2 {
  from { transform: translateX(0); }
  to { transform: translateX(40px); }
}

@keyframes driftRow3 {
  from { transform: translateX(0); }
  to { transform: translateX(-40px); }
}

/* ==========================================================================
   2. SISTEMA DE ESCALA Y LIENZO (.HERO-STAGE)
   ========================================================================== */
.hero-stage {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(1672 * var(--u));
  height: calc(941 * var(--u));
  z-index: 5;
  pointer-events: auto;
}


/* ==========================================================================
   6.2 COLUMNA IZQUIERDA
   ========================================================================== */
.hero-col-left {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.hero-col-left > * {
  pointer-events: auto;
}

/* 1. Píldora "PANIFICADORA · PARAÍSO, TABASCO" */
.hero-pildora {
  position: absolute;
  left: calc(95 * var(--u));
  top: calc(205 * var(--u));
  width: calc(373 * var(--u));
  height: calc(35 * var(--u));
  border-radius: 999px;
  background-color: #FBF3DF;
  color: var(--verde-osc);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: calc(16 * var(--u));
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  box-shadow: 0 4px 10px rgba(8, 45, 36, 0.15);
}

/* 2. Titular "PAN RECIÉN HORNEADO" (imagen) */
.hero-titulo-container {
  position: absolute;
  left: calc(95 * var(--u));
  top: calc(255 * var(--u));
  width: calc(525 * var(--u));
  height: auto;
  cursor: default;
}

.hero-titulo-img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes revealMaskUp {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* 3. Estrellita del titular (ajustada permanentemente) */
#hero-titulo-estrella-wrap,
.hero-titulo-estrella-wrap {
  position: absolute;
  left: calc(400 * var(--u));
  top: calc(102 * var(--u));
  width: calc(122 * var(--u));
  height: calc(122 * var(--u));
  max-width: calc(60 * var(--u));
  font-size: calc(8.8 * var(--u));
  transform: rotate(-10deg);
  z-index: 15;
  transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.4, 1);
  pointer-events: none;
}

.hero-titulo-estrella {
  width: 100%;
  height: auto;
  animation: twinkleStar 2.8s ease-in-out infinite;
  transform-origin: center;
}

/* Hover en titular hace girar la estrella 20° */
.hero-titulo-container:hover .hero-titulo-estrella-wrap {
  transform: rotate(8deg) scale(1.15);
}

@keyframes twinkleStar {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.12) rotate(6deg);
  }
}

/* 4. Subtítulo (ajustado permanentemente con el texto completo) */
.hero-subtitulo {
  position: absolute;
  left: calc(98 * var(--u));
  top: calc(600 * var(--u));
  width: calc(595 * var(--u));
  max-width: calc(630 * var(--u));
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: calc(20.5 * var(--u));
  line-height: calc(28 * var(--u));
  color: var(--crema);
  transform: rotate(0deg);
}

/* 5 y 6. Botones de acción */
.hero-botones {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.hero-botones > * {
  pointer-events: auto;
}

/* Botón primario: VER NUESTROS PANES (bajado para dar más espacio) */
.btn-primario {
  position: absolute;
  left: calc(88 * var(--u));
  top: calc(696 * var(--u));
  width: calc(324 * var(--u));
  height: calc(53 * var(--u));
  border-radius: 999px;
  background-color: var(--amarillo);
  box-shadow: 0 6px 14px rgba(8, 45, 36, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(18 * var(--u));
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: calc(18 * var(--u));
  text-transform: uppercase;
  color: var(--verde-osc);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primario:hover {
  background-color: #FFD63F;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(8, 45, 36, 0.35);
}

.btn-arrow {
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
  stroke: var(--verde-osc);
  stroke-width: 3px;
  transition: transform 0.25s cubic-bezier(0.2, 1, 0.3, 1);
}

.btn-primario:hover .btn-arrow {
  transform: translateX(6px);
}

/* Botón secundario: CÓMO LLEGAR (bajado a tono con el primario) */
.btn-secundario {
  position: absolute;
  left: calc(427 * var(--u));
  top: calc(697 * var(--u));
  width: calc(211 * var(--u));
  height: calc(51 * var(--u));
  border-radius: 999px;
  background-color: transparent;
  border: 2px solid var(--crema);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(12 * var(--u));
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: calc(17.5 * var(--u));
  text-transform: uppercase;
  color: var(--crema);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn-pin {
  width: calc(18 * var(--u));
  height: calc(24 * var(--u));
  fill: var(--crema);
  transition: fill 0.2s ease;
}

.btn-secundario:hover {
  background-color: var(--crema);
  color: var(--verde-osc);
  transform: translateY(-2px);
}

.btn-secundario:hover .btn-pin {
  fill: var(--verde-osc);
}

/* 7. Fila de datos (bajado ligeramente para armonizar) */
.hero-datos {
  position: absolute;
  left: calc(95 * var(--u));
  top: calc(772 * var(--u));
  height: calc(30 * var(--u));
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: calc(14 * var(--u));
  color: var(--crema);
}

.dato-item {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  white-space: nowrap;
}

.dato-link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.dato-link:hover {
  opacity: 0.85;
}

.dato-icon-repartidor {
  width: calc(38 * var(--u));
  height: auto;
}

.dato-icon-estrella {
  width: calc(24 * var(--u));
  height: auto;
}

.dato-icon-whatsapp {
  width: calc(24 * var(--u));
  height: calc(24 * var(--u));
  background-color: var(--crema);
}

.dato-separator {
  display: inline-block;
  width: calc(1.5 * var(--u));
  height: calc(26 * var(--u));
  background-color: rgba(247, 235, 208, 0.45);
  margin: 0 calc(16 * var(--u));
  border-radius: 1px;
}

/* ==========================================================================
   6.3 COMPOSICIÓN DE PANES (COLUMNA DERECHA)
   ========================================================================== */
.hero-col-right {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.hero-col-right > * {
  pointer-events: auto;
}

/* (a) Óvalo amarillo detrás de los panes (posicionado más a la derecha) */
.hero-oval-group {
  position: absolute;
  left: calc(810 * var(--u));
  top: calc(155 * var(--u));
  width: calc(790 * var(--u));
  height: calc(590 * var(--u));
  transform: rotate(-10deg);
  z-index: 3;
  pointer-events: none;
  will-change: transform;
}

.hero-oval-outer {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--amarillo);
  box-shadow: 0 calc(20 * var(--u)) calc(40 * var(--u)) rgba(8, 45, 36, 0.25);
}

.hero-oval-inner {
  position: absolute;
  left: calc(26.5 * var(--u));
  top: calc(35 * var(--u));
  width: calc(765 * var(--u));
  height: calc(560 * var(--u));
  border-radius: 50%;
  background: linear-gradient(180deg, var(--mantequilla) 0%, #F6D866 100%);
  box-shadow: inset calc(-20 * var(--u)) calc(-26 * var(--u)) calc(50 * var(--u)) rgba(190, 140, 10, 0.25);
}

@keyframes zoomOval {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.85);
  }
  to {
    opacity: 1;
    transform: rotate(-10deg) scale(1);
  }
}

/* (b) Imagen de los 3 panes */
.hero-panes-wrapper {
  position: absolute;
  left: calc(770 * var(--u));
  top: calc(165 * var(--u));
  width: calc(870 * var(--u));
  height: auto;
  z-index: 4;
  cursor: pointer;
  will-change: transform;
}

.hero-panes-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 calc(26 * var(--u)) calc(30 * var(--u)) rgba(8, 40, 32, 0.45));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

/* Hover en panes: escala 1.02 y sombra más profunda */
.hero-panes-wrapper:hover .hero-panes-img {
  transform: scale(1.02);
  filter: drop-shadow(0 calc(34 * var(--u)) calc(38 * var(--u)) rgba(8, 40, 32, 0.58));
}

@keyframes dropBreads {
  0% {
    opacity: 0;
    transform: translateY(-45px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* (c) Estrella decorativa superior (ajustada permanentemente) */
.hero-estrella-superior {
  position: absolute;
  left: calc(1404 * var(--u));
  top: calc(126 * var(--u));
  width: calc(58 * var(--u));
  height: calc(58 * var(--u));
  font-size: calc(11.8 * var(--u));
  transform: rotate(24deg);
  z-index: 6;
  pointer-events: none;
}

.estrella-svg {
  width: 100%;
  height: 100%;
  animation: twinkleStar 3s ease-in-out infinite;
  transform-origin: center;
}

/* (d) Sello "VENTA DE VOLOVANES" (ajustado permanentemente) */
#hero-sello,
.hero-sello {
  position: absolute;
  left: calc(690 * var(--u));
  top: calc(535 * var(--u));
  width: calc(221 * var(--u));
  height: calc(221 * var(--u));
  font-size: calc(11.8 * var(--u));
  transform: rotate(0deg);
  z-index: 8;
  cursor: pointer;
  filter: drop-shadow(0 calc(8 * var(--u)) calc(12 * var(--u)) rgba(8, 45, 36, 0.35));
  transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1), filter 0.3s ease;
  will-change: transform;
}

.hero-sello:hover {
  transform: rotate(0deg) scale(1.08) !important;
  animation-play-state: paused;
  filter: drop-shadow(0 calc(12 * var(--u)) calc(18 * var(--u)) rgba(8, 45, 36, 0.45));
}

@keyframes floatSello {
  0% {
    transform: rotate(0deg) translateY(-6px);
  }
  100% {
    transform: rotate(0deg) translateY(6px);
  }
}

.sello-inner-rotate {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotate(-12deg);
}

.sello-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sello-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  user-select: none;
  padding-top: calc(5 * var(--u));
}

.sello-linea-1 {
  display: flex;
  align-items: center;
  gap: calc(5 * var(--u));
}

.sello-heart {
  width: calc(9 * var(--u));
  height: calc(9 * var(--u));
}

.sello-txt-venta {
  font-size: calc(20 * var(--u));
  color: var(--verde);
  letter-spacing: 0.04em;
  line-height: 1;
}

.sello-txt-volovanes {
  font-size: calc(36 * var(--u));
  color: var(--verde-osc);
  letter-spacing: 0.01em;
  line-height: 0.95;
  -webkit-text-stroke: 0.5px var(--verde-osc);
  margin-top: calc(7 * var(--u));
  margin-bottom: calc(5 * var(--u));
}

.sello-cinta-fecha {
  background-color: var(--verde);
  border-radius: calc(8 * var(--u));
  width: calc(150 * var(--u));
  height: calc(34 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
  margin: calc(5 * var(--u)) 0 calc(6 * var(--u)) 0;
  box-shadow: 0 2px 6px rgba(8, 45, 36, 0.25);
}

.sello-cinta-fecha span {
  font-size: calc(26 * var(--u));
  color: var(--crema);
  letter-spacing: 0.03em;
  line-height: 1;
}

.sello-txt-hora {
  font-size: calc(30 * var(--u));
  color: var(--verde-osc);
  line-height: 1;
  margin-top: calc(2 * var(--u));
}

.sello-mini-star {
  width: calc(14 * var(--u));
  height: calc(14 * var(--u));
  color: var(--verde-osc);
  margin-left: calc(28 * var(--u));
  margin-top: calc(-1 * var(--u));
}

/* 6.4 Rayitas amarillas (hero-imagen-detalle) */
.hero-rayitas {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  transform-origin: center;
}

.rayitas-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Copia A: arriba-izquierda del volován (ajustada permanentemente) */
.hero-rayitas.rayita-a {
  left: calc(795 * var(--u));
  top: calc(243 * var(--u));
  width: calc(124 * var(--u));
  max-width: calc(100 * var(--u));
  font-size: calc(11.8 * var(--u));
  transform: translate(-50%, -50%) rotate(10deg);
  animation-delay: 0s;
}

/* Copia B: arriba entre volován y estrella (ajustada permanentemente) */
.hero-rayitas.rayita-b {
  left: calc(1250 * var(--u));
  top: calc(227 * var(--u));
  width: calc(114 * var(--u));
  max-width: calc(130 * var(--u));
  font-size: calc(11.8 * var(--u));
  transform: translate(-50%, -50%) rotate(122deg);
  animation-delay: 0.4s;
}

/* Copia C: abajo-derecha bajo las empanadas (ajustada permanentemente) */
.hero-rayitas.rayita-c {
  left: calc(1491 * var(--u));
  top: calc(726 * var(--u));
  width: calc(132 * var(--u));
  max-width: calc(90 * var(--u));
  font-size: calc(11.8 * var(--u));
  transform: translate(-50%, -50%) rotate(-155deg);
  animation-delay: 0.8s;
}

@keyframes destelloRayitas {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

/* Mantener rotaciones fijas en la animación de las rayitas */
.hero-rayitas.rayita-a { animation-name: destelloRayitaA; }
.hero-rayitas.rayita-b { animation-name: destelloRayitaB; }
.hero-rayitas.rayita-c { animation-name: destelloRayitaC; }

@keyframes destelloRayitaA {
  0% { opacity: 0.6; transform: translate(-50%, -50%) rotate(10deg) scale(0.92); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(10deg) scale(1.06); }
}

@keyframes destelloRayitaB {
  0% { opacity: 0.6; transform: translate(-50%, -50%) rotate(122deg) scale(0.92); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(122deg) scale(1.06); }
}

@keyframes destelloRayitaC {
  0% { opacity: 0.6; transform: translate(-50%, -50%) rotate(-155deg) scale(0.92); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(-155deg) scale(1.06); }
}

/* ==========================================================================
   6.6 INDICADOR "DESCUBRE"
   ========================================================================== */
.hero-descubre {
  position: absolute;
  left: calc((836 - 192 / 2) * var(--u));
  top: calc(815 * var(--u));
  width: calc(192 * var(--u));
  height: calc(48 * var(--u));
  border: 2px solid var(--amarillo);
  border-bottom: none;
  border-radius: calc(40 * var(--u)) calc(40 * var(--u)) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(2 * var(--u));
  text-decoration: none;
  color: var(--crema);
  z-index: 10;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  animation: fadeIn 0.8s ease-out 1.2s both;
}

.hero-descubre:hover {
  background-color: rgba(252, 195, 15, 0.08);
  border-color: #FFD63F;
}

.descubre-txt {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: calc(12 * var(--u));
  letter-spacing: 0.3em;
  color: var(--crema);
  margin-left: 0.3em; /* Para compensar visualmente el letter-spacing */
}

.descubre-arrow {
  width: calc(14 * var(--u));
  height: calc(14 * var(--u));
  stroke: var(--crema);
  animation: bounceDescubre 1.4s ease-in-out infinite;
}

@keyframes bounceDescubre {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* 6.7 FRANJA INFERIOR (MARQUESINA - más delgada manteniendo tamaño de texto) */
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: calc(62 * var(--u));
  min-height: 48px;
  background-color: var(--amarillo);
  z-index: 20;
  overflow: hidden;
  display: flex;
  align-items: center;
  user-select: none;
  box-shadow: 0 -4px 15px rgba(8, 45, 36, 0.15);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeLoop 35s linear infinite;
  will-change: transform;
}

.hero-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: max(15px, calc(17 * var(--u)));
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--verde-osc);
}

.marquee-star {
  font-size: calc(18 * var(--u));
  margin: 0 calc(50 * var(--u));
  line-height: 1;
  color: var(--verde-osc);
}

@keyframes marqueeLoop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   ANIMACIONES GENERALES DE ENTRADA
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Botón flotante móvil oculto en escritorio */
.mobile-whatsapp-float {
  display: none;
}



/* ==========================================================================
   9. RESPONSIVE (< 1024 PX)
   ========================================================================== */
@media (max-width: 1023px) {
  /* Desactivar lienzo absoluto y permitir flujo natural */
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding-top: 90px;
    padding-bottom: 70px;
    overflow-x: hidden;
  }

  .hero-stage {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    padding: 20px 24px 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* 1. Nav compacta */
  .hero-header {
    height: 76px;
    background-color: rgba(23, 112, 92, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(8, 45, 36, 0.2);
    pointer-events: auto;
  }

  .nav-container {
    height: 76px;
    max-width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .hero-logo-link {
    position: static;
    width: 120px;
    transform: none !important;
  }

  /* Ocultar botón header de WhatsApp en móvil */
  .btn-whatsapp-header {
    display: none;
  }

  /* Botón hamburguesa */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 120;
    padding: 0;
  }

  .mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--amarillo);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Menú desplegable móvil */
  .hero-nav {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 76px);
    background-color: var(--verde);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 110;
  }

  .hero-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .nav-link {
    font-size: 20px;
  }

  .nav-active-bar, .nav-hover-bar {
    bottom: -6px;
  }

  /* Botón flotante circular fijo de WhatsApp */
  .mobile-whatsapp-float {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--amarillo);
    color: var(--verde-osc);
    box-shadow: 0 6px 18px rgba(8, 45, 36, 0.4);
    z-index: 99;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .mobile-whatsapp-float:active {
    transform: scale(0.92);
  }

  .mobile-whatsapp-float .icon-whatsapp {
    width: 32px;
    height: 32px;
    background-color: var(--verde-osc);
  }

  /* 2. Columna izquierda apilada */
  .hero-col-left {
    position: static;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-pildora {
    position: static;
    width: auto;
    padding: 6px 18px;
    height: auto;
    font-size: 13px;
    margin-bottom: 18px;
  }

  .hero-titulo-container {
    position: relative;
    left: auto;
    top: auto;
    width: 88vw;
    max-width: 440px;
    margin-bottom: 20px;
  }

  .hero-titulo-estrella-wrap {
    left: 80%;
    top: 25%;
    width: 44px;
    height: 44px;
  }

  .hero-subtitulo {
    position: static;
    max-width: 90%;
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 28px;
  }

  .hero-botones {
    position: static;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
  }

  .btn-primario, .btn-secundario {
    position: static;
    width: 100%;
    height: 52px;
    font-size: 16px;
    transform: none !important;
  }

  /* 4. Fila de datos en móvil */
  .hero-datos {
    position: static;
    height: auto;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 36px;
  }

  .dato-separator {
    display: none;
  }

  /* 3. Bloque de panes en móvil */
  .hero-col-right {
    position: relative;
    width: 100%;
    min-height: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
  }

  .hero-oval-group {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-10deg) !important;
    width: 90vw;
    max-width: 420px;
    height: 68vw;
    max-height: 320px;
  }

  .hero-panes-wrapper {
    position: relative;
    left: auto;
    top: auto;
    width: 105vw;
    max-width: 500px;
    margin-left: 5vw;
    transform: none !important;
  }

  .hero-estrella-superior {
    left: 78%;
    top: 8%;
    width: 40px;
    height: 40px;
  }

  .hero-sello {
    left: 10%;
    top: 45%;
    width: 130px;
    height: 130px;
  }

  .sello-txt-venta { font-size: 12px; }
  .sello-heart { width: 6px; height: 6px; }
  .sello-txt-volovanes { font-size: 22px; }
  .sello-cinta-fecha { width: 95px; height: 22px; border-radius: 5px; }
  .sello-cinta-fecha span { font-size: 16px; }
  .sello-txt-hora { font-size: 19px; }
  .sello-mini-star { width: 10px; height: 10px; margin-left: 16px; }

  /* Rayitas reducidas al 60% */
  .hero-rayitas.rayita-a {
    left: 15%;
    top: 25%;
    width: 48px;
  }
  .hero-rayitas.rayita-b {
    left: 70%;
    top: 15%;
    width: 36px;
  }
  .hero-rayitas.rayita-c {
    left: 85%;
    top: 80%;
    width: 52px;
  }

  /* 5. "DESCUBRE" oculto en móvil */
  .hero-descubre {
    display: none;
  }

  /* 6. Franja inferior */
  .hero-marquee {
    height: 52px;
  }

  .marquee-content {
    font-size: 14px;
  }

  .marquee-star {
    font-size: 14px;
    margin: 0 24px;
  }

  /* 7. Texto gigante de fondo a 45vw en móvil */
  .hero-bg-words {
    font-size: 45vw;
  }

  .bg-word-row.row-1 { top: 5%; left: 0; }
  .bg-word-row.row-2 { top: 40%; left: 0; }
  .bg-word-row.row-3 { display: none; }
}

/* ==========================================================================
   SECCIÓN 2: NUESTROS PANES FAVORITOS (LIENZO COMPACTO: 1536 × 900)
   ========================================================================== */

/* --------------------------------------------------------------------------
   SISTEMA DE DISEÑO Y VARIABLES SCOPED
   -------------------------------------------------------------------------- */
.seccion-panes {
  --hdr: 64px;
  --up: max(0.6px, min(calc(100vw / 1536), calc((100svh - var(--hdr)) / 920)));
  --fondo:        #FFE99A;
  --fondo-luz:    #FFF3BE;
  --amarillo:     #FCC30F;
  --mostaza:      #F5B800;
  --verde:        #1A7360;
  --verde-osc:    #0F4A3E;
  --texto:        #2B5A4C;
  --crema:        #F7EBD0;
  --tarjeta:      #FFF8E1;
  --tarjeta-2:    #FFF2BF;
  --rojo:         #D93A1E;

  position: relative;
  width: 100%;
  min-height: 100svh;
  padding-top: var(--hdr);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
  background-color: var(--fondo);
  background-image: radial-gradient(ellipse at 45% 40%, var(--fondo-luz), transparent 65%);
  color: var(--verde-osc);
}

.seccion-panes::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperNoise)' opacity='0.06'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.panes-canvas {
  position: relative;
  width: calc(1536 * var(--up));
  height: calc(920 * var(--up));
  margin: 0 auto;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. FONDO Y DECORACIÓN (LETRAS "PAN" GIGANTES Y ONDAS)
   -------------------------------------------------------------------------- */
.panes-fondo-decoracion {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.panes-bg-word {
  position: absolute;
  font-family: 'Bagel Fat One', cursive, sans-serif;
  color: rgba(252, 195, 15, 0.55);
  line-height: 0.9;
  user-select: none;
  white-space: nowrap;
}

.panes-bg-word.word-izq {
  font-size: calc(260 * var(--up));
  left: calc(25 * var(--up));
  top: calc(-35 * var(--up));
  transform: none;
  z-index: 1;
}

.panes-bg-word.word-der {
  font-size: calc(260 * var(--up));
  right: calc(25 * var(--up));
  top: calc(-35 * var(--up));
  transform: none;
  z-index: 1;
}

.panes-ondas-top {
  display: none;
}

/* --------------------------------------------------------------------------
   6. ENCABEZADO (EJE X = 696)
   -------------------------------------------------------------------------- */
.panes-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
}

.panes-pildora {
  position: absolute;
  left: calc(568 * var(--up));
  top: calc(14 * var(--up));
  width: calc(257 * var(--up));
  height: calc(33 * var(--up));
  border-radius: 999px;
  background-color: var(--verde);
  color: var(--crema);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: max(10px, calc(16 * var(--up)));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.panes-titular-wrap {
  position: absolute;
  left: calc(318 * var(--up));
  top: calc(112 * var(--up));
  transform: translateY(-50%);
  width: calc(757 * var(--up));
  z-index: 3;
}

.panes-titular-img {
  width: 100%;
  height: auto;
  display: block;
  animation: titularFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes titularFadeUp {
  0% {
    opacity: 0;
    transform: translateY(calc(24 * var(--up)));
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.panes-subtitulo {
  position: absolute;
  left: calc(318 * var(--up));
  top: calc(166 * var(--up));
  width: calc(757 * var(--up));
  height: calc(22 * var(--up));
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: max(10px, calc(18 * var(--up)));
  color: var(--verde-osc);
  line-height: 1.2;
}

.panes-tabs {
  position: absolute;
  left: calc(341 * var(--up));
  top: calc(192 * var(--up));
  width: calc(710 * var(--up));
  height: calc(42 * var(--up));
  display: flex;
  justify-content: center;
  gap: calc(12 * var(--up));
  z-index: 6;
}

.panes-tab {
  height: calc(42 * var(--up));
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: max(10px, calc(15.5 * var(--up)));
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  user-select: none;
}

.panes-tab[data-cat="todos"]     { width: calc(125 * var(--up)); }
.panes-tab[data-cat="volovanes"] { width: calc(140 * var(--up)); }
.panes-tab[data-cat="cuernitos"] { width: calc(141 * var(--up)); }
.panes-tab[data-cat="empanadas"] { width: calc(142 * var(--up)); }
.panes-tab[data-cat="dulces"]    { width: calc(114 * var(--up)); }

.panes-tab:not(.active) {
  background-color: rgba(255, 250, 225, 0.65);
  border: calc(2.5 * var(--up)) solid var(--mostaza);
  color: var(--verde-osc);
}

.panes-tab:not(.active):hover {
  background-color: var(--amarillo);
  border-color: var(--mostaza);
  transform: translateY(calc(-2 * var(--up)));
}

.panes-tab.active {
  background-color: var(--verde);
  border: none;
  color: var(--crema);
  box-shadow: 0 calc(5 * var(--up)) calc(10 * var(--up)) rgba(15, 74, 62, 0.3);
}

/* Nota manuscrita "¡Elige el tuyo!" y flecha curva */
.panes-nota-elige {
  position: absolute;
  left: calc(1090 * var(--up));
  top: calc(40 * var(--up));
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
}

.nota-elige-texto {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: max(14px, calc(30 * var(--up)));
  color: var(--verde);
  transform: rotate(-14deg);
  display: block;
}

.panes-flecha-curva {
  position: absolute;
  left: calc(6 * var(--up));
  top: calc(52 * var(--up));
  width: calc(75 * var(--up));
  height: calc(45 * var(--up));
}

/* --------------------------------------------------------------------------
   7. TARJETAS DE PRODUCTO (CUADRÍCULA 3 × 2 CON ZONAS FIJAS)
   -------------------------------------------------------------------------- */
.panes-grid {
  position: absolute;
  left: calc(70 * var(--up));
  top: calc(258 * var(--up));
  width: calc(965 * var(--up));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(16 * var(--up)) calc(21 * var(--up));
  align-items: start;
  z-index: 4;
}

.tarjeta-pan {
  position: relative;
  width: calc(307 * var(--up));
  aspect-ratio: 307 / 330;
  container-type: inline-size;
  --cu: calc(100cqw / 307);
  border-radius: calc(24 * var(--up));
  filter: drop-shadow(0 calc(8 * var(--up)) calc(14 * var(--up)) rgba(190, 140, 0, 0.18));
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease, opacity 0.2s ease;
  will-change: transform, opacity;
}

.tarjeta-pan.fila-1 {
  aspect-ratio: 307 / 330;
}

.tarjeta-pan.fila-2 {
  aspect-ratio: 307 / 280;
}

/* Al filtrar por categorías en .panes-tabs, todas las tarjetas se muestran del mismo tamaño estándar */
.panes-grid.is-filtered .tarjeta-pan {
  aspect-ratio: 307 / 330;
}

.panes-grid.is-filtered .tarjeta-pan .z-foto {
  top: calc(6 * var(--cu));
  height: calc(168 * var(--cu));
  max-width: calc(224 * var(--cu));
  left: 50%;
  transform: translateX(-50%);
}

.panes-grid.is-filtered .tarjeta-pan .z-nombre {
  top: calc(176 * var(--cu));
  height: calc(32 * var(--cu));
}

.panes-grid.is-filtered .tarjeta-pan .z-desc {
  top: calc(210 * var(--cu));
  height: calc(34 * var(--cu));
}

.panes-grid.is-filtered .tarjeta-pan .z-iconos {
  top: calc(250 * var(--cu));
  height: calc(30 * var(--cu));
}

.panes-grid.is-filtered .tarjeta-pan .z-footer {
  top: calc(288 * var(--cu));
  height: calc(32 * var(--cu));
}

.tarjeta-pan.is-hiding {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

.tarjeta-pan.is-entering {
  opacity: 0;
  transform: scale(0.94);
}

.tarjeta-pan.is-hidden {
  display: none !important;
}

.tarjeta-pan:hover {
  transform: translateY(calc(-4 * var(--up)));
  filter: drop-shadow(0 calc(12 * var(--up)) calc(20 * var(--up)) rgba(190, 140, 0, 0.28));
  z-index: 8;
}

.tarjeta-pan:hover .tarjeta-pan-img {
  transform: scale(1.03);
}

.tarjeta-pan-3:hover .tarjeta-pan-img,
.tarjeta-pan-4:hover .tarjeta-pan-img {
  transform: scale(1.03);
}

.tarjeta-svg-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.tarjeta-bg-path, .tarjeta-bg-path-row2 {
  fill: var(--tarjeta);
  stroke: var(--mostaza);
  stroke-width: 4;
  stroke-linejoin: round;
}

/* Etiquetas */
.tarjeta-etiqueta {
  position: absolute;
  left: calc(12 * var(--cu));
  border-radius: calc(8 * var(--cu));
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: max(10px, calc(12 * var(--cu)));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 calc(3 * var(--cu)) calc(6 * var(--cu)) rgba(0, 0, 0, 0.15);
}

.etiqueta-favorito {
  top: calc(13 * var(--cu));
  width: calc(83 * var(--cu));
  height: calc(28 * var(--cu));
  background-color: var(--rojo);
  color: var(--crema);
  transform: rotate(-12deg);
}

.etiqueta-nuevo {
  top: calc(11 * var(--cu));
  width: calc(75 * var(--cu));
  height: calc(30 * var(--cu));
  background-color: var(--verde);
  color: var(--crema);
  transform: rotate(-10deg);
}

.etiqueta-hoy {
  top: calc(13 * var(--cu));
  width: calc(65 * var(--cu));
  height: calc(28 * var(--cu));
  background-color: var(--amarillo);
  border: calc(1.5 * var(--cu)) solid var(--mostaza);
  color: var(--verde-osc);
  transform: rotate(-8deg);
}

.etiqueta-pan-dia {
  left: calc(18 * var(--cu));
  top: calc(13 * var(--cu));
  width: calc(105 * var(--cu));
  height: calc(27 * var(--cu));
  background-color: var(--verde);
  color: var(--crema);
  transform: rotate(-10deg);
}

/* 5 Zonas fijas absolutas */
.z-foto, .z-nombre, .z-desc, .z-iconos, .z-footer {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.z-nombre, .z-desc {
  overflow: hidden;
}

.z-foto {
  overflow: visible;
}

/* Fila 1 (alto 330) */
.fila-1 .z-foto {
  top: calc(6 * var(--cu));
  height: calc(168 * var(--cu));
  max-width: calc(224 * var(--cu));
  left: 50%;
  transform: translateX(-50%);
}
.fila-1 .z-nombre {
  top: calc(176 * var(--cu));
  height: calc(32 * var(--cu));
}
.fila-1 .z-desc {
  top: calc(210 * var(--cu));
  height: calc(34 * var(--cu));
}
.fila-1 .z-iconos {
  top: calc(250 * var(--cu));
  height: calc(30 * var(--cu));
}
.fila-1 .z-footer {
  top: calc(288 * var(--cu));
  height: calc(32 * var(--cu));
}

/* Fila 2 (alto 280) */
.fila-2 .z-foto {
  top: calc(6 * var(--cu));
  height: calc(122 * var(--cu));
  max-width: calc(224 * var(--cu));
  left: 50%;
  transform: translateX(-50%);
}
.fila-2 .z-nombre {
  top: calc(130 * var(--cu));
  height: calc(26 * var(--cu));
}
.fila-2 .z-desc {
  top: calc(156 * var(--cu));
  height: calc(36 * var(--cu));
}
.fila-2 .z-iconos {
  top: calc(192 * var(--cu));
  height: calc(28 * var(--cu));
}
.fila-2 .z-footer {
  top: calc(232 * var(--cu));
  height: calc(32 * var(--cu));
}

/* Contenido de .z-foto */
.tarjeta-pan-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 calc(10 * var(--cu)) calc(8 * var(--cu)) rgba(120, 70, 0, 0.3));
  transition: transform 0.35s ease;
}

.tarjeta-pan-img.rot-3 {
  transform: rotate(-4deg);
}

.tarjeta-pan-img.rot-4 {
  transform: rotate(-3deg);
}

/* Contenido de .z-nombre */
.tarjeta-nombre {
  font-family: 'Bagel Fat One', cursive, sans-serif;
  color: var(--verde-osc);
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.tarjeta-pan-1 .tarjeta-nombre,
.tarjeta-pan-2 .tarjeta-nombre {
  font-size: max(14px, calc(30 * var(--cu)));
}

.tarjeta-pan-3 .tarjeta-nombre {
  font-size: max(14px, calc(28 * var(--cu)));
}

.nombre-empanada {
  font-size: max(12px, calc(20 * var(--cu)));
}

.nombre-cuernito-jq {
  font-size: max(12px, calc(21 * var(--cu)));
}

.tarjeta-pan-6 .tarjeta-nombre {
  font-size: max(14px, calc(26 * var(--cu)));
}

/* Contenido de .z-desc */
.tarjeta-desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: max(10px, calc(14 * var(--cu)));
  color: var(--texto);
  line-height: 1.15;
  text-align: center;
}

.desc-empanada {
  font-size: max(10px, calc(13 * var(--cu)));
}

/* Contenido de .z-iconos */
.z-iconos {
  gap: calc(14 * var(--cu));
}

.tarjeta-icono {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Contenido de .z-footer */
.z-footer {
  gap: calc(14 * var(--cu));
  padding: 0 calc(14 * var(--cu));
  flex-wrap: nowrap;
}

.tarjeta-btn-pedir {
  height: calc(32 * var(--cu));
  border-radius: 999px;
  background-color: var(--verde);
  color: var(--crema);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: max(10.5px, calc(13.5 * var(--cu)));
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--cu));
  white-space: nowrap;
  box-shadow: 0 calc(4 * var(--cu)) calc(8 * var(--cu)) rgba(15, 74, 62, 0.25);
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.tarjeta-btn-pedir:hover {
  background-color: #217F6A;
  transform: translateY(calc(-2 * var(--cu)));
  box-shadow: 0 calc(6 * var(--cu)) calc(12 * var(--cu)) rgba(15, 74, 62, 0.35);
}

.tarjeta-btn-pedir .btn-arrow {
  font-size: max(10px, calc(14 * var(--cu)));
  transition: transform 0.25s ease;
}

.tarjeta-btn-pedir:hover .btn-arrow {
  transform: translateX(calc(4 * var(--cu)));
}

.btn-pedir-1 { width: calc(161 * var(--cu)); }
.btn-pedir-2 { width: calc(171 * var(--cu)); }
.btn-pedir-3 { width: calc(163 * var(--cu)); }
.btn-pedir-4 { width: calc(171 * var(--cu)); }
.btn-pedir-5 { width: calc(171 * var(--cu)); }
.btn-pedir-6 {
  width: auto;
  padding: 0 calc(14 * var(--cu));
  font-size: max(10px, calc(12 * var(--cu)));
  letter-spacing: 0.03em;
}

.tarjeta-btn-fav {
  width: calc(33 * var(--cu));
  height: calc(33 * var(--cu));
  border-radius: 50%;
  border: calc(2 * var(--cu)) solid var(--verde);
  background-color: var(--tarjeta);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.25s ease, background-color 0.25s ease;
  padding: 0;
  flex-shrink: 0;
}

.tarjeta-btn-fav:hover {
  transform: scale(1.1);
}

.fav-heart-icon {
  width: calc(17 * var(--cu));
  height: calc(17 * var(--cu));
  fill: var(--verde);
  transition: fill 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tarjeta-btn-fav.active {
  border-color: var(--rojo);
  background-color: #FFF0EE;
}

.tarjeta-btn-fav.active .fav-heart-icon {
  fill: var(--rojo);
  transform: scale(1.18);
}

/* --------------------------------------------------------------------------
   8. COLUMNA DERECHA (ESCALADA AL 90%)
   -------------------------------------------------------------------------- */
.panes-col-derecha {
  position: absolute;
  left: calc(1074 * var(--up));
  top: calc(210 * var(--up));
  width: calc(370 * var(--up));
  container-type: inline-size;
  z-index: 5;
}

.panes-col-derecha > * {
  --cr: calc(100cqw / 435);
}

/* 8.1 Tarjeta Verde con Contador */
.tarjeta-conteo {
  position: relative;
  width: 100%;
  transition: transform 0.35s ease;
}

.tarjeta-conteo:hover {
  transform: translateY(calc(-4 * var(--cr)));
}

.tarjeta-conteo-media {
  position: relative;
  width: 100%;
}

.recuadro-conteo-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sello festoneado */
.conteo-sello {
  position: absolute;
  left: calc(13 * var(--cr));
  top: calc(-3 * var(--cr));
  width: calc(195 * var(--cr));
  height: calc(195 * var(--cr));
  transform: rotate(-12deg);
  cursor: pointer;
  z-index: 7;
  filter: drop-shadow(0 calc(6 * var(--cr)) calc(10 * var(--cr)) rgba(0, 0, 0, 0.35));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --su: calc(195 * var(--cr) / 220);
}

.conteo-sello:hover {
  transform: rotate(-12deg) scale(1.06);
}

.conteo-sello .sello-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.conteo-sello-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  user-select: none;
  padding-top: calc(5 * var(--su));
}

.conteo-sello .sello-linea-1 {
  display: flex;
  align-items: center;
  gap: calc(5 * var(--su));
}

.conteo-sello .sello-heart {
  width: calc(9 * var(--su));
  height: calc(9 * var(--su));
}

.conteo-sello .sello-txt-venta {
  font-size: calc(20 * var(--su));
  color: var(--verde);
  letter-spacing: 0.04em;
  line-height: 1;
}

.conteo-sello .sello-txt-volovanes {
  font-size: calc(36 * var(--su));
  color: var(--verde-osc);
  letter-spacing: 0.01em;
  line-height: 0.95;
  -webkit-text-stroke: 0.44px var(--verde-osc);
  margin-top: calc(7 * var(--su));
  margin-bottom: calc(5 * var(--su));
}

.conteo-sello .sello-cinta-fecha {
  background-color: var(--verde);
  border-radius: calc(8 * var(--su));
  width: calc(150 * var(--su));
  height: calc(34 * var(--su));
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
  margin: calc(5 * var(--su)) 0 calc(6 * var(--su)) 0;
  box-shadow: 0 2px 6px rgba(8, 45, 36, 0.25);
}

.conteo-sello .sello-cinta-fecha span {
  font-size: calc(26 * var(--su));
  color: var(--crema);
  letter-spacing: 0.03em;
  line-height: 1;
}

.conteo-sello .sello-txt-hora {
  font-size: calc(30 * var(--su));
  color: var(--verde-osc);
  line-height: 1;
  margin-top: calc(2 * var(--su));
}

.conteo-sello .sello-mini-star {
  width: calc(14 * var(--su));
  height: calc(14 * var(--su));
  color: var(--verde-osc);
  margin-left: calc(28 * var(--su));
  margin-top: calc(-1 * var(--su));
}

/* Frase manuscrita */
.conteo-nota-manuscrita {
  position: absolute;
  left: 61%;
  top: 3%;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: calc(30 * var(--cr));
  color: #FDEFC0;
  transform: rotate(-10deg);
  line-height: 0.95;
  white-space: nowrap;
  pointer-events: none;
  z-index: 6;
  text-shadow: 0 calc(2 * var(--cr)) calc(4 * var(--cr)) rgba(0, 0, 0, 0.25);
}

/* Contador numérico */
.conteo-reloj {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.reloj-caja {
  position: absolute;
  top: 80.08%;
  height: 11.28%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.reloj-dias  { left: 13.48%; width: 14.55%; }
.reloj-horas { left: 30.32%; width: 14.31%; }
.reloj-min   { left: 46.92%; width: 14.16%; }
.reloj-seg   { left: 63.43%; width: 13.96%; }

.reloj-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: max(14px, calc(30 * var(--cr)));
  color: var(--verde-osc);
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reloj-num.flip-tick {
  animation: numTick 0.2s ease;
}

.reloj-etiqueta {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: max(10px, calc(10 * var(--cr)));
  color: var(--verde-osc);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: calc(2 * var(--cr));
}

/* 8.2 Tarjeta Pide a Domicilio */
.tarjeta-domicilio {
  position: absolute;
  left: calc(2 * var(--cr));
  top: calc(450 * var(--cr));
  width: calc(432 * var(--cr));
  height: calc(343 * var(--cr));
  background-color: var(--tarjeta-2);
  border: calc(2 * var(--cr)) solid rgba(245, 184, 0, 0.55);
  border-radius: calc(28 * var(--cr));
  box-shadow: 0 calc(8 * var(--cr)) calc(16 * var(--cr)) rgba(190, 140, 0, 0.18);
  z-index: 5;
  overflow: hidden;
}

.domicilio-icono-wrap {
  position: absolute;
  left: calc(24 * var(--cr));
  top: calc(14 * var(--cr));
  width: calc(248 * var(--cr));
  height: calc(122 * var(--cr));
  z-index: 2;
}

.domicilio-icono-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
  display: block;
}

.domicilio-nota {
  position: absolute;
  left: calc(218 * var(--cr));
  top: calc(15 * var(--cr));
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: max(14px, calc(28 * var(--cr)));
  color: var(--verde);
  transform: rotate(-6deg);
  display: flex;
  align-items: center;
  gap: calc(6 * var(--cr));
  pointer-events: none;
  z-index: 2;
  line-height: 1;
  white-space: nowrap;
}

.domicilio-nota-lineas {
  display: flex;
  flex-direction: column;
}

.nota-subrayada {
  position: relative;
  display: inline-block;
}

.brush-underline {
  position: absolute;
  left: 0;
  bottom: calc(-6 * var(--cr));
  width: 100%;
  height: calc(10 * var(--cr));
}

.domicilio-heart-svg {
  width: calc(22 * var(--cr));
  height: calc(22 * var(--cr));
  flex-shrink: 0;
  margin-top: calc(10 * var(--cr));
}

.domicilio-subtitulo {
  position: absolute;
  left: calc(24 * var(--cr));
  top: calc(138 * var(--cr));
  height: calc(22 * var(--cr));
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: max(10px, calc(17 * var(--cr)));
  color: var(--verde-osc);
  white-space: nowrap;
  z-index: 2;
}

.domicilio-btn-tel {
  position: absolute;
  left: calc(24 * var(--cr));
  top: calc(168 * var(--cr));
  width: calc(267 * var(--cr));
  height: calc(51 * var(--cr));
  border-radius: 999px;
  background-color: var(--verde);
  box-shadow: 0 calc(6 * var(--cr)) calc(12 * var(--cr)) rgba(15, 74, 62, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(12 * var(--cr));
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  z-index: 3;
}

.domicilio-btn-tel:hover {
  background-color: #217F6A;
  transform: translateY(calc(-2 * var(--cr)));
  box-shadow: 0 calc(8 * var(--cr)) calc(16 * var(--cr)) rgba(15, 74, 62, 0.4);
}

.domicilio-wa-icon {
  width: calc(34 * var(--cr));
  height: calc(34 * var(--cr));
  background-color: var(--amarillo);
  flex-shrink: 0;
}

.domicilio-tel-numero {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: max(14px, calc(26 * var(--cr)));
  letter-spacing: 0.02em;
  color: var(--amarillo);
}

.domicilio-divisor {
  position: absolute;
  left: calc(24 * var(--cr));
  width: calc(357 * var(--cr));
  top: calc(236 * var(--cr));
  height: calc(1.5 * var(--cr));
  background-color: var(--mostaza);
  opacity: 0.6;
  z-index: 2;
}

.domicilio-visitanos-link {
  position: absolute;
  left: calc(24 * var(--cr));
  top: calc(252 * var(--cr));
  display: flex;
  align-items: flex-start;
  gap: calc(14 * var(--cr));
  text-decoration: none;
  color: inherit;
  z-index: 2;
  transition: transform 0.2s ease;
}

.domicilio-visitanos-link:hover {
  transform: translateX(calc(3 * var(--cr)));
}

.visitanos-pin-icon {
  width: calc(37 * var(--cr));
  height: calc(46 * var(--cr));
  flex-shrink: 0;
}

.visitanos-titulo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: max(10px, calc(14 * var(--cr)));
  letter-spacing: 0.1em;
  color: var(--verde-osc);
  margin-bottom: calc(4 * var(--cr));
}

.visitanos-direccion {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: max(10px, calc(13.5 * var(--cr)));
  line-height: 1.25;
  color: var(--texto);
  font-style: normal;
}

.domicilio-escalera {
  position: absolute;
  right: calc(16 * var(--cr));
  bottom: calc(14 * var(--cr));
  width: calc(115 * var(--cr));
  height: calc(70 * var(--cr));
  pointer-events: none;
  z-index: 1;
}

.escalera-svg path {
  stroke-dasharray: 300;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animación de pulso para venta especial y ubicación */
@keyframes pulseCardTarget {
  0% { box-shadow: 0 0 0 0 rgba(252, 195, 15, 0.7); }
  50% { box-shadow: 0 0 0 16px rgba(252, 195, 15, 0); }
  100% { box-shadow: 0 0 0 0 rgba(252, 195, 15, 0); }
}

.pulse-highlight {
  animation: pulseCardTarget 0.6s ease 2;
  border-radius: 28px;
}

/* Evitar que el botón del editor tape el botón de WhatsApp en el header */
#rpe-toggle-btn {
  top: auto !important;
  bottom: 20px !important;
  right: 20px !important;
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE (< 1024px)
   -------------------------------------------------------------------------- */

/* Tablet (640px – 1023px) */
@media (max-width: 1023px) {
  .seccion-panes {
    min-height: auto;
    height: auto;
    padding: 80px 24px 80px;
    scroll-snap-align: none;
    display: block;
  }

  .panes-canvas {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .panes-ondas-top {
    display: none;
  }

  .panes-bg-word.word-izq {
    font-size: 26vw;
    left: -20px;
    top: -20px;
  }

  .panes-bg-word.word-der {
    font-size: 26vw;
    right: -20px;
    left: auto;
    top: 50%;
  }

  .panes-header {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
  }

  .panes-pildora {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    padding: 8px 24px;
    height: auto;
    font-size: 14px;
    margin-bottom: 16px;
  }

  .panes-titular-wrap {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 90%;
    max-width: 600px;
  }

  .panes-nota-elige {
    display: none; /* Se oculta en tablet según spec */
  }

  .panes-subtitulo {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    font-size: 16px;
    margin-top: 14px;
    text-align: center;
  }

  .panes-tabs {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    margin-top: 20px;
    display: flex;
    overflow-x: auto;
    padding: 6px 12px;
    gap: 10px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .panes-tabs::-webkit-scrollbar {
    display: none;
  }

  .panes-tab {
    flex-shrink: 0;
    height: 42px;
    padding: 0 20px;
    font-size: 14px;
  }

  .panes-tab[data-cat="todos"],
  .panes-tab[data-cat="volovanes"],
  .panes-tab[data-cat="cuernitos"],
  .panes-tab[data-cat="empanadas"],
  .panes-tab[data-cat="dulces"] {
    width: auto;
  }

  /* Grid 2 columnas: cada tarjeta conserva su aspect-ratio y sus zonas escalan con --cu */
  .panes-grid {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 700px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
  }

  .tarjeta-pan {
    width: 100%;
  }

  /* Columna derecha en tablet: flujo secuencial debajo, max-width: 520px */
  .panes-col-derecha {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .tarjeta-conteo {
    width: 100%;
  }

  .tarjeta-domicilio {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    aspect-ratio: 432 / 343;
    height: auto;
  }
}

/* Móvil (< 640px) */
@media (max-width: 639px) {
  .panes-bg-word {
    font-size: 38vw !important;
    opacity: 0.35 !important;
  }

  .panes-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 10px 16px 24px;
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .panes-grid::-webkit-scrollbar {
    display: none;
  }

  .tarjeta-pan {
    flex: 0 0 78vw;
    width: 78vw;
    scroll-snap-align: center;
  }

  .conteo-sello {
    width: 38%;
    height: auto;
    aspect-ratio: 1/1;
  }

  .domicilio-btn-tel {
    width: 100%;
    left: 0;
    right: 0;
  }

  .domicilio-escalera {
    display: none;
  }
}

/* ==========================================================================
   PANTALLA DE CARGA (PRELOADER RICO PAN)
   ========================================================================== */
body.preloader-active {
  overflow: hidden !important;
  touch-action: none;
}

.preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background-color: var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.65s;
  will-change: opacity, transform;
}

.preloader.preloader-hidden {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
  visibility: hidden;
}

/* Fondo con degradado radial y grano suave */
.preloader-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.preloader-glow-ambient {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(85vw, 650px);
  height: min(85vw, 650px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 139, 111, 0.6) 0%, rgba(23, 112, 92, 0.4) 45%, rgba(13, 66, 54, 0.95) 100%);
  filter: blur(40px);
}

.preloader-grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Contenedor central */
.preloader-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  padding: 20px;
}

/* Vapor de calor artesanal */
.preloader-steam {
  width: 90px;
  height: 40px;
  margin-bottom: -12px;
  z-index: 3;
}

.preloader-steam-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.steam-line {
  opacity: 0.35;
  filter: drop-shadow(0 0 6px rgba(253, 229, 138, 0.6));
}

.steam-1 {
  animation: preloaderSteam 2.4s ease-in-out infinite alternate;
}

.steam-2 {
  animation: preloaderSteam 1.9s ease-in-out 0.4s infinite alternate;
}

.steam-3 {
  animation: preloaderSteam 2.6s ease-in-out 0.8s infinite alternate;
}

@keyframes preloaderSteam {
  0% {
    transform: translateY(4px) scaleY(0.9);
    opacity: 0.25;
  }
  50% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(-8px) scaleY(1.1);
    opacity: 0.15;
  }
}

/* Badge con assets/logo-carga.webp y anillos concéntricos */
.preloader-badge-container {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.preloader-badge-container.preloader-badge-pop {
  transform: scale(1.08);
  filter: drop-shadow(0 0 35px rgba(252, 195, 15, 0.75));
}

/* Resplandor dorado de fondo */
.preloader-badge-glow {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 195, 15, 0.4) 0%, rgba(219, 154, 6, 0.2) 50%, transparent 72%);
  filter: blur(16px);
  animation: preloaderGlowPulse 2.8s ease-in-out infinite;
}

@keyframes preloaderGlowPulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

/* Anillo exterior decorativo que gira lentamente */
.preloader-ring-outer {
  position: absolute;
  width: 248px;
  height: 248px;
  border-radius: 50%;
  border: 2px dashed rgba(252, 195, 15, 0.42);
  animation: preloaderSpin 22s linear infinite;
  pointer-events: none;
}

@keyframes preloaderSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Anillo intermedio pulsante */
.preloader-ring-pulse {
  position: absolute;
  width: 232px;
  height: 232px;
  border-radius: 50%;
  border: 1.5px solid rgba(253, 229, 138, 0.35);
  animation: preloaderRingPulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes preloaderRingPulse {
  0%, 100% {
    transform: scale(0.97);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.75;
  }
}

/* Marco del logo */
.preloader-logo-frame {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38),
              0 0 20px rgba(252, 195, 15, 0.25);
  animation: preloaderFloat 3.2s ease-in-out infinite;
  will-change: transform;
}

@keyframes preloaderFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.preloader-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Barra de progreso */
.preloader-progress-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 280px;
  max-width: 82vw;
}

.preloader-track {
  width: 100%;
  height: 9px;
  background: rgba(247, 235, 208, 0.15);
  border: 1px solid rgba(252, 195, 15, 0.35);
  border-radius: 999px;
  padding: 2px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.28),
              0 2px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #DB9A06 0%, #FCC30F 65%, #FDE58A 100%);
  border-radius: 999px;
  position: relative;
  box-shadow: 0 0 12px rgba(252, 195, 15, 0.65);
  transition: width 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.preloader-fill-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
  animation: preloaderShimmer 1.8s infinite linear;
}

@keyframes preloaderShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Metadatos: Mensaje y Porcentaje */
.preloader-info {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.preloader-phrase {
  color: var(--crema);
  opacity: 0.95;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.preloader-count {
  color: var(--amarillo);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Ajustes Responsive para Móviles */
@media (max-width: 600px) {
  .preloader-badge-container {
    width: 175px;
    height: 175px;
    margin-bottom: 22px;
  }
  .preloader-logo-frame {
    width: 155px;
    height: 155px;
  }
  .preloader-ring-outer {
    width: 198px;
    height: 198px;
  }
  .preloader-ring-pulse {
    width: 184px;
    height: 184px;
  }
  .preloader-progress-box {
    width: 240px;
  }
  .preloader-info {
    font-size: 0.78rem;
    margin-top: 11px;
  }
}

/* ==========================================================================
   ANIMACIÓN DE PRESENTACIÓN TRAS LA PANTALLA DE CARGA (HERO & PANES)
   ========================================================================== */

/* 1. ESTADO PREVIO (MIENTRAS EL PRELOADER ESTÁ ACTIVO) */
body.preloader-active .hero-header,
body.preloader-active .hero-bg-words,
body.preloader-active .hero-pildora,
body.preloader-active .hero-titulo-img,
body.preloader-active .hero-titulo-estrella-wrap,
body.preloader-active .hero-subtitulo,
body.preloader-active .btn-primario,
body.preloader-active .btn-secundario,
body.preloader-active .hero-datos,
body.preloader-active .hero-oval-group,
body.preloader-active .hero-panes-wrapper,
body.preloader-active .hero-estrella-superior,
body.preloader-active .hero-sello,
body.preloader-active .hero-rayitas,
body.preloader-active .hero-marquee,
body.preloader-active .hero-descubre {
  opacity: 0 !important;
  animation: none !important;
}

/* 2. ENTRADA COREOGRAFIADA DEL HERO (CUANDO TERMINA LA PANTALLA DE CARGA) */

/* Header */
body.page-loaded .hero-header {
  animation: heroHeaderEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

@keyframes heroHeaderEntrance {
  from {
    opacity: 0;
    transform: translateY(-28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Palabras gigantes de fondo */
body.page-loaded .hero-bg-words {
  animation: heroWordsEntrance 1.2s ease-out 0.12s both;
}

@keyframes heroWordsEntrance {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Píldora "PANIFICADORA · PARAÍSO, TABASCO" */
body.page-loaded .hero-pildora {
  animation: heroPildoraEntrance 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s both;
}

@keyframes heroPildoraEntrance {
  from {
    opacity: 0;
    transform: translateY(-22px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Titular "PAN RECIÉN HORNEADO" (revelación con máscara hacia arriba) */
body.page-loaded .hero-titulo-img {
  animation: heroTituloEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

@keyframes heroTituloEntrance {
  0% {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

/* Estrellita del titular */
body.page-loaded .hero-titulo-estrella-wrap {
  animation: heroEstrellaTituloEntrance 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.72s both;
}

@keyframes heroEstrellaTituloEntrance {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-60deg);
  }
  100% {
    opacity: 1;
    transform: rotate(-10deg) scale(1);
  }
}

/* Subtítulo */
body.page-loaded .hero-subtitulo {
  animation: heroSubtituloEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.44s both;
}

@keyframes heroSubtituloEntrance {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botones CTA */
body.page-loaded .btn-primario {
  animation: heroBtnEntrance 0.75s cubic-bezier(0.34, 1.45, 0.64, 1) 0.56s both;
}

body.page-loaded .btn-secundario {
  animation: heroBtnEntrance 0.75s cubic-bezier(0.34, 1.45, 0.64, 1) 0.64s both;
}

@keyframes heroBtnEntrance {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Fila de datos */
body.page-loaded .hero-datos {
  animation: heroDatosEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.74s both;
}

@keyframes heroDatosEntrance {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Óvalo amarillo */
body.page-loaded .hero-oval-group {
  animation: heroOvalEntrance 1.05s cubic-bezier(0.34, 1.4, 0.64, 1) 0.22s both;
}

@keyframes heroOvalEntrance {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.65);
  }
  to {
    opacity: 1;
    transform: rotate(-10deg) scale(1);
  }
}

/* Composición de panes (caída elástica suave y apetitosa) */
body.page-loaded .hero-panes-wrapper {
  animation: heroPanesEntrance 1.1s cubic-bezier(0.34, 1.35, 0.64, 1) 0.34s both;
}

@keyframes heroPanesEntrance {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.88);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Rayitas amarillas destellantes */
body.page-loaded .hero-rayitas.rayita-a {
  animation: heroRayitaEntranceA 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.65s both, destelloRayitaA 1.8s ease-in-out 1.3s infinite alternate;
}

body.page-loaded .hero-rayitas.rayita-b {
  animation: heroRayitaEntranceB 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s both, destelloRayitaB 1.8s ease-in-out 1.4s infinite alternate;
}

body.page-loaded .hero-rayitas.rayita-c {
  animation: heroRayitaEntranceC 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.85s both, destelloRayitaC 1.8s ease-in-out 1.5s infinite alternate;
}

@keyframes heroRayitaEntranceA {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(10deg) scale(0.2); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(10deg) scale(1); }
}

@keyframes heroRayitaEntranceB {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(122deg) scale(0.2); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(122deg) scale(1); }
}

@keyframes heroRayitaEntranceC {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-155deg) scale(0.2); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(-155deg) scale(1); }
}

/* Estrella decorativa superior */
body.page-loaded .hero-estrella-superior {
  animation: heroEstrellaSuperiorEntrance 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.78s both;
}

@keyframes heroEstrellaSuperiorEntrance {
  from {
    opacity: 0;
    transform: rotate(24deg) scale(0);
  }
  to {
    opacity: 1;
    transform: rotate(24deg) scale(1);
  }
}

/* Sello festoneado "VENTA DE VOLOVANES" (rebote tipo estampa postal) */
body.page-loaded .hero-sello {
  animation: heroSelloStampEntrance 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.82s both, floatSello 3.5s ease-in-out 1.7s infinite alternate;
}

@keyframes heroSelloStampEntrance {
  0% {
    opacity: 0;
    transform: rotate(-35deg) scale(0);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* Marquesina inferior y botón descubre */
body.page-loaded .hero-marquee {
  animation: heroMarqueeEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

@keyframes heroMarqueeEntrance {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.page-loaded .hero-descubre {
  animation: heroDescubreEntrance 0.75s ease-out 0.9s both;
}

@keyframes heroDescubreEntrance {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================================================
   3. ANIMACIÓN DE PRESENTACIÓN DE LA SECCIÓN DE PANES (.SECCION-PANES)
   ========================================================================== */

/* Estado antes de entrar en vista */
.seccion-panes:not(.panes-revealed) .panes-fondo-decoracion,
.seccion-panes:not(.panes-revealed) .panes-pildora,
.seccion-panes:not(.panes-revealed) .panes-titular-img,
.seccion-panes:not(.panes-revealed) .panes-subtitulo,
.seccion-panes:not(.panes-revealed) .panes-tabs,
.seccion-panes:not(.panes-revealed) .panes-nota-elige,
.seccion-panes:not(.panes-revealed) .tarjeta-pan,
.seccion-panes:not(.panes-revealed) .tarjeta-conteo,
.seccion-panes:not(.panes-revealed) .tarjeta-visitanos {
  opacity: 0;
  pointer-events: none;
}

/* Decoración de fondo "PAN" */
.seccion-panes.panes-revealed .panes-fondo-decoracion {
  animation: panesBgEntrance 1.1s ease-out 0.05s both;
}

@keyframes panesBgEntrance {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Píldora "HECHOS CADA DÍA" */
.seccion-panes.panes-revealed .panes-pildora {
  animation: panesPildoraEntrance 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes panesPildoraEntrance {
  from {
    opacity: 0;
    transform: translateY(-22px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Titular "NUESTROS PANES FAVORITOS" */
.seccion-panes.panes-revealed .panes-titular-img {
  animation: panesTitularEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes panesTitularEntrance {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Subtítulo */
.seccion-panes.panes-revealed .panes-subtitulo {
  animation: panesSubtituloEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

@keyframes panesSubtituloEntrance {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pestañas de categorías */
.seccion-panes.panes-revealed .panes-tabs {
  animation: panesTabsEntrance 0.8s cubic-bezier(0.34, 1.4, 0.64, 1) 0.42s both;
}

@keyframes panesTabsEntrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nota manuscrita "¡Elige el tuyo!" y flecha */
.seccion-panes.panes-revealed .panes-nota-elige {
  animation: panesNotaEntrance 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s both;
}

@keyframes panesNotaEntrance {
  from {
    opacity: 0;
    transform: scale(0.2) rotate(-25deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Cuadrícula de tarjetas de pan (Cascada escalonada) */
.seccion-panes.panes-revealed .tarjeta-pan {
  animation: tarjetaPanEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.seccion-panes.panes-revealed .tarjeta-pan-1 { animation-delay: 0.15s; }
.seccion-panes.panes-revealed .tarjeta-pan-2 { animation-delay: 0.25s; }
.seccion-panes.panes-revealed .tarjeta-pan-3 { animation-delay: 0.35s; }
.seccion-panes.panes-revealed .tarjeta-pan-4 { animation-delay: 0.45s; }
.seccion-panes.panes-revealed .tarjeta-pan-5 { animation-delay: 0.55s; }
.seccion-panes.panes-revealed .tarjeta-pan-6 { animation-delay: 0.65s; }

@keyframes tarjetaPanEntrance {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Cuando se filtran tarjetas, anular animación de entrada para no interferir con el filtrado */
.panes-grid.is-filtered .tarjeta-pan {
  animation: none !important;
}

/* Columna derecha: Tarjeta de Venta Especial (conteo) y Visítanos */
.seccion-panes.panes-revealed .tarjeta-conteo {
  animation: panesAsideCardEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.seccion-panes.panes-revealed .tarjeta-visitanos {
  animation: panesAsideCardEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes panesAsideCardEntrance {
  from {
    opacity: 0;
    transform: translateX(45px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Sello del conteo en la tarjeta verde */
.seccion-panes.panes-revealed .conteo-sello {
  animation: conteoSelloStampEntrance 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both;
}

@keyframes conteoSelloStampEntrance {
  from {
    opacity: 0;
    transform: rotate(-35deg) scale(0);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* ==========================================================================
   ACCESIBILIDAD: 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;
    scroll-behavior: auto !important;
  }
  .hero-titulo-img {
    clip-path: none !important;
  }
  .marquee-track {
    animation: none !important;
  }
  .panes-titular-img {
    animation: none !important;
  }
  .preloader-ring-outer,
  .preloader-ring-pulse,
  .preloader-badge-glow,
  .preloader-logo-frame,
  .steam-1, .steam-2, .steam-3,
  .preloader-fill-shimmer {
    animation: none !important;
  }
  .seccion-panes:not(.panes-revealed) .panes-fondo-decoracion,
  .seccion-panes:not(.panes-revealed) .panes-pildora,
  .seccion-panes:not(.panes-revealed) .panes-titular-img,
  .seccion-panes:not(.panes-revealed) .panes-subtitulo,
  .seccion-panes:not(.panes-revealed) .panes-tabs,
  .seccion-panes:not(.panes-revealed) .panes-nota-elige,
  .seccion-panes:not(.panes-revealed) .tarjeta-pan,
  .seccion-panes:not(.panes-revealed) .tarjeta-conteo,
  .seccion-panes:not(.panes-revealed) .tarjeta-visitanos {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}
