/* ==========================================================================
   ESMERALDA THEME OVERRIDES
   Centralized CSS — previously duplicated across 4+ template files.
   Loaded globally via wp_enqueue_style in functions.php
   ========================================================================== */

:root {
  /* ================================================
     ESMERALDA GALLERY — DESIGN TOKENS (SOURCE OF TRUTH)
     Para cambiar la paleta del brand, edita SOLO aquí.
     ================================================ */

  /* Verde Esmeralda — Escala de tonos */
  --og-emerald-900:  #003828;   /* Más oscuro — texto sobre fondos claros */
  --og-emerald-700:  #0e5e34;   /* Deep — botones primarios, bordes activos */
  --og-emerald-600:  #008060;   /* Mid — gradients de CTA */
  --og-emerald-500:  #10b981;   /* Standard — íconos, badges */
  --og-emerald-400:  #34d399;   /* Bright — hover states, texto de acento */
  --og-emerald-300:  #6ee7b7;   /* Light — glows suaves */
  --og-emerald-100:  #a7f3d0;   /* Pálido — gradient start */
  --og-emerald-glow: #75d9b3;   /* Shimmer / editorial line */

  /* Dorado */
  --og-gold:         #d4af37;   /* Acento principal dorado */
  --og-gold-dim:     #e9c349;   /* Dorado terciario */

  /* Superficie / Neutral */
  --og-surface-950:  #060606;   /* Fondo más oscuro */
  --og-surface-900:  #131313;   /* Background base */
  --og-surface-800:  #1c1b1b;   /* Cards/sections */
  --og-surface-700:  #201f1f;   /* Containers */
  --og-surface-600:  #2a2a2a;   /* Bordes internos */

  /* Texto */
  --og-text-100:     #e5e2e1;   /* Texto principal (casi blanco) */
  --og-text-400:     #a1a1aa;   /* Texto secundario */
  --og-text-600:     #52525b;   /* Texto muted */
}

/* ---- 1. SCROLL REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ---- 2. PARALLAX VIDEO / IMAGE ---- */
.parallax-img {
  will-change: transform;
  animation: slowPan 30s linear infinite alternate;
}
@keyframes slowPan {
  0%   { transform: scale(1.05) translateY(0); }
  100% { transform: scale(1.1) translateY(-2%); }
}

/* ---- 3. BUTTON SHIMMER EFFECT ---- */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: 0.7s;
}
.btn-shimmer:hover::before {
  left: 150%;
}

/* ---- 4. EMERALD GRADIENT TEXT (Headings) ---- */
.emerald-gradient-text {
  background: linear-gradient(135deg, var(--og-emerald-100) 0%, var(--og-emerald-400) 50%, var(--og-emerald-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ---- 5. EMERALD GRADIENT BUTTON (Solid Fill) ---- */
.emerald-gradient {
  background: linear-gradient(135deg, var(--og-emerald-600) 0%, #00513c 100%);
}
.emerald-gradient-btn {
  background: linear-gradient(45deg, var(--og-emerald-600), var(--og-emerald-glow));
}

/* ---- 6. LUXURY SHADOWS ---- */
.shadow-luxe {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

/* ---- 7. EDITORIAL LINE (Product Detail Pages) ---- */
.editorial-line {
  height: 1px;
  background: linear-gradient(to right, var(--og-emerald-glow), transparent);
}

/* ---- 8. CUSTOM SIDEBAR SCROLLBAR ---- */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--og-surface-950);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--og-emerald-500);
}

/* ---- 9. FORM INPUT FOCUS RESET ---- */
input:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ---- 10. LUXURY NAVIGATION RENDER ---- */
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 50%;
  background: var(--og-emerald-400);
  transition: width 0.4s ease, left 0.4s ease;
}
.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* ---- 11. SCROLL PROGRESS BAR ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--og-emerald-600), var(--og-emerald-400), var(--og-emerald-glow));
  z-index: 9999;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
  transition: width 0.1s ease-out;
}

/* ---- 12. AMBIENT GLOW EFFECT ---- */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  mix-blend-mode: screen;
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(200%); }
  100% { transform: translateY(200%); }
}

/* ---- 13. GALLERY ARROWS - Mobile Always Visible ---- */
/* On hover-capable devices: arrows appear on hover via group */
@media (hover: hover) {
  .gallery-arrow {
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .zoom-container:hover .gallery-arrow,
  .group:hover .gallery-arrow {
    opacity: 1;
  }
}

/* On touch devices: arrows always visible */
@media (hover: none) {
  .gallery-arrow {
    opacity: 1 !important;
  }
  /* Shrink image container height on small phones */
  #main-img-container {
    height: 55vw !important;
    min-height: 280px !important;
    max-height: 420px !important;
  }
}

/* ---- 14. PRODUCT VIDEO - always autoplays ---- */
#product-hero-video {
  display: block;
  will-change: transform;
}

/* ---- 15. LUX TOAST ---- */
.lux-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(9, 9, 11, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #f4f4f5;
  padding: 14px 24px;
  border-radius: 8px;
  backdrop-filter: blur(12px);
  z-index: 999999;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.1);
  white-space: nowrap;
  pointer-events: none;
}
.lux-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

