:root {
  /* ========================================================================
     Paleta de Colores (Diseño Editorial & Café de Especialidad)
     ======================================================================== */
  --cream: #f6efe4;           /* Fondo crema suave tipo papel */
  --cream-dim: rgba(246, 239, 228, 0.72);
  --espresso: #1c140d;        /* Color principal oscuro (tostado intenso) */
  --umber: #6f4a24;           /* Tono café medio para textos secundarios */
  --beige-bg: #f3e9d6;        /* Fondo cálido para sección de productos */
  --caramel: #c5a06b;         /* Acento dorado tostado */

  /* Temas de color para las tazas del slider */
  --panel-espresso: #241a10;
  --panel-honey: #b98945;
  --panel-coldbrew: #5d7a88;

  /* Tipografías */
  --font-display: "Playfair Display", serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--espresso);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Sección Principal (Hero)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("/assets/images/demos/cafe/hero-banner-bg.webp");
  background-size: cover;
  background-position: center;
}

/* Barra de Navegación */
.site-header {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 2vw, 1.4rem);
  padding: clamp(0.5rem, 1.1vw, 0.8rem) clamp(1.1rem, 3vw, 2rem);
  background-color: rgba(255, 249, 238, 0.88);
  border-radius: 999px;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--espresso);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: clamp(0.5rem, 2vw, 1.6rem);
  list-style: none;
  padding: 0;

  a {
    color: var(--espresso);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    transition: background-color 0.25s ease, color 0.25s ease;
  }

  a:hover {
    background-color: rgba(28, 20, 13, 0.07);
  }
}

/* Contenido y Textos del Hero */
.hero-copy {
  position: relative;
  z-index: 1;
  margin-top: -2.5rem;
  margin-left: clamp(5rem, 26vw, 20rem);
  max-width: min(60ch, 100vw);
  text-align: left;
  animation: rise 0.9s ease both;
}

.heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1;
  color: var(--espresso);
  margin: 0 0 clamp(1.3rem, 2.6vw, 1.8rem);
}

.heading-phrase {
  display: inline-block;
  white-space: nowrap;
}

.heading .accent {
  display: block;
  margin-top: 0.1em;
}

.heading .accent em {
  font-style: italic;
  display: block;
}

/* Nombre del slide en el h1 — flujo inline limpio con intercambio en dos capas */
.slide-name {
  position: relative;
  display: inline-block;
  text-align: left;
  white-space: nowrap;
  color: var(--panel-espresso);
}

/* Capa fantasma (ghost) para la palabra saliente — desciende mientras sube la nueva */
.slide-name .word-ghost {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  white-space: nowrap;
}

/* Línea de acento 1 (palabras 1 y 2 en tono café) */
.accent-line1 {
  position: relative;
  display: block;
  color: var(--umber);
  white-space: nowrap;
}

/* Línea de acento 2 (palabra 3 con color temático del producto) */
.accent-line2 {
  position: relative;
  display: block;
  white-space: nowrap;
  color: var(--panel-espresso);
  margin-top: 0.04em;
}

.accent-line1 .word-ghost,
.accent-line2 .word-ghost {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  white-space: nowrap;
}

.sub {
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.7;
  max-width: 52ch;
  color: var(--espresso);
  margin: 0 0 clamp(1.3rem, 2.4vw, 1.9rem);
}

/* Fila de botones de llamada a la acción */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.2rem);
  flex-wrap: wrap;
}

.pill-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.45rem 0.5rem 0.45rem 1.4rem;
  background-color: var(--espresso);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s;
}

.pill-icon-btn:hover {
  transform: translateY(-2px);
  background-color: #2e2016;
}

.btn-icon-disc {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(246, 239, 228, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: background-color 0.2s, color 0.2s;
}

.pill-icon-btn:hover .btn-icon-disc {
  background: var(--caramel);
  color: var(--espresso);
}

.ghost-minimal-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.4rem;
  border: 1px solid rgba(28, 20, 13, 0.2);
  border-radius: 999px;
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.ghost-minimal-pill:hover {
  border-color: var(--espresso);
  background-color: rgba(28, 20, 13, 0.04);
  transform: translateY(-1px);
}

/* Controles del Slider y barra de progreso */
.slider-controls {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  flex-wrap: wrap;
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 249, 238, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(28, 20, 13, 0.2);
  color: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(28, 20, 13, 0.08);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0;
}

.nav-btn:hover {
  background: var(--espresso);
  color: var(--beige-bg);
  border-color: var(--espresso);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(28, 20, 13, 0.22);
}

.nav-btn:active {
  transform: scale(0.95);
}

/* Fracción del slide actual (1 / 3) */
.slide-fraction {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  user-select: none;
  margin-left: 0.35rem;
}

.fraction-curr {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 600;
  color: var(--espresso);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 0.7em;
  text-align: right;
  paint-order: stroke fill;
  -webkit-text-stroke: 1.2px rgba(255, 249, 238, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.fraction-slash {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-style: italic;
  color: var(--umber);
  opacity: 0.75;
  margin: 0 0.1em;
  line-height: 1;
  paint-order: stroke fill;
  -webkit-text-stroke: 1px rgba(255, 249, 238, 0.95);
}

.fraction-total {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 500;
  color: var(--umber);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 0.7em;
  paint-order: stroke fill;
  -webkit-text-stroke: 1px rgba(255, 249, 238, 0.95);
}

/* Botón flotante para ordenar */
.coffee-buy-btn {
  position: absolute;
  bottom: clamp(2.5rem, 6vh, 4.5rem);
  right: clamp(2.5rem, 5vw, 6rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.35rem 0.75rem 1.45rem;
  background: rgba(255, 249, 238, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(28, 20, 13, 0.16);
  border-radius: 999px;
  color: var(--espresso);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: 
    0 16px 36px -8px rgba(28, 20, 13, 0.22),
    0 4px 12px rgba(28, 20, 13, 0.06);
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: rise 1s ease both 0.3s;
}

.coffee-buy-btn:hover {
  background: var(--espresso);
  color: var(--beige-bg);
  border-color: var(--espresso);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 
    0 22px 44px -8px rgba(28, 20, 13, 0.35),
    0 6px 16px rgba(28, 20, 13, 0.12);
}

.buy-label {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.buy-dot {
  opacity: 0.45;
  font-weight: 300;
}

.buy-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.buy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(28, 20, 13, 0.08);
  margin-left: 0.2rem;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.coffee-buy-btn:hover .buy-icon {
  background: rgba(255, 249, 238, 0.2);
  transform: translateX(3px);
}

/* Paneles del Slider — corte diagonal (de esquina inferior-izq a superior-der) */
.cup-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.slide-panel {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.slide-panel.is-hidden { opacity: 0; }
.slide-panel:not(.is-hidden) { opacity: 1; transition: opacity 0.3s ease; }

.panel-espresso { 
  background: radial-gradient(circle at 72% 58%, #4a3420 0%, var(--panel-espresso) 55%, #140d07 100%); 
}
.panel-honey { 
  background: radial-gradient(circle at 72% 58%, #d89f4b 0%, var(--panel-honey) 55%, #7a5624 100%); 
}
.panel-coldbrew { 
  background: radial-gradient(circle at 72% 58%, #7699ab 0%, var(--panel-coldbrew) 55%, #384e5a 100%); 
}

/* Tazas transparentes — recortadas sobre el panel y posicionadas a la derecha */
.cup {
  position: absolute;
  top: 63%;
  right: -4vw;
  width: min(56vw, 84vh);
  transform: translateY(-50%);
  pointer-events: none;
  filter: 
    drop-shadow(-10px 15px 15px rgba(0, 0, 0, 0.75))
    drop-shadow(-35px 45px 55px rgba(0, 0, 0, 0.55))
    drop-shadow(-70px 85px 110px rgba(0, 0, 0, 0.38));
  transition: opacity 0.3s ease, filter 0.4s ease;
  will-change: transform, opacity;
}

/* Ajustes individuales por cada taza */
.cup-espresso {
  width: min(92vw, 132vh);
  top: 63%;
  right: -5vw;
}

.cup-honey {
  top: 63%;
  right: 6vw;
  width: min(56vw, 84vh);
}

.cup-coldbrew {
  top: 63%;
  right: 6vw;
  width: min(56vw, 84vh);
}

.cup.is-hidden { opacity: 0; }
.cup:not(.is-hidden) { opacity: 1; transition: opacity 0.3s ease; }

/* Indicador de scroll (centro inferior) */
.scroll-cue {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(1.4rem, 3vw, 2.4rem);
  z-index: 2;
  color: var(--beige-bg);
  background: rgba(28, 20, 13, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: all 0.25s ease;
}

.scroll-cue::after {
  content: "↓";
  margin-left: 0.4em;
}

.scroll-cue:hover {
  background: rgba(28, 20, 13, 0.7);
  color: #ffffff;
}

/* ---------- Animación de entrada inicial ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Pantallas pequeñas — menú arriba, texto y taza apilados ---------- */
@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header {
    position: static;
    transform: none;
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    margin-top: clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  }

  .nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .brand {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
  }

  .nav-links a {
    padding: 0.5rem 0.7rem;
  }

  .hero-copy {
    max-width: none;
    width: min(86%, 100%);
    margin-left: clamp(1rem, 6vw, 3rem);
    margin-top: 0;
  }

  /* Los paneles se convierten en rectángulos planos detrás de la taza */
  .cup-stage {
    position: relative;
    inset: auto;
    height: min(42vh, 340px);
  }

  .slide-panel {
    clip-path: none;
  }

  .cup {
    top: 50%;
    right: auto;
    left: 50%;
    width: min(86vw, 420px);
    transform: translate(-50%, -50%);
  }

  .cup-espresso {
    width: min(108vw, 530px);
  }

  .coffee-buy-btn {
    position: static;
    margin: 1.5rem auto 0;
    justify-content: center;
  }
}

/* ==========================================================================
   Sección de Historia y Artesanía
   ========================================================================== */

.paper-texture {
  background-color: #f1e9dd;
  background-image: radial-gradient(ellipse at 50% 15%, #faf5ec 0%, #ece1d1 100%);
  border-top: 1px solid rgba(111, 74, 36, 0.12);
  box-shadow: inset 0 8px 16px -6px rgba(28, 20, 13, 0.04);
}

.story-section {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Eclipses ambientales en las esquinas */
.story-eclipse {
  position: absolute;
  border-radius: 50%;
  background-color: #172419;
  pointer-events: none;
  z-index: 0;
}

.eclipse-top-left {
  top: -85px;
  left: -100px;
  width: clamp(230px, 22vw, 310px);
  height: clamp(230px, 22vw, 310px);
}

.eclipse-bottom-right {
  bottom: -150px;
  right: -110px;
  width: clamp(360px, 32vw, 480px);
  height: clamp(360px, 32vw, 480px);
}

.story-container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  position: relative;
}

.story-visual-col {
  position: relative;
}

.story-photo-frame {
  position: relative;
  aspect-ratio: 1 / 1.08;
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  background-color: #ece1d1;
  border: 1px solid rgba(111, 74, 36, 0.08);
  box-shadow: 
    0 24px 52px -12px rgba(28, 20, 13, 0.16),
    0 6px 16px -4px rgba(28, 20, 13, 0.06);
}

.story-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.story-content-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  color: var(--espresso);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.story-desc {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  color: var(--umber);
  max-width: 48ch;
  margin: 0 0 1.6rem;
  opacity: 0.92;
}

/* Fila de características y pilares */
.story-features {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.5vw, 2rem);
  flex-wrap: wrap;
  padding: 1.2rem 0;
  margin-bottom: 1.8rem;
  border-top: 1px solid rgba(111, 74, 36, 0.16);
  border-bottom: 1px solid rgba(111, 74, 36, 0.16);
}

.icon-feature {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--espresso);
}

.feature-icon svg {
  display: block;
}

.icon-feature .feature-label {
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--espresso);
}

.feature-sep {
  color: var(--umber);
  opacity: 0.35;
  font-size: 1.1rem;
}

.story-cta-row {
  display: flex;
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--espresso);
  text-decoration: none;
}

.story-link .story-link-text {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.story-link .arrow {
  display: inline-block;
  margin-left: 0.2rem;
}

.story-link:hover .arrow {
  transform: translateX(4px);
}

/* Diseño adaptable para la sección de historia */
@media (max-width: 840px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .story-photo-frame {
    aspect-ratio: 16 / 10;
    max-height: 380px;
  }
}

/* ==========================================================================
   Sección de Menú y Productos
   ========================================================================== */
.products-section {
  background-color: var(--beige-bg);
  background-image: url("/assets/images/demos/cafe/bg-topography.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: clamp(3.5rem, 6vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  position: relative;
}

.products-container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
}

/* Encabezado de Sección */
.products-header {
  position: relative;
  text-align: center;
  margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
}

.products-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  color: var(--espresso);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

.products-subtitle {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--umber);
  margin: 0 auto;
  max-width: 48ch;
  line-height: 1.6;
  opacity: 0.88;
}

/* Cuadrícula de Productos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.8rem, 3.5vw, 2.5rem);
}

.product-card {
  border-bottom: 1px solid rgba(111, 74, 36, 0.15);
  padding-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
}

.product-media {
  width: 100%;
  height: clamp(140px, 14vw, 175px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  background: transparent;
  position: relative;
}

.product-img {
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 155px;
  object-fit: contain;
  display: block;
  filter: 
    drop-shadow(0 18px 24px rgba(28, 20, 13, 0.42))
    drop-shadow(0 4px 8px rgba(28, 20, 13, 0.28));
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--espresso);
  margin: 0 0 0.4rem;
  font-weight: 400;
  line-height: 1.2;
}

.product-description {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: #6b5344;
  margin: 0 0 1.4rem;
  flex: 1;
}

.btn-pill-minimal {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--espresso);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  width: fit-content;
  transition: all 0.25s ease;
}

.btn-pill-minimal:hover {
  background-color: var(--espresso);
  color: var(--cream);
  transform: translateY(-1px);
}

/* Diseño adaptable para productos */
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.2rem;
  }
}

@media (max-width: 600px) {
  .products-header {
    text-align: left;
  }
}

/* ==========================================================================
   Sección de Beneficios y The Reserve Jar
   ========================================================================== */
.benefits-section {
  background-color: #faf6f0;
  color: var(--espresso);
  padding: clamp(1.8rem, 3vw, 2.8rem) clamp(1.5rem, 4vw, 3.5rem) clamp(4rem, 6vw, 6rem);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(111, 74, 36, 0.08);
}

.benefits-container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}

/* Encabezado de Sección */
.benefits-header {
  text-align: center;
  margin-bottom: clamp(1.2rem, 2vw, 2rem);
}

.benefits-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  color: var(--espresso);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ==========================================================================
   Radial Grid Layout (The Reserve Jar)
   --------------------------------------------------------------------------
   TÉCNICA DE POSICIONAMIENTO EXPLICADA:
   En lugar de usar 'position: absolute' (que rompe el flujo del documento y
   hace que el responsive sea muy frágil) o 'top/bottom' con relative, usamos
   un CSS Grid de 3 columnas x 3 filas:
   
   1. Columna 2 (Centro) es más ancha: minmax(680px, 3.2fr).
   2. El tarro central abarca las 3 filas: grid-column: 2; grid-row: 1 / span 3;
   3. Los 4 bloques de texto se asignan a sus celdas (grid-column 1 o 3,
      grid-row 1, 2 o 3) y se alinean con align-self / justify-self.
   4. Los márgenes negativos pequeños (-2rem, -5rem, etc.) ciñen el texto a la
      silueta del tarro sin sacarlo del flujo natural de la caja.
   ========================================================================== */
.benefits-radial-grid {
  display: grid;
  grid-template-columns: 1fr minmax(680px, 3.2fr) 1fr;
  grid-template-rows: auto auto auto;
  align-items: center;
  row-gap: clamp(1.4rem, 2.5vw, 2.5rem);
  column-gap: 0.8rem;
  position: relative;
}

/* Slot 1 (Arriba Derecha): Se apoya sobre el hombro derecho del tarro */
.benefit-slot-tr {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  margin-left: -5.5rem;
}

/* Escenario Central: El tarro abarca las 3 filas en la columna del medio */
.benefit-slot-center {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: center;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Slot 2 (Medio Izquierda): Flanco superior izquierdo */
.benefit-slot-ml {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  justify-self: end;
  text-align: right;
  margin-top: -3.5rem;
  margin-right: -2.5rem;
}

.benefit-slot-ml .spec-icon {
  margin-left: auto;
}

/* Slot 3 (Medio Derecha): Abraza el lateral derecho del tarro */
.benefit-slot-mr {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  justify-self: start;
  text-align: left;
  margin-left: -2.5rem;
}

/* Slot 4 (Abajo Izquierda): Se introduce bajo la base del tarro */
.benefit-slot-bl {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  margin-right: -10rem;
}

/* Bloques de especificaciones tipográficas */
.benefit-spec-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 260px;
}

.spec-icon {
  display: inline-flex;
  align-items: center;
  color: var(--caramel);
  margin-bottom: 0.25rem;
}

.spec-icon svg {
  width: 20px;
  height: 20px;
}

.spec-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.35vw, 1.32rem);
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.spec-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #6b5344;
  line-height: 1.5;
  margin: 0;
}

/* Escenario del Producto Central + Disco Verde Botánico de Fondo */
.benefit-product-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.product-backdrop-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(180px, 17vw, 260px);
  height: clamp(180px, 17vw, 260px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(26, 38, 28, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.backdrop-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.benefit-product-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: clamp(780px, 66vw, 1020px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 32px rgba(28, 20, 13, 0.24)) drop-shadow(0 6px 12px rgba(28, 20, 13, 0.14));
}

/* ==========================================================================
   Adaptación Responsive para la Sección de Beneficios
   En pantallas medianas (<980px):
   - El grid pasa a 2 columnas.
   - El tarro toma 'order: -1' y 'grid-column: span 2' para colocarse arriba.
   - Los 4 bloques pasan a una cuadrícula de 2x2 debajo.
   ========================================================================== */
@media (max-width: 980px) {
  .benefits-radial-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 2.2rem;
  }
  .benefit-slot-center {
    grid-column: span 2;
    grid-row: auto;
    order: -1;
    margin-bottom: 1.5rem;
  }
  .benefit-slot-tr,
  .benefit-slot-bl,
  .benefit-slot-mr,
  .benefit-slot-ml {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
    text-align: left;
    justify-self: start;
  }
  .benefit-slot-ml .spec-icon {
    margin-left: 0;
  }
  .benefit-product-hero {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .benefits-radial-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .benefits-header {
    text-align: left;
  }
  .benefit-product-hero {
    max-width: 100%;
  }
}

/* ==========================================================================
   Sección Botánica y Origen
   ========================================================================== */
.botanical-section {
  background-color: #1a261c;
  color: var(--cream);
  padding: clamp(4.5rem, 7vw, 6.8rem) clamp(1.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.botanical-container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
}

/* Encabezado de Sección */
.botanical-header {
  position: relative;
  text-align: center;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.8rem);
}

.botanical-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  color: var(--cream);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.8rem;
}

.botanical-subtitle {
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  color: rgba(246, 239, 228, 0.78);
  margin: 0 auto;
  max-width: 48ch;
  line-height: 1.6;
}

/* Galería Botánica */
.botanical-gallery {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}

.botanical-photo-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background-color: #121a13;
  box-shadow: 0 16px 36px -12px rgba(10, 16, 11, 0.5);
}

.photo-primary {
  aspect-ratio: 16 / 11;
}

.photo-secondary {
  aspect-ratio: 16 / 11;
}

.botanical-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(to top, rgba(16, 26, 18, 0.88) 0%, rgba(16, 26, 18, 0) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.caption-tag {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--cream);
  font-weight: 400;
}

.caption-detail {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #a4bc9b;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .botanical-gallery {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 600px) {
  .botanical-header {
    text-align: left;
  }
}

/* ==========================================================================
   Banner de Cierre y Pie de Página
   ========================================================================== */
.closing-section {
  position: relative;
  background-color: var(--espresso);
  color: var(--cream);
}

/* Banner destacado de cierre */
.closing-banner {
  position: relative;
  background-color: #120c08;
  background-image: linear-gradient(180deg, rgba(14, 9, 6, 0.62) 0%, rgba(14, 9, 6, 0.45) 50%, rgba(14, 9, 6, 0.72) 100%), url('/assets/images/demos/cafe/ending-banner.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: clamp(5.8rem, 10vw, 8.5rem) clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(197, 160, 107, 0.18);
  border-bottom: 1px solid rgba(197, 160, 107, 0.12);
  overflow: hidden;
}

.closing-split-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.closing-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  color: #ffffff;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.closing-right-pane {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.closing-sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  color: rgba(246, 239, 228, 0.88);
  line-height: 1.65;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.split-actions {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.text-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dfb277;
  text-decoration: none;
  border-bottom: 1px solid rgba(223, 178, 119, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.text-link:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.text-link-muted {
  color: rgba(246, 239, 228, 0.6);
  border-color: rgba(246, 239, 228, 0.15);
}

.text-link-muted:hover {
  color: #dfb277;
  border-color: #dfb277;
}

@media (max-width: 860px) {
  .closing-split-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Pie de Página Principal */
.site-footer {
  background-color: #110a06;
  padding: clamp(4rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 4rem) 2.5rem;
}

.footer-container {
  max-width: 1160px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr;
  gap: clamp(2.5rem, 4.5vw, 4.5rem);
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--cream);
  margin: 0 0 0.8rem;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #a89480;
  margin: 0 0 1.2rem;
  max-width: 32ch;
}

.footer-meta-stamp {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--caramel);
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  opacity: 0.85;
}

.footer-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cream);
  font-weight: 600;
  margin: 0 0 1.4rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #a89480;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--cream);
  transform: translateX(3px);
}

.footer-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #a89480;
  margin: 0 0 1rem;
}

.footer-hours {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #a89480;
  margin-bottom: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed rgba(246, 239, 228, 0.08);
}

.footer-hours:last-of-type {
  border-bottom: none;
}

.hours-day {
  color: #8c7865;
}

.hours-time {
  color: var(--cream);
  font-weight: 500;
}

/* Formulario de suscripción al boletín */
.footer-form {
  margin-top: 0.8rem;
}

.footer-input-wrap {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(246, 239, 228, 0.25);
  padding-bottom: 0.4rem;
  transition: border-color 0.25s ease;
}

.footer-input-wrap:focus-within {
  border-color: var(--caramel);
}

.footer-input {
  background: transparent;
  border: none;
  padding: 0.3rem 0;
  color: var(--cream);
  font-size: 0.88rem;
  width: 100%;
  outline: none;
}

.footer-input::placeholder {
  color: #786452;
}

.footer-btn {
  background: transparent;
  color: var(--caramel);
  border: none;
  padding: 0 0.4rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.footer-btn:hover {
  color: var(--cream);
  transform: translateX(3px);
}

/* Barra inferior de derechos de autor */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.2rem;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(246, 239, 228, 0.08);
  font-size: 0.82rem;
  color: #8c7865;
}

.copyright {
  margin: 0;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #a89480;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: var(--cream);
}

/* Reglas adaptables para el pie de página */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ==========================================================================
   Animaciones de Entrada y Revelación al Scroll
   ========================================================================== */

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerEnter {
  0% {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes heroStageEnter {
  0% {
    opacity: 0;
    transform: translateY(35px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  animation: headerEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy .heading {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.hero-copy .sub {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.hero-copy .hero-ctas {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.hero-copy .slider-controls {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

.cup-stage {
  animation: heroStageEnter 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

/* Sistema de revelación al hacer scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: 
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Retardos escalonados de aparición */
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* Modificadores de escala y zoom */
[data-reveal="zoom"] {
  opacity: 0;
  transform: scale(0.92);
  transition: 
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="zoom"].is-revealed {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .hero-copy .heading,
  .hero-copy .sub,
  .hero-copy .hero-ctas,
  .hero-copy .slider-controls,
  .cup-stage,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}






