:root {
  --cafe-osc: #2B1308;
  --cafe: #3E1F0F;
  --dorado: #B8862B;
  --dorado-claro: #E0B04A;
  --crema: #F5E6C8;
  --verde: #566F2C;
  --header-h: 96px;
  /* 1u = 1% del ancho de la referencia (1672px = 16.72px). Tope: 25.6px a 2560px */
  --u: min(1vw, 25.6px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lora", serif;
  color: var(--cafe);
  background: #F0DAB0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--dorado-claro);
  outline-offset: 3px;
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--cafe-osc);
  border-bottom: 3px solid var(--dorado);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 48px;
}

.logo {
  position: absolute;
  left: calc(6.6 * var(--u));
  top: 8px;
  z-index: 60;
  display: block;
}

.logo img {
  height: 125px;
  width: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.nav {
  position: absolute;
  left: calc(27.4 * var(--u));
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: calc(2.8 * var(--u));
}

.nav a {
  position: relative;
  font-family: "Lora", serif;
  font-weight: 500;
  font-size: max(13px, calc(0.96 * var(--u)));
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--crema);
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--dorado-claro);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -4px;
  width: 68px;
  height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 12' fill='none' stroke='%23E0B04A' stroke-width='1.8' stroke-linecap='square' stroke-linejoin='miter'><path d='M 1 1.5 H 31 V 10.5 H 17 V 5.5 H 26 V 8 H 21.5'/><path d='M 67 1.5 H 37 V 10.5 H 51 V 5.5 H 42 V 8 H 46.5'/></svg>");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 232px;
  height: 47px;
  border-radius: 999px;
  background: var(--verde);
  border: 2px solid #7C9A45;
  color: var(--crema);
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-wa:hover {
  background: #67853A;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.burger {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  margin-left: 14px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: center;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--dorado-claro);
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  height: calc(100vh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  max-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(37 * var(--u));
  align-items: start;
  padding: 0 calc(13.9 * var(--u)) 0 calc(9.75 * var(--u));
  background: radial-gradient(ellipse at 30% 25%, #F7E9C8 0%, #F0DAB0 55%, #E8CC9A 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/><feColorMatrix values='0 0 0 0 .55 0 0 0 0 .38 0 0 0 0 .18 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Decoraciones */
.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  height: auto;
}

.d-hojas {
  left: 0;
  top: 0;
  width: calc(11 * var(--u));
  z-index: 1;
}

.d-cacao {
  right: 0;
  top: 0;
  width: calc(15 * var(--u));
  z-index: 4;
}

.d-piramide {
  right: calc(-1.5 * var(--u));
  top: calc(7.5 * var(--u));
  width: calc(34 * var(--u));
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, rgba(0,0,0,0) 95%);
  mask-image: linear-gradient(to bottom, #000 50%, rgba(0,0,0,0) 95%);
}

.d-flor-izq {
  left: calc(-6.5 * var(--u));
  bottom: 4%;
  width: calc(15 * var(--u));
  z-index: 4;
}

.d-flor-der {
  right: calc(-2.7 * var(--u));
  bottom: calc(-1 * var(--u));
  width: calc(16 * var(--u));
  z-index: 6;
}

/* Columna de texto */
.hero__text {
  position: relative;
  z-index: 3;
  padding-top: calc(7.8 * var(--u));
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Lora", serif;
  font-weight: 400;
  font-size: max(0.85rem, calc(1.2 * var(--u)));
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dorado);
}

.eyebrow img {
  width: calc(4.3 * var(--u));
  height: auto;
}

h1 {
  margin-top: 14px;
  font-family: "Playfair Display", serif;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 0.95;
  font-size: max(2.6rem, calc(4.68 * var(--u)));
  color: var(--cafe);
}

.script {
  display: block;
  position: relative;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  letter-spacing: 0;
  font-size: max(3rem, calc(5.4 * var(--u)));
  line-height: 1.1;
  color: #C08A2E;
  transform: rotate(-3deg);
  transform-origin: left;
  margin-top: -0.1em;
  padding-bottom: 0.35em;
  width: max-content;
}

.script::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.08em;
  width: 108%;
  height: 0.3em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 440 30' preserveAspectRatio='none'><path d='M2 22C100 6 260 2 438 10 270 10 110 14 2 26Z' fill='%23B8862B'/></svg>") left / 100% 100% no-repeat;
}

.lead {
  margin-top: calc(1.3 * var(--u));
  max-width: 600px;
  font-family: "Lora", serif;
  font-weight: 400;
  font-size: max(1rem, calc(1.2 * var(--u)));
  line-height: 1.25;
  color: var(--cafe);
}

.cta {
  display: flex;
  gap: 22px;
  margin-top: calc(1.7 * var(--u));
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: max(48px, calc(3.23 * var(--u)));
  padding: 0 max(20px, calc(1.9 * var(--u)));
  border-radius: 8px;
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: max(0.85rem, calc(1.02 * var(--u)));
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.btn--primary {
  background: linear-gradient(180deg, #4A2410 0%, #2B1308 100%);
  border: 2px solid var(--dorado);
  color: var(--crema);
  min-width: calc(15 * var(--u));
}

.btn--primary:hover {
  background: linear-gradient(180deg, #5A2D14 0%, #3A1D0D 100%);
  box-shadow: 0 6px 18px rgba(184, 134, 43, 0.45);
}

.btn--primary svg {
  transition: transform 0.25s;
}

.btn--primary:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  background: transparent;
  border: 2px solid var(--cafe);
  color: var(--cafe);
  min-width: calc(15.8 * var(--u));
}

.btn--ghost:hover {
  background: rgba(62, 31, 15, 0.08);
}

.play {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cafe);
  flex-shrink: 0;
}

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 12px;
  margin-top: calc(2.4 * var(--u));
}

.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Lora", serif;
  font-weight: 400;
  font-size: max(0.8rem, calc(0.96 * var(--u)));
  color: var(--cafe);
  padding: 0 24px;
  border-left: 1px solid var(--dorado);
}

.trust li:first-child {
  padding-left: 0;
  border-left: 0;
}

.trust img {
  height: max(26px, calc(2 * var(--u)));
  width: auto;
}

/* Arco */
.arch {
  position: relative;
  z-index: 2;
  margin-top: calc(3.4 * var(--u));
  width: calc(37 * var(--u));
  aspect-ratio: 620 / 708;

  /* Curva inferior izquierda (ajustable) */
  --arch-bl-x: 20%;     /* ancho de la curva, en % del ancho del arco */
  --arch-bl-y: 17.5%;   /* alto de la curva, en % del alto del arco */
}

.arch__shadow {
  position: absolute;
  inset: 14px -12px 0 12px;
  border-radius: 50% 50% 0 var(--arch-bl-x) / 43.8% 43.8% 0 var(--arch-bl-y);
  background: #3A1D0D;
}

.arch__frame {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 0 var(--arch-bl-x) / 43.8% 43.8% 0 var(--arch-bl-y);
  border: 5px solid var(--dorado);
  box-shadow: inset 0 0 0 1px rgba(255, 245, 220, 0.35);
  overflow: hidden;
  background: #D9BF8F;
}

.arch__track {
  display: flex;
  height: 100%;
  list-style: none;
  will-change: transform;
}

.arch__track li {
  flex: 0 0 100%;
  height: 100%;
}

.arch__track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.d-flor-arco {
  left: -6%;
  bottom: -1%;
  width: 56%;
  z-index: 5;
}

/* Controles */
.controls {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.controls > * {
  pointer-events: auto;
}

.dots {
  position: absolute;
  left: 50%;
  bottom: max(32px, calc(3.6 * var(--u)));
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 35;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background: var(--cafe-osc);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.3s, background 0.3s;
}

.dot.active {
  width: 42px;
  border-radius: 8px;
  background: #A8782A;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 10px rgba(168, 120, 42, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.scroll {
  position: absolute;
  left: calc(3.5 * var(--u));
  bottom: 9%;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Lora", serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dorado);
  transition: opacity 0.2s, transform 0.2s;
}

.scroll:hover {
  transform: translateY(-2px);
  color: var(--dorado-claro);
}

/* ---------- POSICIONES Y TAMAÑOS HERO (ESCRITORIO ≥901px) ---------- */
@media (min-width: 901px) {
  .arch {
    width: calc(31.936 * var(--u));
    left: calc(1.567 * var(--u));
    right: auto;
    top: calc(0.98 * var(--u));
    bottom: auto;
  }

  .d-cacao {
    right: calc(-3.527 * var(--u));
    left: auto;
    top: calc(-2.155 * var(--u));
    bottom: auto;
  }

  .d-hojas {
    left: calc(-1.567 * var(--u));
    right: auto;
    top: calc(-0.588 * var(--u));
    bottom: auto;
  }

  .d-piramide {
    right: calc(-1.097 * var(--u));
    left: auto;
    top: calc(7.876 * var(--u));
    bottom: auto;
  }

  .d-flor-izq {
    width: calc(13.166 * var(--u));
    left: calc(-3.762 * var(--u));
    right: auto;
    bottom: calc(0.078 * var(--u));
    top: auto;
  }

  .d-flor-der {
    right: calc(-2.508 * var(--u));
    left: auto;
    bottom: calc(0.157 * var(--u));
    top: auto;
  }

  .d-flor-arco {
    left: calc(-4.702 * var(--u));
    right: auto;
    bottom: calc(-3.135 * var(--u));
    top: auto;
  }

  .hero__text {
    top: calc(0 * var(--u));
    bottom: auto;
  }

  .lead {
    position: relative;
    top: calc(-0.196 * var(--u));
    bottom: auto;
    font-size: calc(1.058 * var(--u));
    max-width: calc(35.972 * var(--u));
  }

  .cta {
    position: relative;
    left: calc(0 * var(--u));
    right: auto;
    top: calc(-0.98 * var(--u));
    bottom: auto;
  }

  .trust {
    position: relative;
    top: calc(-2.155 * var(--u));
    bottom: auto;
  }
}

/* ---------- RESPONSIVIDAD ---------- */
@media (max-width: 1100px) {
  .burger {
    display: flex;
  }
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cafe-osc);
    border-bottom: 3px solid var(--dorado);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav.open {
    max-height: 420px;
  }
  .nav a {
    padding: 0 7vw;
    line-height: 56px;
    border-top: 1px solid rgba(224, 176, 74, 0.18);
    font-size: 15px;
  }
  .nav a.active::after {
    display: none;
  }
  .header {
    padding-right: 20px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }
  .logo {
    left: 16px;
    top: 6px;
  }
  .logo img {
    height: 84px;
  }
  .hero {
    min-height: 0;
    display: block;
    padding: 0 24px 48px;
  }
  .hero__text {
    padding-top: 44px;
  }
  .eyebrow {
    font-size: 0.85rem;
    letter-spacing: 2px;
  }
  h1 {
    font-size: clamp(2.3rem, 8vw, 3.4rem);
  }
  .script {
    font-size: clamp(2.7rem, 10vw, 4rem);
  }
  .lead {
    font-size: 1.05rem;
    margin-top: 16px;
  }
  .cta {
    flex-direction: column;
    margin-top: 22px;
    max-width: 360px;
  }
  .btn {
    width: 100%;
    height: 54px;
    font-size: 0.95rem;
  }
  .btn--primary, .btn--ghost {
    min-width: 0;
  }
  .trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 26px;
  }
  .trust li {
    border: 0;
    padding: 0;
    font-size: 1rem;
  }
  .arch {
    width: min(86vw, 440px);
    margin: 36px auto 0;
  }
  .controls {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
  }
  .dots {
    position: static;
    transform: none;
  }
  .scroll {
    display: none;
  }
  .d-hojas {
    width: 22vw;
  }
  .d-cacao {
    width: 30vw;
  }
  .d-piramide {
    width: 50vw;
    opacity: 0.35;
    top: 46%;
  }
  .d-flor-izq {
    width: 30vw;
    left: -8vw;
    bottom: 2%;
  }
  .d-flor-der {
    width: 34vw;
    right: -6vw;
  }
}

@media (max-width: 560px) {
  .btn-wa {
    width: 48px;
    height: 48px;
    padding: 0;
  }
  .btn-wa span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ===================== SECCIÓN PRODUCTOS ===================== */
:root {
  --precio: #D4145A;
  --oro: #D4A03A;
  --tarjeta: #FCF4E2;
  --borde-tarjeta: #D9B66A;
  --footer: #3A1B0C;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.productos {
  position: relative;
  z-index: 1;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) - 20px);
  padding: calc(1.6 * var(--u)) max(24px, calc(10 * var(--u))) calc(1.8 * var(--u));
  background: radial-gradient(ellipse at 50% 20%, #F7E9C8 0%, #F2DDB0 60%, #E8CC9A 100%);
}

/* Textura de ruido (igual que el hero) */
.productos::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .3;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/><feColorMatrix values='0 0 0 0 .55 0 0 0 0 .38 0 0 0 0 .18 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Borde superior de papel rasgado */
.productos::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22px;
  z-index: 1;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 22' preserveAspectRatio='none'><polygon fill='%23E4C98F' points='0,0 1600,0 1600,12 1560,16 1510,11 1465,17 1410,12 1360,18 1300,13 1255,17 1200,11 1150,16 1090,12 1040,18 985,13 930,17 880,11 820,16 770,12 710,18 655,13 600,17 545,11 490,16 430,12 375,18 320,13 262,17 205,11 150,16 95,12 45,17 0,12'/></svg>") center top/100% 100% no-repeat;
  filter: drop-shadow(0 2px 2px rgba(120, 80, 30, .25));
}

.productos__inner {
  position: relative;
  z-index: 2;
  max-width: calc(80 * var(--u));
  margin: 0 auto;
  text-align: center;
}

/* Decoraciones (usa .deco del hero: position:absolute; pointer-events:none; height:auto) */
.d-prod-hojas {
  left: 0;
  top: 0;
  width: calc(9.2 * var(--u));
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.d-prod-cacao {
  right: 0;
  top: 0;
  width: calc(10.8 * var(--u));
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

/* Cabecera */
.productos__titulo {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: .95;
  font-size: max(2.1rem, calc(3.9 * var(--u)));
  color: var(--cafe);
}

.pre-titulo {
  display: block;
  width: max-content;
  margin: 0 auto -.28em;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  letter-spacing: 0;
  font-size: max(2.8rem, calc(4.3 * var(--u)));
  line-height: 1;
  color: #C08A2E;
  transform: rotate(-2deg);
}

.orn {
  display: block;
  width: calc(21.5 * var(--u));
  min-width: 220px;
  max-width: 90%;
  height: auto;
  margin: calc(.6 * var(--u)) auto 0;
}

.productos__sub {
  margin-top: calc(.5 * var(--u));
  font-size: max(1rem, calc(1.25 * var(--u)));
  line-height: 1.3;
  color: var(--cafe);
}

/* Filtros */
.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(.95 * var(--u));
  margin-top: var(--u);
}

.filtro {
  min-width: calc(9.5 * var(--u));
  height: max(44px, calc(2.75 * var(--u)));
  padding: 0 calc(1.8 * var(--u));
  border-radius: 999px;
  border: 2px solid var(--cafe);
  background: transparent;
  color: var(--cafe);
  cursor: pointer;
  font-family: "Lora", serif;
  font-weight: 500;
  font-size: max(.8rem, calc(.95 * var(--u)));
  letter-spacing: .3px;
  text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}

.filtro:hover {
  background: linear-gradient(180deg, #E3B550, #C99530);
  border-color: var(--dorado);
  color: var(--cafe);
}

.filtro[aria-pressed="true"] {
  background: linear-gradient(180deg, #4A2410, #2B1308);
  border-color: var(--dorado);
  color: var(--crema);
  box-shadow: 0 4px 10px rgba(43, 19, 8, .4);
}

/* Cuadrícula 4 × 2 */
.grid {
  --gap: calc(1.25 * var(--u));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(1.3 * var(--u)) var(--gap);
  margin-top: calc(2.2 * var(--u));
}

.card {
  flex: 0 0 calc((100% - 3 * var(--gap) - 1px) / 4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(.85 * var(--u)) calc(1.1 * var(--u)) calc(1.25 * var(--u));
  background: var(--tarjeta);
  border: 1.5px solid var(--borde-tarjeta);
  border-radius: 6px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.card[hidden] {
  display: none !important;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px) scale(1.015);
  border-color: var(--oro);
  box-shadow: 0 0 0 2px var(--oro), 0 12px 26px rgba(184, 134, 43, .32);
}

.card--in {
  animation: cardIn .35s ease both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
}

.card__nombre {
  margin-top: calc(.75 * var(--u));
  font-family: "Lora", serif;
  font-weight: 700;
  font-size: max(1rem, calc(1.1 * var(--u)));
  line-height: 1.2;
  color: var(--cafe-osc);
}

.card__desc {
  margin-top: calc(.25 * var(--u));
  font-size: max(.82rem, calc(.88 * var(--u)));
  line-height: 1.3;
  color: #5C3B24;
}

.card__precio {
  margin: calc(.5 * var(--u)) 0 calc(.7 * var(--u));
  font-weight: 700;
  font-size: max(1.1rem, calc(1.32 * var(--u)));
  letter-spacing: .5px;
  color: var(--precio);
}

/* Botón PEDIR (WhatsApp) */
.btn-pedir {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(10.8 * var(--u));
  min-width: 150px;
  max-width: 100%;
  height: max(40px, calc(2.27 * var(--u)));
  border-radius: 999px;
  background: linear-gradient(180deg, #4A2410, #2B1308);
  border: 1px solid rgba(224, 176, 74, .4);
  color: var(--crema);
  font-weight: 600;
  font-size: max(.8rem, calc(.9 * var(--u)));
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}

.btn-pedir svg {
  width: 22px;
  height: 22px;
  fill: var(--dorado-claro);
  transition: fill .25s;
}

.card:hover .btn-pedir,
.card:focus-within .btn-pedir,
.btn-pedir:hover {
  background: linear-gradient(180deg, #E0B04A, #B8862B);
  color: var(--cafe-osc);
  border-color: #8F6A1F;
  box-shadow: 0 4px 10px rgba(184, 134, 43, .45);
}

.card:hover .btn-pedir svg,
.card:focus-within .btn-pedir svg,
.btn-pedir:hover svg {
  fill: var(--cafe-osc);
}

/* Botón Ver todo el catálogo */
.btn-catalogo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: calc(2 * var(--u));
  width: calc(19.5 * var(--u));
  min-width: 290px;
  height: max(52px, calc(3.23 * var(--u)));
  border-radius: 999px;
  background: linear-gradient(180deg, #5E7B30, #4A6224);
  border: 2px solid #7C9A45;
  color: var(--crema);
  font-weight: 600;
  font-size: max(.9rem, calc(1.02 * var(--u)));
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
  transition: transform .2s, background .2s;
}

.btn-catalogo:hover {
  background: linear-gradient(180deg, #67853A, #567029);
  transform: translateY(-2px);
}

.btn-catalogo svg {
  transition: transform .25s;
}

.btn-catalogo:hover svg {
  transform: translateX(4px);
}

/* Pie de página */
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: calc(1.4 * var(--u)) calc(7.3 * var(--u));
  background: var(--footer);
  color: var(--crema);
}

.footer__texto {
  font-size: max(.75rem, 13px);
  line-height: 1.4;
  text-align: center;
}

.footer__redes {
  list-style: none;
  display: flex;
  gap: calc(1.25 * var(--u));
  justify-self: end;
}

.footer__redes a {
  display: block;
  color: var(--oro);
  transition: color .2s;
}

.footer__redes a:hover {
  color: var(--dorado-claro);
}

.footer__redes svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .card {
    flex-basis: calc((100% - 2 * var(--gap) - 1px) / 3);
  }
  .d-prod-hojas {
    width: calc(7.4 * var(--u));
  }
  .d-prod-cacao {
    width: calc(8.6 * var(--u));
  }
}

@media (max-width: 900px) {
  .productos {
    padding: 36px 24px 40px;
  }
  .pre-titulo {
    font-size: clamp(2.4rem, 9vw, 3.4rem);
  }
  .productos__titulo {
    font-size: clamp(2rem, 7.5vw, 3rem);
  }
  .productos__sub {
    font-size: 1rem;
  }
  .grid {
    --gap: 16px;
    gap: 16px;
    margin-top: 28px;
  }
  .card {
    flex-basis: calc((100% - var(--gap) - 1px) / 2);
    padding: 14px 14px 18px;
  }
  .card__nombre {
    font-size: 1.05rem;
  }
  .card__desc {
    font-size: .85rem;
  }
  .card__precio {
    font-size: 1.2rem;
  }
  .btn-pedir {
    width: 100%;
    min-width: 0;
    height: 44px;
    font-size: .85rem;
  }
  .btn-catalogo {
    margin-top: 28px;
  }
  .d-prod-hojas {
    width: 20vw;
  }
  .d-prod-cacao {
    width: 22vw;
  }
  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 24px;
    text-align: center;
  }
  .footer__redes {
    justify-self: center;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .card {
    flex-basis: 100%;
    max-width: 360px;
  }
  .btn-catalogo {
    width: 100%;
    max-width: 360px;
    min-width: 0;
  }
  .d-prod-hojas,
  .d-prod-cacao {
    width: 16vw;
    opacity: .85;
  }
}

/* ===================== PRELOADER & SCROLL PROGRESS ===================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #3E1F0F 0%, #2B1308 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.65s ease;
  pointer-events: auto;
}

.preloader.preloader--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.preloader__logo {
  width: clamp(110px, 16vw, 150px);
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 16px rgba(224, 176, 74, 0.35));
  animation: preloaderLogoPulse 2.2s ease-in-out infinite;
  will-change: transform, filter;
}

@keyframes preloaderLogoPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 14px rgba(224, 176, 74, 0.3));
  }
  50% {
    transform: scale(1.045);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 24px rgba(224, 176, 74, 0.65));
  }
}

.preloader__bar {
  width: 160px;
  height: 3px;
  background: rgba(224, 176, 74, 0.2);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.preloader__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, #B8862B, #E0B04A, #B8862B);
  animation: preloaderBar 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

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

/* Barra de progreso de lectura superior */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 10000;
  background: linear-gradient(90deg, var(--dorado), var(--dorado-claro), var(--precio));
  box-shadow: 0 0 8px rgba(224, 176, 74, 0.6);
  pointer-events: none;
  transition: width 0.1s ease-out;
}

/* ===================== ANIMACIONES DE CARGA (ENTRADA HERO) ===================== */
.page-loaded .header {
  animation: headerDrop 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

.page-loaded .hero__text .eyebrow {
  animation: heroFadeUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

.page-loaded .hero__text h1 {
  animation: heroFadeUp 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.28s both;
}

.page-loaded .hero__text .lead {
  animation: heroFadeUp 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.42s both;
}

.page-loaded .hero__text .cta {
  animation: heroFadeUp 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s both;
}

.page-loaded .hero__text .trust {
  animation: heroFadeUp 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.68s both;
}

.page-loaded .arch {
  animation: archEntrance 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
}

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

@keyframes archEntrance {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===================== REVELADO AL DESPLAZARSE (SCROLL REVEAL) ===================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== ANIMACIONES DE VIENTO EN DETALLES ===================== */
/* hero-detalles-01: Mazorcas de cacao arriba derecha */
.d-cacao {
  transform-origin: 85% 0%;
  animation: windBreezeTopRight 7.2s ease-in-out infinite;
  will-change: transform;
}

@keyframes windBreezeTopRight {
  0%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  25% {
    transform: rotate(1.4deg) translate(-2px, 3px);
  }
  50% {
    transform: rotate(-0.8deg) translate(2px, 1px);
  }
  75% {
    transform: rotate(1.2deg) translate(-1px, 2px);
  }
}

/* hero-detalles-02: Flor izquierda abajo */
.d-flor-izq {
  transform-origin: 15% 90%;
  animation: windBreezeBottomLeft 6.8s ease-in-out infinite -2.1s;
  will-change: transform;
}

@keyframes windBreezeBottomLeft {
  0%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  30% {
    transform: rotate(-2deg) translate(3px, -2px);
  }
  60% {
    transform: rotate(1.8deg) translate(-2px, 1px);
  }
  85% {
    transform: rotate(-1deg) translate(2px, -1px);
  }
}

/* hero-detalles-03: Flor derecha abajo */
.d-flor-der {
  transform-origin: 85% 90%;
  animation: windBreezeBottomRight 7.8s ease-in-out infinite -4.5s;
  will-change: transform;
}

@keyframes windBreezeBottomRight {
  0%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  28% {
    transform: rotate(1.8deg) translate(-3px, -2px);
  }
  58% {
    transform: rotate(-1.5deg) translate(2px, 1px);
  }
  82% {
    transform: rotate(1.1deg) translate(-1px, -1px);
  }
}

/* hero-detalles-04: Hojas verdes arriba izquierda */
.d-hojas {
  transform-origin: 10% 5%;
  animation: windBreezeTopLeft 6.4s ease-in-out infinite -1.3s;
  will-change: transform;
}

@keyframes windBreezeTopLeft {
  0%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  32% {
    transform: rotate(-2.1deg) translate(3px, 3px);
  }
  64% {
    transform: rotate(1.5deg) translate(-2px, 1px);
  }
  88% {
    transform: rotate(-1.2deg) translate(1px, 2px);
  }
}

/* hero-detalles-05: Flor en el arco */
.d-flor-arco {
  transform-origin: 20% 85%;
  animation: windBreezeArco 5.8s ease-in-out infinite -3.2s;
  will-change: transform;
}

@keyframes windBreezeArco {
  0%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  33% {
    transform: rotate(-1.6deg) translate(2px, -2px);
  }
  66% {
    transform: rotate(1.4deg) translate(-2px, 1px);
  }
}

/* producto-detalles-01: Hojas en sección productos */
.d-prod-hojas {
  transform-origin: 10% 5%;
  animation: windBreezeProdHojas 6.6s ease-in-out infinite -1.7s;
  will-change: transform;
}

@keyframes windBreezeProdHojas {
  0%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  30% {
    transform: rotate(-1.9deg) translate(3px, 2px);
  }
  65% {
    transform: rotate(1.4deg) translate(-2px, 1px);
  }
  85% {
    transform: rotate(-0.9deg) translate(1px, 2px);
  }
}

/* producto-detalles-02: Cacao en sección productos */
.d-prod-cacao {
  transform-origin: 90% 5%;
  animation: windBreezeProdCacao 7.5s ease-in-out infinite -4.1s;
  will-change: transform;
}

@keyframes windBreezeProdCacao {
  0%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  26% {
    transform: rotate(1.5deg) translate(-2px, 3px);
  }
  55% {
    transform: rotate(-1.2deg) translate(2px, 1px);
  }
  80% {
    transform: rotate(1deg) translate(-1px, 2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card:hover,
  .card:focus-within {
    transform: none;
  }
  .card--in {
    animation: none;
  }
  .preloader {
    display: none !important;
  }
  .scroll-progress {
    display: none !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .d-cacao,
  .d-flor-izq,
  .d-flor-der,
  .d-hojas,
  .d-flor-arco,
  .d-prod-hojas,
  .d-prod-cacao {
    animation: none !important;
    transform: none !important;
  }
}




