/* ═══════════════════════════════════════════════
   EVE CREATION — Estilos
   Degradado lima: #B5FF42 → #DEEB4B
   ═══════════════════════════════════════════════ */

:root {
  --lima-1: #B5FF42;
  --lima-2: #DEEB4B;
  --lima-suave: #d3f95e;
  --verde-oscuro: #567d00;
  --tinta: #12160d;          /* casi negro verdoso */
  --tinta-suave: #2a3318;
  --blanco: #fdfef7;
  --borde: rgba(18, 22, 13, .18);
  --sombra: 0 18px 45px rgba(40, 60, 0, .28);
  --radio: 22px;
  --fuente-titulo: 'Anton', 'Arial Black', sans-serif;
  --fuente-texto: 'Poppins', 'Segoe UI', sans-serif;
}

/* ══════════ 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;
  /* Degradado principal + brillo central (como la referencia) */
  background:
    radial-gradient(ellipse 90% 60% at 50% 30%, rgba(255, 255, 255, .35), transparent 60%),
    linear-gradient(135deg, var(--lima-1) 0%, #c8f44a 45%, var(--lima-2) 100%);
  background-attachment: fixed;
}

/* Textura de polígonos */
.fondo-poligonos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('../assets/bg-poligonos.svg') repeat;
  background-size: 720px 720px;
  opacity: .9;
}

header, main, footer, .redes, #wa-flotante { position: relative; z-index: 1; }

::selection { background: var(--tinta); color: var(--lima-1); }

/* ══════════ CABECERA ══════════ */
.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 5vw, 60px);
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tinta); }

.logo-caja {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--tinta);
  color: var(--lima-1);
  font-family: var(--fuente-titulo);
  font-size: 1.05rem;
  letter-spacing: 1px;
  border-radius: 12px;
  box-shadow: var(--sombra);
  transition: transform .3s ease;
}
.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: var(--verde-oscuro); }

.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(18, 22, 13, .1); }
.nav-pill.activa { background: var(--blanco); box-shadow: 0 6px 18px rgba(40, 60, 0, .18); }

.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 ══════════ */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(20px, 4vw, 60px) clamp(18px, 5vw, 60px) 10px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-texto { max-width: 640px; }

.hero-kicker {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
}

.hero-titulo .linea-solid { color: var(--tinta); }

/* Línea central con el verde más apagado, como la referencia */
.hero-titulo .linea-suave {
  color: transparent;
  -webkit-text-stroke: 2px var(--verde-oscuro);
  opacity: .75;
  margin-left: clamp(20px, 4vw, 70px);
}

.hero-sub {
  margin-top: 20px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--tinta-suave);
  max-width: 420px;
  line-height: 1.65;
}

.hero-botones { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fuente-titulo);
  font-size: .95rem;
  letter-spacing: 2px;
  text-decoration: none;
  padding: 16px 30px;
  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); }

.btn-oscuro { background: var(--tinta); color: var(--lima-1); box-shadow: var(--sombra); }
.btn-oscuro:hover { box-shadow: 0 24px 55px rgba(40, 60, 0, .4); }

.btn-borde { background: transparent; color: var(--tinta); border: 2.5px solid var(--tinta); }
.btn-borde:hover { background: rgba(18, 22, 13, .08); }

.btn-claro { background: var(--lima-1); color: var(--tinta); box-shadow: var(--sombra); }
.btn-whatsapp { background: #22c15e; color: #fff; box-shadow: 0 14px 30px rgba(10, 120, 50, .35); }
.btn-whatsapp:hover { background: #1ba850; }

/* Tarjetas de estadísticas (derecha, como la referencia) */
.hero-tarjetas {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 210px;
}

.tarjeta-stat {
  border-radius: var(--radio);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .3s ease;
}
.tarjeta-stat:hover { transform: translateY(-5px) rotate(-1.5deg); }
.tarjeta-stat small { font-size: .72rem; letter-spacing: 1px; opacity: .75; }
.tarjeta-stat strong { font-family: var(--fuente-titulo); font-size: 2.3rem; line-height: 1.1; }
.tarjeta-stat span { font-size: .7rem; font-weight: 700; letter-spacing: 2.5px; }

.tarjeta-oscura { background: var(--tinta); color: var(--blanco); box-shadow: var(--sombra); align-self: flex-end; }
.tarjeta-oscura strong { color: var(--lima-1); }

.tarjeta-clara { background: var(--blanco); color: var(--tinta); box-shadow: 0 14px 35px rgba(40, 60, 0, .2); align-self: flex-start; }
.tarjeta-clara svg { color: var(--verde-oscuro); }

/* ══════════ SECCIÓN CARRUSEL ══════════ */
.seccion-productos {
  padding: clamp(30px, 5vw, 70px) 20px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.carrusel-zona {
  background: rgba(253, 254, 247, .35);
  border: 1.5px solid var(--borde);
  border-radius: 34px;
  padding: clamp(24px, 4vw, 50px) clamp(10px, 3vw, 40px) 30px;
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 70px rgba(40, 60, 0, .22);
}

/* ───── 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 {
  margin-top: 12px;
  text-align: center;
  font-family: var(--fuente-titulo);
  font-size: .82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tinta);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease .1s, transform .4s ease .1s;
}

/* Imagen del producto: marco blanco estilo foto impresa */
.coverflow .marco {
  display: block;
  background: var(--blanco);
  border-radius: 18px;
  padding: 10px 10px 16px;
  box-shadow: 0 16px 38px rgba(40, 60, 0, .3);
  transition: box-shadow .4s ease;
}

.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 figcaption { opacity: 1; transform: translateY(0); }
.coverflow figure.activo .marco { box-shadow: 0 30px 60px rgba(30, 45, 0, .45); }
.coverflow figure.no-activo { filter: brightness(.96); }

/* Controles */
.carrusel-controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 34px;
}

.ctrl {
  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);
  transition: transform .25s ease, background .25s ease;
}
.ctrl:hover { transform: scale(1.12); background: #000; }
.ctrl:active { transform: 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;
}

/* ══════════ REDES SOCIALES ══════════ */
.redes {
  position: fixed;
  left: 22px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.redes a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tinta);
  color: var(--lima-1);
  box-shadow: 0 10px 24px rgba(30, 45, 0, .35);
  transition: transform .25s ease, background .25s ease;
}
.redes a:hover { transform: scale(1.15) rotate(-6deg); background: #000; }

/* Botón flotante de WhatsApp */
#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: 0 14px 34px rgba(10, 120, 50, .45);
  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 90px; text-align: center; }

.pie-caja {
  max-width: 620px;
  margin: 0 auto;
  background: var(--tinta);
  color: var(--blanco);
  border-radius: 30px;
  padding: clamp(30px, 5vw, 55px);
  box-shadow: var(--sombra);
}

.pie-caja h2 {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: 2px;
  color: var(--lima-1);
}

.pie-caja p { margin: 14px 0 24px; font-size: .92rem; opacity: .85; line-height: 1.7; }

.pie-firma { margin-top: 26px; 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 { background: linear-gradient(160deg, var(--lima-1), var(--lima-2)); display: grid; place-items: center; padding: 26px; }
.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;
}

@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);
}

.modal-precio {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1.5px dashed var(--borde);
  padding-top: 16px;
  margin-top: auto;
}
.modal-precio span { font-size: .78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; opacity: .7; }
.modal-precio strong { font-family: var(--fuente-titulo); font-size: 1.7rem; }

/* ══════════ 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); }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 980px) {
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-tarjetas { flex-direction: row; width: 100%; }
  .tarjeta-stat { flex: 1; }
  .modal-tarjeta { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-foto img { max-height: 240px; }
}

@media (max-width: 620px) {
  .navegacion .nav-pill { display: none; }
  .redes { left: 14px; bottom: 14px; }
  .redes a { width: 36px; height: 36px; }
  #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; }
}

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