/* ═══════════════════════════════════════════════
   EVE CREATION — Sistema de diseño "Verde Eve 2.0"
   Lienzo hueso + lima eléctrico como acento de marca.
   Dirección: artesanal × limpio × confiable.
   ═══════════════════════════════════════════════ */

:root {
  /* ── Color ── */
  --lima-1: #B5FF42;         /* acento de marca */
  --lima-2: #DEEB4B;
  --lima-suave: #d3f95e;
  --verde-oscuro: #567d00;
  --hueso: #F7F8EE;          /* lienzo principal */
  --hueso-2: #EFF1E0;        /* paneles sutiles */
  --tinta: #14170F;          /* casi negro verdoso */
  --tinta-suave: #4A5138;    /* texto secundario */
  --blanco: #FFFFFF;
  --borde: rgba(20, 23, 15, .12);

  /* ── Sombras (escala suave sobre lienzo claro) ── */
  --sombra-suave: 0 1px 2px rgba(23, 28, 12, .05), 0 10px 30px rgba(23, 28, 12, .09);
  --sombra: 0 2px 6px rgba(23, 28, 12, .07), 0 20px 50px rgba(23, 28, 12, .16);
  --sombra-fuerte: 0 30px 70px rgba(23, 28, 12, .22);
  --sombra-wa: 0 12px 30px rgba(16, 140, 70, .35);

  /* ── Forma ── */
  --radio: 22px;
  --radio-grande: 34px;

  /* ── Tipografía ── */
  --fuente-titulo: 'Anton', 'Arial Black', sans-serif;
  --fuente-texto: 'Poppins', 'Segoe UI', sans-serif;

  /* ── Micro-etiqueta (mono-look con Poppins) ── */
  --etiqueta: .72rem/1.4 var(--fuente-texto);
}

/* ══════════ FUENTES PROPIAS (auto-hospedadas, sin Google) ══════════ */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/anton-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/poppins-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/poppins-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/poppins-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/poppins-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente-texto);
  color: var(--tinta);
  min-height: 100vh;
  overflow-x: hidden;
  /* Lienzo hueso con un respiro de lima arriba (estela del panel héroe) */
  background:
    radial-gradient(ellipse 80% 46% at 50% -8%, rgba(181, 255, 66, .28), transparent 62%),
    var(--hueso);
  background-attachment: fixed;
}

/* Textura de polígonos: susurro de la identidad artesanal */
.fondo-poligonos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('../assets/bg-poligonos.svg') repeat;
  background-size: 720px 720px;
  opacity: .28;
}

header, main, footer, #wa-flotante { position: relative; z-index: 1; }

/* SVG de utilería (símbolos reutilizables): fuera del flujo.
   Con clase y no con style= porque el CSP bloquea los estilos en línea */
.svg-oculto { display: none; }

::selection { background: var(--tinta); color: var(--lima-1); }

/* ══════════ CABECERA (barra lima de marca, fija al hacer scroll) ══════════ */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 60px);
  /* Mismo degradado del panel PERSONALIZADOS, en toda la barra */
  background: linear-gradient(135deg, var(--lima-1) 0%, #c8f44a 45%, var(--lima-2) 100%);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
/* Textura de polígonos en la barra (identidad) */
.cabecera::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/bg-poligonos.svg') repeat;
  background-size: 720px 720px;
  opacity: .18;
  pointer-events: none;
}
.cabecera > * { position: relative; z-index: 1; }

/* Al bajar: sombra sutil que despega la barra del contenido */
.cabecera.compacta {
  border-bottom-color: rgba(20, 23, 15, .12);
  box-shadow: 0 10px 30px rgba(23, 28, 12, .12);
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tinta); }

.logo-caja {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  transition: transform .3s ease;
}
.logo-caja img { display: block; width: 44px; height: 44px; }
.logo:hover .logo-caja { transform: rotate(-6deg) scale(1.06); }

.logo-texto { font-family: var(--fuente-titulo); font-size: 1.15rem; letter-spacing: 2.5px; }
.logo-texto b {
  color: transparent;                    /* sin verde: solo el contorno */
  -webkit-text-stroke: 1px var(--tinta);
}

.navegacion { display: flex; align-items: center; gap: 10px; }

.nav-pill {
  text-decoration: none;
  color: var(--tinta);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}
.nav-pill:hover { background: rgba(20, 23, 15, .07); }
.nav-pill.activa { background: var(--tinta); color: var(--lima-1); box-shadow: var(--sombra-suave); }

.nav-caja {
  display: grid;
  place-items: center;
  width: 46px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: var(--tinta);
  color: var(--lima-1);
  cursor: pointer;
  box-shadow: var(--sombra);
  transition: transform .3s ease;
}
.nav-caja:hover { transform: scale(1.08) rotate(4deg); }

/* ══════════ HERO — panel lima de marca (bloque de color) ══════════ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(34px, 5vw, 72px) clamp(26px, 5vw, 64px);
  max-width: 1400px;
  margin: 18px auto 0;
  border-radius: clamp(22px, 3vw, 40px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 68% 18%, rgba(255, 255, 255, .34), transparent 60%),
    linear-gradient(135deg, var(--lima-1) 0%, #c8f44a 45%, var(--lima-2) 100%);
  box-shadow: var(--sombra);
}
/* Textura de polígonos dentro del panel (identidad artesanal) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/bg-poligonos.svg') repeat;
  background-size: 720px 720px;
  opacity: .22;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

/* Entrada escalonada al cargar (elegante, una sola vez) */
@keyframes entrada-arriba {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-texto > * { animation: entrada-arriba .8s cubic-bezier(.2, .8, .3, 1) both; }
.hero-texto > *:nth-child(1) { animation-delay: .05s; }
.hero-texto > *:nth-child(2) { animation-delay: .14s; }
.hero-texto > *:nth-child(3) { animation-delay: .23s; }
.hero-texto > *:nth-child(4) { animation-delay: .32s; }
.hero-tarjetas { animation: entrada-arriba .8s cubic-bezier(.2, .8, .3, 1) .4s both; }

.hero-texto { max-width: 640px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(20, 23, 15, .1);
}
/* Puntito de brillo de la etiqueta */
.hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tinta);
  box-shadow: 0 0 0 3px rgba(20, 23, 15, .12);
}

.hero-titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(2.7rem, 6.6vw, 5.6rem);
  line-height: .98;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
}

.hero-titulo .linea-solid { color: var(--tinta); }

/* Línea central con borde negro fino: gesto de marca */
.hero-titulo .linea-suave {
  color: transparent;
  -webkit-text-stroke: 2px var(--tinta);
  opacity: .92;
  margin-left: clamp(20px, 4vw, 70px);
}

.hero-sub {
  margin-top: 22px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--tinta-suave);
  max-width: 440px;
  line-height: 1.7;
}

.hero-botones { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* Ángel de partículas (derecha del panel, sin pegarse al borde) */
.hero-angel {
  flex: 0 0 auto;
  width: clamp(300px, 34vw, 500px);
  aspect-ratio: 760 / 1076;
  align-self: center;
  margin-right: clamp(0px, 7vw, 120px); /* lo acerca un poco al centro */
  animation: entrada-arriba .9s cubic-bezier(.2, .8, .3, 1) .45s both;
}
#angel-particulas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: pan-y; /* el celular sigue pudiendo bajar la página */
  outline-offset: 4px;
}
.angel-estatico { display: block; width: 100%; height: 100%; object-fit: contain; }

.btn {
  position: relative; /* ancla el destello */
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fuente-titulo);
  font-size: .92rem;
  letter-spacing: 2px;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  border: none;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }

/* Destello que barre los botones al pasar el mouse */
.btn::after,
.ctrl::after,
.modal-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%;
  background-position: 100% 0;
  pointer-events: none;
}
.btn:hover::after,
.ctrl:hover::after { animation: destello .85s ease; }

.btn-oscuro { background: var(--tinta); color: var(--lima-1); box-shadow: 0 14px 34px rgba(23, 28, 12, .3); }
.btn-oscuro:hover { box-shadow: 0 22px 50px rgba(23, 28, 12, .38); }

.btn-borde { background: transparent; color: var(--tinta); border: 2px solid rgba(20, 23, 15, .75); }
.btn-borde:hover { background: rgba(20, 23, 15, .08); border-color: var(--tinta); }

.btn-claro { background: var(--lima-1); color: var(--tinta); box-shadow: var(--sombra); }
.btn-whatsapp { background: #22c15e; color: #fff; box-shadow: var(--sombra-wa); }
.btn-whatsapp:hover { background: #1ba850; }

/* Tarjetas de estadísticas (abajo a la derecha del panel, como chispa final) */
.hero-tarjetas {
  position: absolute;
  right: clamp(18px, 2.6vw, 36px);
  bottom: clamp(14px, 2.2vw, 26px);
  display: grid;                       /* las dos tarjetas del mismo tamaño */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tarjeta-stat {
  border-radius: var(--radio);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;              /* las dos tarjetas con la misma altura */
  transition: transform .3s ease, box-shadow .3s ease;
}
.tarjeta-stat:hover { transform: translateY(-5px) rotate(-1.5deg); }
.tarjeta-stat small { font-size: .62rem; font-weight: 600; letter-spacing: 1px; opacity: .75; }
.tarjeta-stat strong { font-family: var(--fuente-titulo); font-size: 1.45rem; line-height: 1.1; }
.tarjeta-stat span { font-size: .58rem; font-weight: 700; letter-spacing: 2px; }

.tarjeta-oscura { background: var(--tinta); color: var(--blanco); box-shadow: 0 18px 40px rgba(23, 28, 12, .3); align-self: flex-end; }
.tarjeta-oscura strong { color: var(--lima-1); }

.tarjeta-clara { background: var(--blanco); color: var(--tinta); box-shadow: var(--sombra-suave); align-self: flex-start; }
.tarjeta-clara svg { color: var(--verde-oscuro); }

/* ══════════ CABECERA DE SECCIÓN (etiqueta + título + bajada) ══════════ */
.seccion-cabecera {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(26px, 4vw, 44px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--tinta);
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--blanco);
  box-shadow: var(--sombra-suave);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lima-1);
  box-shadow: 0 0 0 3px rgba(181, 255, 66, .25);
}
.seccion-titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  letter-spacing: 1px;
  line-height: 1.05;
  margin: 16px 0 10px;
}
.seccion-sub {
  font-size: .92rem;
  font-weight: 500;
  color: var(--tinta-suave);
  line-height: 1.7;
}

/* ══════════ SECCIÓN CARRUSEL ══════════ */
.seccion-productos {
  padding: clamp(30px, 5vw, 70px) 20px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.carrusel-zona {
  position: relative; /* ancla las flechas a los costados */
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio-grande);
  padding: clamp(24px, 4vw, 50px) clamp(10px, 3vw, 40px) 30px;
  box-shadow: var(--sombra);
}

/* ───── CoverFlow ───── */
.coverflow {
  position: relative;
  height: clamp(320px, 46vw, 470px);
  perspective: 1400px;
  outline: none;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.coverflow.arrastrando { cursor: grabbing; }

.coverflow figure {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(190px, 24vw, 280px);
  margin: 0;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.25, .9, .3, 1.15), opacity .45s ease, filter .45s ease;
  will-change: transform;
}

.coverflow figure figcaption { display: none; }

/* Imagen del producto: marco blanco estilo foto impresa */
.coverflow .marco {
  position: relative; /* ancla el destello de luz */
  display: block;
  background: var(--blanco);
  border-radius: 18px;
  padding: 10px 10px 16px;
  box-shadow: 0 16px 38px rgba(23, 28, 12, .22);
  transition: box-shadow .4s ease;
}

/* Brillo estilo "destello": una franja de luz diagonal barre la
   tarjeta al pasar el mouse o al hacer clic (como una foto pulida) */
.coverflow .marco::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%;
  background-position: 100% 0;
  pointer-events: none;
}
@keyframes destello {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}
.coverflow figure:hover .marco::after,
.coverflow figure.destello .marco::after { animation: destello .85s ease; }

/* Haz de luz que RECORRE LOS BORDES de la tarjeta central (estilo
   spinner de Pinterest): un cometa dorado-lima circula el contorno */
@property --angulo-beam {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.coverflow figure.activo .marco::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 21px;
  padding: 3px;
  background: conic-gradient(
    from var(--angulo-beam),
    transparent 0turn .62turn,
    rgba(255, 215, 106, .25) .7turn,
    #ffd76a .8turn,
    #fffbe6 .87turn,
    #b5ff42 .94turn,
    transparent 1turn
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: girar-beam 4.5s linear infinite;
  pointer-events: none;
}
@keyframes girar-beam { to { --angulo-beam: 360deg; } }

.coverflow img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: 12px;
  pointer-events: none;
}

/* El reflejo 3D solo en pantallas grandes: en celulares económicos
   consume muchos recursos y casi no se aprecia */
@media (min-width: 1024px) {
  .coverflow img {
    /* Reflejo bajo la tarjeta (navegadores Chromium/Safari) */
    -webkit-box-reflect: below 14px linear-gradient(transparent 62%, rgba(0, 0, 0, .18));
  }
}

.coverflow figure.activo { cursor: pointer; }
.coverflow figure.activo .marco { box-shadow: 0 28px 56px rgba(23, 28, 12, .3); }
.coverflow figure.no-activo { filter: brightness(.97); }

/* Controles */
.carrusel-controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 34px;
}

/* Flechas fijas a los costados del carrusel: siempre en la misma
   posición, sin importar qué tan largo sea el nombre del producto */
.ctrl {
  position: absolute;
  z-index: 120; /* por encima de las tarjetas */
  top: 42%;
  overflow: hidden; /* recorta el destello al círculo */
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--lima-1);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--sombra);
  transform: translateY(-50%);
  transition: transform .25s ease, background .25s ease;
}
#btn-prev { left: clamp(8px, 2vw, 26px); }
#btn-next { right: clamp(8px, 2vw, 26px); }
.ctrl:hover { transform: translateY(-50%) scale(1.12); background: #000; }
.ctrl:active { transform: translateY(-50%) scale(.95); }

.nombre-producto {
  font-family: var(--fuente-titulo);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  min-width: 240px;
  text-align: center;
  color: var(--tinta);
}

.hint {
  text-align: center;
  margin-top: 16px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--tinta-suave);
  opacity: .85;
}

/* ══════════ Botón flotante de WhatsApp (único icono fijo) ══════════ */
#wa-flotante {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #22c15e;
  color: #fff;
  box-shadow: var(--sombra-wa);
  z-index: 60;
  transition: transform .25s ease;
  animation: pulso 2.4s infinite;
}
#wa-flotante:hover { transform: scale(1.1); }

@keyframes pulso {
  0%, 100% { box-shadow: 0 14px 34px rgba(10, 120, 50, .45), 0 0 0 0 rgba(34, 193, 94, .5); }
  50% { box-shadow: 0 14px 34px rgba(10, 120, 50, .45), 0 0 0 14px rgba(34, 193, 94, 0); }
}

/* ══════════ PIE DE PÁGINA ══════════ */
.pie { padding: 40px 20px 60px; text-align: center; }

/* Panel de contacto del pie: oscuro de marca (el lima solo va en el logo) */
.pie-caja {
  max-width: 680px;
  margin: 0 auto;
  background: var(--tinta);
  color: var(--blanco);
  border-radius: var(--radio-grande);
  padding: clamp(34px, 5vw, 60px);
  box-shadow: var(--sombra-fuerte);
}

.pie-eyebrow { background: rgba(255, 255, 255, .12); color: var(--lima-1); box-shadow: none; }
.pie-eyebrow::before { background: var(--lima-1); box-shadow: 0 0 0 3px rgba(181, 255, 66, .2); }

.pie-caja h2 {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: 2px;
  color: var(--lima-1);
  margin-top: 16px;
}

.pie-caja p { margin: 14px 0 26px; font-size: .92rem; opacity: .85; line-height: 1.7; }

/* Barra inferior del pie: marca + enlaces + redes (mismo lima de marca) */
.pie-barra {
  max-width: 1080px;
  margin: 34px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  text-align: left;
  background:
    radial-gradient(ellipse 90% 120% at 50% 0%, rgba(255, 255, 255, .3), transparent 70%),
    linear-gradient(135deg, var(--lima-1) 0%, #c8f44a 45%, var(--lima-2) 100%);
  border: 1px solid rgba(20, 23, 15, .14);
  border-radius: var(--radio);
  padding: 20px clamp(20px, 3.5vw, 36px);
  box-shadow: var(--sombra-suave);
}
.pie-marca { display: flex; align-items: center; gap: 12px; }
.pie-marca img { display: block; width: 36px; height: 36px; }
.pie-marca-texto { display: flex; flex-direction: column; gap: 2px; }
.pie-marca-texto strong { font-family: var(--fuente-titulo); font-size: .95rem; letter-spacing: 2px; }
.pie-marca-texto span { font-size: .76rem; font-weight: 500; color: var(--tinta-suave); }

.pie-enlaces { display: flex; gap: 22px; }
.pie-enlaces a {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tinta);
  opacity: .75;
  transition: opacity .2s ease;
}
.pie-enlaces a:hover { opacity: 1; }

.pie-redes { display: flex; gap: 8px; }
.pie-redes a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--tinta);
  color: var(--lima-1);
  transition: transform .25s ease, background .25s ease;
}
.pie-redes a:hover { transform: translateY(-3px) rotate(-4deg); background: #000; }

.pie-firma { margin-top: 24px; font-size: .75rem; font-weight: 600; color: var(--tinta-suave); }

/* ══════════ MODAL ══════════ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }

.modal-fondo {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 6, .55);
  backdrop-filter: blur(7px);
  animation: aparecer .3s ease;
}

.modal-tarjeta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  width: min(880px, 100%);
  max-height: min(640px, 92vh);
  background: var(--blanco);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
  animation: saltar .4s cubic-bezier(.2, .9, .3, 1.2);
}

@keyframes aparecer { from { opacity: 0; } }
@keyframes saltar { from { opacity: 0; transform: translateY(30px) scale(.94); } }

.modal-cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--lima-1);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s ease;
}
.modal-cerrar:hover { transform: rotate(90deg) scale(1.08); }

.modal-foto { position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(160deg, var(--lima-1), var(--lima-2)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 26px; }
/* Marco de la foto: permite el efecto de deslizar entre modelos */
#modal-marco-foto {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, opacity .3s ease;
}

/* Puntitos indicadores del modelo actual */
.puntos-modelo { display: flex; gap: 9px; }
.puntos-modelo[hidden] { display: none; }
.punto {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(18, 22, 13, .28);
  cursor: pointer;
  padding: 0;
  transition: transform .25s ease, background .25s ease;
}
.punto:hover { background: rgba(18, 22, 13, .5); }
.punto.activo { background: var(--tinta); transform: scale(1.3); }
/* Destello al abrir el modal de un producto */
.modal:not([hidden]) .modal-foto::after { animation: destello 1.1s ease .2s both; }
.modal-foto img {
  width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(40, 60, 0, .35);
  animation: flotar 4.5s ease-in-out infinite;
}
.modal-foto.sin-tarjeta img { box-shadow: none; }

@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.modal-info { padding: clamp(24px, 4vw, 42px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }

.modal-categoria {
  align-self: flex-start;
  background: var(--tinta);
  color: var(--lima-1);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
}

.modal-info h3 { font-family: var(--fuente-titulo); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: 1px; line-height: 1.15; }

.modal-info > p { font-size: .9rem; line-height: 1.75; color: var(--tinta-suave); }

.modal-variantes { display: flex; flex-wrap: wrap; gap: 8px; }.modal-variantes span {
  font-size: .72rem;
  font-weight: 600;
  border: 1.5px solid var(--borde);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(181, 255, 66, .18);
}

/* ══════════ Animación de aparición al hacer scroll ══════════ */
.revelar { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s ease; }
.revelar.visible { opacity: 1; transform: translateY(0); }

/* Hijos escalonados: cuando la caja aparece, sus hijos entran en cascada */
.revelar-hijos > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.revelar-hijos.visible > * { opacity: 1; transform: translateY(0); }
.revelar-hijos.visible > *:nth-child(2) { transition-delay: .08s; }
.revelar-hijos.visible > *:nth-child(3) { transition-delay: .16s; }
.revelar-hijos.visible > *:nth-child(4) { transition-delay: .24s; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 980px) {
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-angel { width: min(78vw, 420px); align-self: center; margin-right: 0; }
  .hero-tarjetas { position: static; width: 100%; }
  .tarjeta-stat { flex: 1; }
  .modal-tarjeta { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-foto img { max-height: 240px; }
  .pie-barra { flex-direction: column; text-align: center; }
  .pie-marca-texto { align-items: center; }
  .pie-enlaces { justify-content: center; }
}

@media (max-width: 620px) {
  .navegacion .nav-pill { display: none; }
  #wa-flotante { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .nombre-producto { font-size: .9rem; min-width: 150px; }
  .hero-titulo .linea-suave { margin-left: 14px; }
  .coverflow figure { width: 200px; }
  /* Flechas más compactas en celular (siguen fijas a los costados) */
  .ctrl { width: 42px; height: 42px; font-size: 1.05rem; }
  #btn-prev { left: 6px; }
  #btn-next { right: 6px; }
  .hero { margin: 10px 10px 0; padding: 30px 22px; }
  .anillo-info { margin-left: 10px; margin-right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ══════════ PRODUCTOS — carrusel circular (anillo con pin invisible) ══════════ */
/* Cabecera: el botón de la categoría activa vuela arriba al centro (arte de
   Eve en SVG, con alitas). El "alma" gira por el borde INVISIBLE de esta caja. */
.titulo-productos {
  display: block;
  width: fit-content;
  position: relative;
  margin: 0 auto 10px;
  transition: opacity .18s ease, transform .18s ease;
}
.titulo-productos.cambia { opacity: 0; transform: translateY(8px); }

/* Nombre de la categoría para lectores de pantalla (el arte ya trae el texto) */
.titulo-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Botón grande de la categoría activa */
.cat-destacada {
  display: block;
  width: clamp(260px, 33vw, 385px);
  aspect-ratio: 274.51 / 44.43;
}

/* Botones con alitas (SVG) — sirven en la cabecera y en la columna */
.cat-btn {
  display: block;
  border: none;
  padding: 0;
  background: transparent center / contain no-repeat;
  will-change: transform;
}
.cat-destacada .cat-btn { width: 100%; height: 100%; cursor: default; }
.cat-btn:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 10px; }

/* El "alma": un enjambre de BRASAS que nacen en la cabeza y giran por el
   borde INVISIBLE del título, frenándose y apagándose (estilo spinner,
   como en el gif de JGNACADEMY). Se dibuja en un canvas sobre el título
   (todo lo demás lo maneja main.js). */
.alma-lienzo {
  position: absolute;
  left: -34px;
  top: -34px;
  pointer-events: none;
  z-index: 1;
}
.sub-productos {
  text-align: center;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  opacity: .75;
  margin: 0 0 18px;
}

/* Escena: anillo al centro, categorías con alitas en columna a la derecha */
.anillo-escena {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

/* El anillo: sin rectángulo que recorte — cada producto flota libre */
.anillo {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: clamp(520px, 75vh, 760px);
  touch-action: pan-y; /* en celular la página sigue deslizando normal */
}
.anillo-item {
  position: absolute;
  left: 0;
  top: 0;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  will-change: transform, opacity, filter;
}
.anillo-item img {
  display: block;
  width: clamp(110px, 20vw, 215px);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(23, 28, 12, .26);
}
.anillo-item.tall img { width: clamp(78px, 14vw, 155px); } /* fotos verticales */
/* Diseños transparentes (stickers): flotan y su sombra sigue su forma */
.anillo-item.sin-tarjeta img {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  filter: drop-shadow(0 14px 20px rgba(23, 28, 12, .3));
}
.anillo-item:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 16px; }

/* Columna de categorías (los botones que no están activos) */
.anillo-categorias {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: clamp(190px, 21vw, 290px);
  padding: 4px;
}
.anillo-categorias .cat-btn {
  width: 100%;
  aspect-ratio: 274.51 / 44.43;
  cursor: pointer;
  transition: transform .22s ease, filter .22s ease;
}
.anillo-categorias .cat-btn:hover {
  transform: scale(1.07);
  filter: drop-shadow(0 5px 9px rgba(40, 60, 0, .28));
}
.anillo-categorias .cat-btn:active { transform: scale(.95); }

/* Botón alado único bajo el carrusel: es la categoría que se muestra ahora */
#cat-portada {
  width: clamp(200px, 24vw, 300px);
  aspect-ratio: 274.51 / 44.43;
  margin: 28px auto 0;
  cursor: pointer;
  filter: drop-shadow(0 6px 10px rgba(23, 28, 12, .22));
  transition: transform .22s ease, filter .22s ease;
}
#cat-portada:hover {
  transform: scale(1.07) translateY(-2px);
  filter: drop-shadow(0 10px 16px rgba(23, 28, 12, .32));
}
#cat-portada:active { transform: scale(.95); }
#cat-portada[hidden] { display: none; }

/* Datos del producto destacado (el que queda delante, abajo del centro) */
.anillo-info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1150px;
  margin: 26px auto 0;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 18px clamp(20px, 3vw, 36px);
  box-shadow: var(--sombra-suave);
}
.anillo-datos {
  text-align: center;
  transition: opacity .18s ease, transform .18s ease;
}
.anillo-datos.cambia { opacity: 0; transform: translateY(8px); }
.anillo-precio { margin: 0; display: inline-flex; align-items: baseline; gap: 10px; }

.escena-hint {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .6;
  margin: 14px 0 0;
  text-align: center;
}

@media (max-width: 860px) {
  .anillo-escena { flex-direction: column; gap: 10px; }
  .anillo { height: clamp(380px, 55vh, 520px); width: 100%; }
  .anillo-categorias {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    padding: 0;
  }
  .anillo-categorias .cat-btn { width: clamp(170px, 46vw, 215px); }
  #cat-portada { width: clamp(170px, 46vw, 230px); margin-top: 20px; }
  .cat-destacada { width: clamp(230px, 64vw, 305px); }
  .anillo-info { gap: 16px; margin-top: 18px; }
  .anillo-datos { text-align: center; }
}
