/* ================================================================
   TEMA OSCURO — somosecoterra.com
   Inspirado en: plant-store immersive (index) + BODRIN dramatic (producto)
   Colores corporativos Ecoterra Ecuador
   ================================================================ */

/* ─── VARIABLES OSCURAS ──────────────────────────────────────── */
:root {
  /* Fondos */
  --bg:           #071510;
  --bg-2:         #0A1C12;
  --bg-card:      #0D2418;
  --bg-card-2:    #112D1E;
  --bg-card-3:    #0B1E13;
  --surface:      rgba(255,255,255,0.04);
  --surface-2:    rgba(255,255,255,0.08);
  --b:            rgba(255,255,255,0.08);
  --b-green:      rgba(72,180,97,0.25);

  /* Marca verde */
  --vb:           #2D7A3A;   /* brand — botones principales */
  --vh:           #48B461;   /* highlight sobre oscuro */
  --vg:           rgba(72,180,97,0.15);  /* glow */
  --vt:           #7DD98A;   /* texto acento verde claro */
  --vd:           #1B5E20;   /* verde corporativo oscuro logo */

  /* Texto */
  --t1:           #FFFFFF;
  --t2:           rgba(255,255,255,0.65);
  --t3:           rgba(255,255,255,0.35);

  /* Acento CTA */
  --cta:          #FF6B35;
  --cta-h:        #E65100;
  --gold:         #FFB300;

  /* Radio */
  --rc: 22px;   /* card radius */
  --rp: 999px;  /* pill radius */

  /* Sombras oscuras */
  --sd:  0 2px 8px rgba(0,0,0,0.4);
  --sdm: 0 8px 32px rgba(0,0,0,0.5);
  --sdl: 0 20px 60px rgba(0,0,0,0.6);
  --sg:  0 0 40px var(--vg);          /* glow verde */
}

/* ─── BASE OSCURA ────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--t1);
}

/* ─── HEADER OSCURO ──────────────────────────────────────────── */
.header-d {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}
.header-d.scrolled {
  background: rgba(7,21,16,0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--b);
}
.nav-d {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-d {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-d-icon {
  width: 38px;
  height: 38px;
  background: var(--vb);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 0 16px var(--vg);
}
.logo-d-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--t1);
  line-height: 1;
}
.logo-d-text span { color: var(--vh); }
.logo-d-sub {
  font-size: 0.68rem;
  color: var(--t3);
  font-weight: 400;
}
.nav-d-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-d-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--t2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-d-links a:hover { color: var(--t1); }
.nav-d-cta { display: flex; align-items: center; gap: 1rem; }
.btn-cta-d {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--rp);
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(255,107,53,0.35);
}
.btn-cta-d:hover {
  background: var(--cta-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,53,0.45);
}
.btn-ghost-d {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--rp);
  background: var(--surface-2);
  color: var(--t1);
  text-decoration: none;
  border: 1px solid var(--b);
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-ghost-d:hover {
  background: var(--surface);
  border-color: var(--b-green);
}
.nav-d-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-d-menu span {
  display: block; width: 22px; height: 2px;
  background: var(--t2); border-radius: 2px; transition: 0.3s;
}

/* ─── HERO INDEX (plant-store style) ─────────────────────────── */
.hero-idx {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: calc(72px + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}
/* Fondo con gradiente sutil */
.hero-idx::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 70% 50%, rgba(45,122,58,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 20% 80%, rgba(72,180,97,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-idx-content {
  position: relative;
  z-index: 1;
}
.hero-idx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vt);
  background: rgba(72,180,97,0.12);
  border: 1px solid rgba(72,180,97,0.2);
  border-radius: var(--rp);
  padding: 0.3rem 0.875rem;
  margin-bottom: 1.5rem;
}
.hero-idx-h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--t1);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-idx-h1 em {
  font-style: italic;
  color: var(--vh);
}
.hero-idx-p {
  font-size: 1.05rem;
  color: var(--t2);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 2rem;
}
.hero-idx-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--rp);
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(255,107,53,0.4);
}
.btn-hero-primary:hover {
  background: var(--cta-h);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(255,107,53,0.5);
}
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--rp);
  background: transparent;
  color: var(--t1);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-hero-secondary:hover {
  border-color: var(--b-green);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.hero-idx-stats {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--b);
}
.hero-stat-d strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--vh);
  line-height: 1;
}
.hero-stat-d span {
  font-size: 0.75rem;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Visual lado derecho del hero */
.hero-idx-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-platform-wrap {
  position: relative;
  width: min(480px, 90%);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Glow radial detrás del producto */
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(72,180,97,0.18) 0%, transparent 65%);
  border-radius: 50%;
}
/* Plataforma geométrica (pedestal) */
.hero-pedestal {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 28px;
  background: linear-gradient(180deg, rgba(72,180,97,0.35) 0%, rgba(45,122,58,0.1) 100%);
  border-radius: 50%;
  filter: blur(12px);
}
.hero-product-img {
  position: relative;
  z-index: 2;
  width: 75%;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6)) drop-shadow(0 0 40px rgba(72,180,97,0.12));
  animation: heroFloat 5s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
/* Badges flotantes */
.hero-float-badge {
  position: absolute;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 0.6rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}
.hero-float-badge .fb-icon { font-size: 1.25rem; }
.hero-float-badge .fb-label { font-size: 0.7rem; color: var(--t3); }
.hero-float-badge .fb-val   { font-size: 0.85rem; font-weight: 700; color: var(--t1); }
.hfb-1 { bottom: 18%; left: -4%; }
.hfb-2 { top: 15%; right: -4%; }

/* ─── SECCIÓN PRODUCTOS GRID (plant-store cards) ─────────────── */
.sec-dark {
  padding: 5rem 0;
}
.sec-dark-sm { padding: 3rem 0; }
.sec-header-d {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.sec-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vt);
  margin-bottom: 0.5rem;
}
.sec-title-d {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--t1);
  line-height: 1.2;
}
.sec-link-d {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vt);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.sec-link-d:hover { gap: 0.75rem; }

/* Grid de tarjetas de productos */
.prod-grid-d {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Tarjeta de producto — plant-store style */
.prod-card-d {
  background: linear-gradient(145deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--b);
  border-radius: var(--rc);
  overflow: hidden;
  transition: all 0.35s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
}
.prod-card-d:hover {
  border-color: var(--b-green);
  transform: translateY(-8px);
  box-shadow: var(--sdl), 0 0 30px rgba(72,180,97,0.08);
}
/* Área imagen */
.pcd-img {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #0D2418 0%, #112D1E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pcd-img img {
  width: 75%;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.5));
  transition: transform 0.45s ease;
  position: relative;
  z-index: 2;
}
.prod-card-d:hover .pcd-img img { transform: scale(1.05) translateY(-4px); }
/* Glow sutil detrás del producto en la card */
.pcd-img::before {
  content: '';
  position: absolute;
  top: 35%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(72,180,97,0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}
/* Pedestal en la card */
.pcd-pedestal {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 16px;
  background: radial-gradient(ellipse, rgba(72,180,97,0.3) 0%, transparent 70%);
  filter: blur(8px);
  z-index: 1;
}
/* Emoji placeholder cuando no hay imagen */
.pcd-emoji {
  font-size: 4.5rem;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
  transition: transform 0.45s ease;
  position: relative;
  z-index: 2;
}
.prod-card-d:hover .pcd-emoji { transform: scale(1.08) translateY(-5px); }

/* Badge categoría */
.pcd-cat {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--rp);
  background: rgba(7,21,16,0.7);
  backdrop-filter: blur(8px);
  color: var(--vt);
  border: 1px solid rgba(72,180,97,0.2);
  z-index: 3;
}
/* Rating badge */
.pcd-rating {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: rgba(7,21,16,0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--rp);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.pcd-rating .star { color: var(--gold); }

/* Info inferior de la card */
.pcd-info {
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(7,21,16,0.6) 100%);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.pcd-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--t1);
  line-height: 1.3;
}
.pcd-sub {
  font-size: 0.72rem;
  color: var(--t3);
  margin-top: 0.15rem;
}
/* Botón redondo de la card */
.pcd-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(255,107,53,0.4);
}
.pcd-btn:hover {
  background: var(--cta-h);
  transform: scale(1.1);
}

/* ─── BARRA DE CONFIANZA OSCURA ───────────────────────────────── */
.trust-bar-d {
  border-top: 1px solid var(--b);
  border-bottom: 1px solid var(--b);
  padding: 1.25rem 0;
  background: rgba(255,255,255,0.015);
}
.trust-grid-d {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item-d {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-right: 1px solid var(--b);
}
.trust-item-d:last-child { border-right: none; }
.trust-icon-d { font-size: 1.5rem; }
.trust-txt strong { display: block; font-size: 0.8rem; font-weight: 700; color: var(--t1); }
.trust-txt span   { font-size: 0.7rem; color: var(--t3); }

/* ─── CATEGORÍAS GRID OSCURA ─────────────────────────────────── */
.cat-grid-d {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.cat-card-d {
  background: var(--bg-card);
  border: 1px solid var(--b);
  border-radius: var(--rc);
  padding: 1.75rem 1.25rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.cat-card-d:hover {
  border-color: var(--b-green);
  background: var(--bg-card-2);
  transform: translateY(-5px);
  box-shadow: var(--sdm), var(--sg);
}
.cat-icon-d {
  font-size: 2.5rem;
  transition: transform 0.3s ease;
}
.cat-card-d:hover .cat-icon-d { transform: scale(1.15); }
.cat-name-d { font-size: 0.9rem; font-weight: 700; color: var(--t1); }
.cat-count-d { font-size: 0.72rem; color: var(--t3); }

/* ─── SECCIÓN WHY / FEATURES OSCURA ─────────────────────────── */
.why-grid-d {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.why-card-d {
  background: var(--bg-card);
  border: 1px solid var(--b);
  border-radius: var(--rc);
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}
.why-card-d:hover {
  border-color: var(--b-green);
  background: var(--bg-card-2);
  transform: translateY(-4px);
}
.why-icon-d {
  width: 56px;
  height: 56px;
  background: var(--vg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--b-green);
}
.why-title-d { font-size: 1.05rem; font-weight: 700; color: var(--t1); margin-bottom: 0.5rem; }
.why-desc-d  { font-size: 0.875rem; color: var(--t2); line-height: 1.65; }

/* ─── CTA BANNER OSCURO ──────────────────────────────────────── */
.cta-banner-d {
  background: linear-gradient(135deg, #0D3A1E 0%, #0A2D18 50%, #071510 100%);
  border: 1px solid var(--b-green);
  border-radius: calc(var(--rc) * 1.5);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner-d::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(72,180,97,0.1) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner-d::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner-d .inner { position: relative; z-index: 1; }
.cta-h2-d {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--t1);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.cta-h2-d em { font-style: normal; color: var(--vh); }
.cta-p-d {
  font-size: 1rem;
  color: var(--t2);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.cta-btns-d {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.btn-cta-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2.25rem;
  border-radius: var(--rp);
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(255,107,53,0.4);
}
.btn-cta-lg:hover {
  background: var(--cta-h);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255,107,53,0.5);
}
.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2.25rem;
  border-radius: var(--rp);
  background: transparent;
  color: var(--t1);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-cta-outline:hover {
  border-color: var(--b-green);
  background: var(--surface-2);
  transform: translateY(-3px);
}

/* ─── FOOTER OSCURO ──────────────────────────────────────────── */
.footer-d {
  border-top: 1px solid var(--b);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}
.footer-d-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.fd-logo-wrap { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.fd-desc { font-size: 0.85rem; color: var(--t3); line-height: 1.7; max-width: 240px; }
.fd-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.fd-social a {
  width: 34px; height: 34px;
  background: var(--surface);
  border: 1px solid var(--b);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  font-size: 0.85rem;
  transition: all 0.2s;
  text-decoration: none;
}
.fd-social a:hover {
  background: var(--vg);
  border-color: var(--b-green);
  color: var(--vt);
}
.fd-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--t1);
  margin-bottom: 1rem;
}
.fd-links { display: flex; flex-direction: column; gap: 0.6rem; }
.fd-links a { font-size: 0.85rem; color: var(--t3); text-decoration: none; transition: color 0.2s; }
.fd-links a:hover { color: var(--vt); }
.footer-d-bottom {
  border-top: 1px solid var(--b);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--t3);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-d-bottom a { color: var(--t3); text-decoration: none; }
.footer-d-bottom a:hover { color: var(--vt); }

/* ─── WHATSAPP FLOAT ─────────────────────────────────────────── */
.wa-float-d {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #fff;
}
.wa-float-d:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}

/* ════════════════════════════════════════════════════════════════
   ESTILOS PÁGINA DE PRODUCTO — Estilo BODRIN adaptado verde
   ════════════════════════════════════════════════════════════════ */

/* ─── HERO DE PRODUCTO (dramático) ───────────────────────────── */
.dp-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(72px + 3rem) 0 3rem;
  position: relative;
  overflow: hidden;
}
/* Fondo con textura tipo "bokeh" vegetal */
.dp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 75% 40%, rgba(45,122,58,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 400px 400px at 15% 70%, rgba(72,180,97,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 300px 200px at 60% 90%, rgba(255,107,53,0.05) 0%, transparent 50%);
  pointer-events: none;
}
/* Partículas decorativas SVG */
.dp-hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.dp-hero-deco .deco-leaf {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.15;
  animation: leafDrift 8s ease-in-out infinite;
}
.deco-leaf:nth-child(1) { top: 12%; left: 55%; animation-delay: 0s; font-size: 1.8rem; }
.deco-leaf:nth-child(2) { top: 60%; right: 8%; animation-delay: 1.5s; font-size: 1.2rem; }
.deco-leaf:nth-child(3) { top: 30%; right: 15%; animation-delay: 3s; font-size: 2rem; }
.deco-leaf:nth-child(4) { bottom: 25%; right: 30%; animation-delay: 0.8s; font-size: 1rem; }
.deco-leaf:nth-child(5) { top: 75%; left: 60%; animation-delay: 2.2s; font-size: 1.4rem; }
.deco-leaf:nth-child(6) { top: 20%; right: 40%; animation-delay: 4s; font-size: 0.9rem; }
@keyframes leafDrift {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  33%       { transform: translateY(-18px) rotate(12deg) scale(1.05); }
  66%       { transform: translateY(-8px) rotate(-8deg) scale(0.97); }
}

.dp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Contenido izquierdo */
.dp-hero-content {}
.dp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--vt);
  background: rgba(72,180,97,0.1);
  border: 1px solid rgba(72,180,97,0.22);
  border-radius: var(--rp);
  padding: 0.3rem 0.875rem;
  margin-bottom: 1.5rem;
}
.dp-h1 {
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 800;
  color: var(--t1);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}
.dp-h1 .dp-accent { color: var(--vh); }
.dp-tagline {
  font-size: 1.15rem;
  color: var(--vt);
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.dp-desc {
  font-size: 1rem;
  color: var(--t2);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 2rem;
}
.dp-checks {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 2rem;
}
.dp-check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--t2);
}
.dp-check-dot {
  width: 20px;
  height: 20px;
  background: var(--vg);
  border: 1px solid var(--b-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.6rem;
  color: var(--vh);
}
.dp-check span strong { color: var(--t1); }
.dp-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}
.dp-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.dp-trust-item {
  font-size: 0.78rem;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.dp-trust-item .ti-icon { color: var(--vh); }
.dp-trust-item .ti-star { color: var(--gold); }

/* Visual derecho — producto flotante */
.dp-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}
.dp-glow-ring {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(72,180,97,0.18) 0%, transparent 68%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: 0.7; transform: translate(-50%,-50%) scale(1.1); }
}
.dp-prod-img {
  position: relative;
  z-index: 2;
  width: min(320px, 75%);
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.65)) drop-shadow(0 0 50px rgba(72,180,97,0.15));
  animation: dpFloat 6s ease-in-out infinite;
}
@keyframes dpFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-16px) rotate(1deg); }
}
/* Pedestal */
.dp-ped {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(72,180,97,0.35) 0%, transparent 65%);
  filter: blur(10px);
  z-index: 1;
}
/* Badge flotante */
.dp-float-badge {
  position: absolute;
  background: rgba(13,36,24,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--b-green);
  border-radius: 14px;
  padding: 0.6rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}
.dp-float-badge .dfb-icon { font-size: 1.25rem; }
.dp-float-badge .dfb-l { font-size: 0.65rem; color: var(--t3); }
.dp-float-badge .dfb-v { font-size: 0.82rem; font-weight: 700; color: var(--t1); }
.dfb-1 { bottom: 18%; left: 0; }
.dfb-2 { top: 15%; right: 0; }

/* ─── VARIANTES (BODRIN cappuccino style) ────────────────────── */
.dp-variants-sec {
  padding: 4rem 0;
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--b);
  border-bottom: 1px solid var(--b);
}
.dp-variants-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--t1);
  text-align: center;
  margin-bottom: 2.5rem;
}
.dp-variants-title em { font-style: normal; color: var(--vh); }
.dp-variants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.dp-variant-card {
  background: var(--bg-card);
  border: 1px solid var(--b);
  border-radius: var(--rc);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.dp-variant-card:hover {
  border-color: var(--b-green);
  transform: translateY(-5px);
  box-shadow: var(--sdm), var(--sg);
}
.dp-variant-card.featured {
  border-color: var(--b-green);
  background: linear-gradient(145deg, var(--bg-card-2), var(--bg-card));
  box-shadow: 0 0 40px rgba(72,180,97,0.12);
}
.dvc-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--cta);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 0 var(--rc) 0 var(--rc);
}
.dvc-img {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
  transition: transform 0.3s ease;
}
.dp-variant-card:hover .dvc-img { transform: scale(1.1) translateY(-4px); }
.dvc-stars {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  margin-bottom: 0.875rem;
  color: var(--gold);
  font-size: 0.9rem;
}
.dvc-name { font-size: 1.15rem; font-weight: 800; color: var(--t1); margin-bottom: 0.35rem; }
.dvc-sub  { font-size: 0.8rem; color: var(--t2); line-height: 1.5; margin-bottom: 1.25rem; }
.dvc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--rp);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.dvc-btn-primary {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,107,53,0.35);
}
.dvc-btn-primary:hover {
  background: var(--cta-h);
  box-shadow: 0 8px 24px rgba(255,107,53,0.5);
  transform: translateY(-2px);
}
.dvc-btn-ghost {
  background: var(--surface-2);
  color: var(--t2);
  border: 1px solid var(--b);
}
.dvc-btn-ghost:hover {
  border-color: var(--b-green);
  color: var(--vt);
}

/* ─── FEATURES — BODRIN "esto" layout ───────────────────────── */
.dp-features-sec {
  padding: 5rem 0;
}
.dp-feat-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.dp-feat-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--t1);
  line-height: 1.2;
}
.dp-feat-title em { font-style: italic; color: var(--vh); }
.dp-feat-sub {
  font-size: 0.95rem;
  color: var(--t2);
  margin-top: 0.75rem;
}

/* El grid 3 columnas: [features] [producto] [features] */
.dp-feat-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.dp-feat-left  { display: flex; flex-direction: column; gap: 1.25rem; }
.dp-feat-right { display: flex; flex-direction: column; gap: 1.25rem; }

.dp-feat-card {
  background: var(--bg-card);
  border: 1px solid var(--b);
  border-radius: var(--rc);
  padding: 1.75rem;
  transition: all 0.3s ease;
  flex: 1;
}
.dp-feat-card:hover {
  border-color: var(--b-green);
  background: var(--bg-card-2);
  transform: scale(1.02);
}
.dfc-num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(72,180,97,0.2);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.dfc-icon { font-size: 1.75rem; margin-bottom: 0.875rem; }
.dfc-title { font-size: 1rem; font-weight: 700; color: var(--t1); margin-bottom: 0.5rem; }
.dfc-desc  { font-size: 0.82rem; color: var(--t2); line-height: 1.6; }

/* Centro: producto grande */
.dp-feat-center {
  background: linear-gradient(145deg, #0D3320, #0A2818);
  border: 1px solid var(--b-green);
  border-radius: var(--rc);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(72,180,97,0.1);
}
.dp-feat-center::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(72,180,97,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.dp-feat-center-img {
  width: min(200px, 70%);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.6));
  margin-bottom: 1.75rem;
  animation: centerFloat 5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
@keyframes centerFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.dp-feat-center-cta {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}
.dp-feat-center-cta .btn-cta-lg { width: 100%; }

/* ─── TESTIMONIOS OSCUROS ────────────────────────────────────── */
.dp-testi-sec {
  padding: 5rem 0;
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--b);
}
.dp-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.dp-testi-card {
  background: var(--bg-card);
  border: 1px solid var(--b);
  border-radius: var(--rc);
  padding: 1.75rem;
  transition: all 0.3s ease;
}
.dp-testi-card:hover {
  border-color: var(--b-green);
  transform: translateY(-4px);
  box-shadow: var(--sdm);
}
.dtc-stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 1rem; }
.dtc-text {
  font-size: 0.875rem;
  color: var(--t2);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.dtc-author { display: flex; align-items: center; gap: 0.75rem; }
.dtc-avatar {
  width: 40px;
  height: 40px;
  background: var(--vb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(45,122,58,0.4);
}
.dtc-name { font-size: 0.85rem; font-weight: 700; color: var(--t1); }
.dtc-loc  { font-size: 0.72rem; color: var(--t3); }

/* ─── FAQ OSCURO ─────────────────────────────────────────────── */
.dp-faq-sec { padding: 5rem 0; }
.faq-d { max-width: 720px; margin: 0 auto; }
.faq-d-item {
  border: 1px solid var(--b);
  border-radius: var(--rc);
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: border-color 0.3s;
}
.faq-d-item.open { border-color: var(--b-green); }
.faq-d-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  gap: 1rem;
  transition: background 0.2s;
}
.faq-d-q:hover { background: var(--surface); }
.faq-d-item.open .faq-d-q { background: var(--surface); }
.faq-d-q h4 { font-size: 0.9rem; font-weight: 600; color: var(--t1); }
.faq-d-icon {
  width: 26px;
  height: 26px;
  background: var(--surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vt);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
}
.faq-d-item.open .faq-d-icon { transform: rotate(45deg); background: var(--vg); }
.faq-d-ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-d-item.open .faq-d-ans { max-height: 300px; }
.faq-d-ans-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--t2);
  line-height: 1.7;
}

/* ─── STICKY CTA PRODUCTO ────────────────────────────────────── */
.sticky-d {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 997;
  background: rgba(7,21,16,0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--b-green);
  padding: 0.875rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.sticky-d.visible { transform: translateY(0); }
.sticky-d-info {}
.sticky-d-name { font-size: 0.9rem; font-weight: 700; color: var(--t1); }
.sticky-d-sub  { font-size: 0.72rem; color: var(--t3); }
.sticky-d-ctas { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* ─── ANIMACIONES FADE (reutilizado del tema claro) ──────────── */
.f { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.f.v { opacity: 1; transform: none; }
.fd1 { transition-delay: 0.1s; }
.fd2 { transition-delay: 0.2s; }
.fd3 { transition-delay: 0.3s; }
.fd4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-idx { grid-template-columns: 1fr; padding-top: calc(72px + 3rem); }
  .hero-idx-visual { display: none; }
  .prod-grid-d { grid-template-columns: repeat(2, 1fr); }
  .cat-grid-d   { grid-template-columns: repeat(2, 1fr); }
  .dp-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .dp-visual    { min-height: 380px; }
  .dp-prod-img  { width: min(260px, 60%); }
  .dp-variants-grid { grid-template-columns: 1fr; gap: 1rem; max-width: 440px; margin: 0 auto; }
  .dp-feat-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .dp-feat-left, .dp-feat-right { gap: 1.25rem; }
  .dp-testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-d-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .trust-grid-d { grid-template-columns: repeat(2, 1fr); }
  .trust-item-d:nth-child(2) { border-right: none; }
  .nav-d-links { display: none; }
  .nav-d-menu  { display: flex; }
  .why-grid-d  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .prod-grid-d { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
  .cat-grid-d  { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
  .why-grid-d  { grid-template-columns: 1fr; }
  .trust-grid-d { grid-template-columns: 1fr; }
  .trust-item-d { border-right: none; border-bottom: 1px solid var(--b); }
  .trust-item-d:last-child { border-bottom: none; }
  .dp-h1 { font-size: 2.25rem; }
  .dp-feat-grid { grid-template-columns: 1fr; }
  .dp-testi-grid { grid-template-columns: 1fr; }
  .footer-d-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-idx-stats { gap: 1.25rem; }
  .hero-idx-ctas { flex-direction: column; }
  .cta-banner-d  { padding: 2.5rem 1.5rem; border-radius: var(--rc); }
  .sticky-d { padding: 0.75rem 1rem; }
  .sticky-d .btn-cta-d { font-size: 0.8rem; padding: 0.5rem 1rem; }
}
