/* =================================================================
   ASTRO BLING — "Un universo de elegancia"
   Hoja de estilos principal
   Glassmorphism · Charcoal (#333333) + Dorado (#d4a843) sobre blanco
   ================================================================= */

/* -----------------------------------------------------------------
   1. VARIABLES GLOBALES
   ----------------------------------------------------------------- */
:root {
  /* Paleta — modo claro */
  --charcoal: #333333;
  --charcoal-deep: #1c1c1c;
  --charcoal-soft: #54524f;
  --charcoal-muted: #8a8783;
  --gold: #d4a843;
  --gold-light: #e6c37a;
  --gold-pale: #f7ecd6;
  --gold-deep: #b3872f;
  --white: #ffffff;
  --cream: #fdfbf6;

  --bg-body: var(--white);
  --bg-alt: var(--cream);
  --text-heading: var(--charcoal-deep);
  --text-body: var(--charcoal-soft);
  --text-muted: var(--charcoal-muted);
  --text-on-dark: #f6f4ef;
  --line: rgba(51, 51, 51, 0.12);

  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 20px 60px rgba(51, 51, 51, 0.12);
  --nav-bg: rgba(253, 251, 246, 0.78);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Helvetica Neue', Arial, sans-serif;

  --container: 1280px;
  --gap-section: 130px;
  --gap-section-sm: 80px;

  --radius-s: 14px;
  --radius-m: 22px;
  --radius-l: 32px;
  --radius-full: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed-fast: 0.25s;
  --speed-med: 0.45s;
  --speed-slow: 0.9s;

  --shadow-soft: 0 10px 30px rgba(51, 51, 51, 0.08);
  --shadow-med: 0 24px 55px rgba(51, 51, 51, 0.14);
  --shadow-gold: 0 14px 34px rgba(212, 168, 67, 0.35);
}

[data-theme="dark"] {
  --bg-body: #161616;
  --bg-alt: #1e1e1e;
  --text-heading: #f7f5f0;
  --text-body: #cfcdc6;
  --text-muted: #93918c;
  --line: rgba(255, 255, 255, 0.1);

  --glass: rgba(40, 40, 40, 0.55);
  --glass-strong: rgba(28, 28, 28, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(20, 20, 20, 0.78);

  --gold: #e0b954;
  --gold-pale: #35301f;
}

/* -----------------------------------------------------------------
   2. RESET Y BASE
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-body);
  background: var(--bg-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 76px; /* deja espacio para la barra fija inferior */
  transition: background var(--speed-med) var(--ease), color var(--speed-med) var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

::selection { background: var(--gold); color: var(--charcoal-deep); }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: var(--radius-full); border: 2px solid var(--bg-alt); }

.skip-link {
  position: absolute; top: -60px; left: 20px; z-index: 2000;
  background: var(--charcoal-deep); color: #fff; padding: 12px 22px;
  border-radius: 8px; transition: top var(--speed-fast) var(--ease);
}
.skip-link:focus { top: 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* -----------------------------------------------------------------
   3. TIPOGRAFÍA Y UTILIDADES
   ----------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  color: var(--gold-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
[data-theme="dark"] .eyebrow { color: var(--gold); }

.section-title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 20px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; font-weight: 300; }
.section-head { text-align: center; margin: 0 auto 70px; max-width: 680px; }
.section-head.align-left { text-align: left; margin-left: 0; margin-right: 0; }
.text-center { text-align: center; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: var(--gap-section) 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding-top: 0; }

/* -----------------------------------------------------------------
   4. BOTONES
   ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 36px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.3px;
  border: none; cursor: pointer; white-space: nowrap;
  transition: all var(--speed-fast) var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--charcoal-deep);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(212, 168, 67, 0.45); }
.btn-secondary {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--charcoal);
  color: var(--text-heading);
}
[data-theme="dark"] .btn-secondary { border-color: var(--line); }
.btn-secondary:hover { background: var(--charcoal-deep); color: #fff; border-color: var(--charcoal-deep); transform: translateY(-3px); }
.btn-dark { background: var(--charcoal-deep); color: #fff; }
.btn-dark:hover { background: var(--gold); color: var(--charcoal-deep); }
.btn-sm { padding: 11px 22px; font-size: 0.82rem; }
.btn:disabled { opacity: 0.7; cursor: default; transform: none !important; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* -----------------------------------------------------------------
   5. NAVEGACIÓN
   ----------------------------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 24px 0;
  transition: all var(--speed-med) var(--ease);
}
.navbar.scrolled {
  padding: 14px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 4px 30px rgba(51, 51, 51, 0.08);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text-heading); flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-text strong { color: var(--gold-deep); }
[data-theme="dark"] .logo-text strong { color: var(--gold); }

.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-link {
  position: relative; font-size: 0.94rem; font-weight: 500; color: var(--text-heading);
  padding: 6px 0; transition: color var(--speed-fast) var(--ease);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width var(--speed-fast) var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--gold-deep); }

.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-heading);
  transition: all var(--speed-fast) var(--ease);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--gold); color: var(--charcoal-deep); transform: translateY(-2px) rotate(-6deg); border-color: var(--gold); }

.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--gold); color: var(--charcoal-deep);
  font-size: 0.64rem; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--bg-body);
}
@keyframes pulseBadge { 0% { transform: scale(1); } 35% { transform: scale(1.4); } 65% { transform: scale(0.92); } 100% { transform: scale(1); } }
.cart-badge.pulse { animation: pulseBadge 0.5s var(--ease); }

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-border);
  align-items: center; justify-content: center;
}
.hamburger span { width: 19px; height: 2px; background: var(--text-heading); transition: all var(--speed-fast) var(--ease); border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--glass-strong);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  opacity: 0; visibility: hidden; transform: translateY(-16px);
  transition: all var(--speed-med) var(--ease);
}
.mobile-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav-links { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mobile-menu .nav-link { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.mobile-menu-close { position: absolute; top: 26px; right: 28px; }
.mobile-social { display: flex; gap: 14px; margin-top: 10px; }
body.menu-open { overflow: hidden; }

/* -----------------------------------------------------------------
   6. HERO
   ----------------------------------------------------------------- */
.hero { position: relative; padding: 80px 0 var(--gap-section-sm); overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); z-index: 0; }
.hero-blob-1 { width: 360px; height: 360px; background: var(--gold); opacity: 0.3; top: -80px; right: 8%; }
.hero-blob-2 { width: 280px; height: 280px; background: var(--charcoal); opacity: 0.06; bottom: -60px; left: -100px; }

.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
}
.hero-title { font-size: clamp(2.6rem, 5.2vw, 4.3rem); margin-bottom: 26px; }
.hero-title em { color: var(--gold-deep); font-style: italic; }
.hero-subtitle { font-size: 1.12rem; color: var(--text-muted); max-width: 480px; margin-bottom: 38px; font-weight: 300; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--text-muted); font-weight: 500; }
.hero-trust-item svg { width: 17px; height: 17px; color: var(--gold-deep); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-image-frame {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  box-shadow: var(--shadow-med); aspect-ratio: 4 / 5;
}
.hero-image-frame img.hero-random-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; z-index: 0; transition: opacity 0.5s ease, transform 1.2s var(--ease);
}
.hero-image-frame img.hero-random-img.is-active { opacity: 1; z-index: 1; }
.hero-image-frame:hover img.hero-random-img.is-active { transform: scale(1.06); }
.hero-badge-tag {
  position: absolute; top: 22px; left: 22px; z-index: 2;
  padding: 10px 18px; border-radius: var(--radius-full);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.5px; color: var(--text-heading);
}
.hero-floating-card {
  position: absolute; bottom: -28px; left: -36px; z-index: 2;
  padding: 20px 26px; border-radius: var(--radius-m);
  display: flex; align-items: center; gap: 14px;
  animation: floatCard 5s ease-in-out infinite;
}
.hero-floating-card strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--text-heading); }
.hero-floating-card span { font-size: 0.78rem; color: var(--text-muted); }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* -----------------------------------------------------------------
   7. CATEGORÍAS
   ----------------------------------------------------------------- */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.category-card { position: relative; display: block; min-width: 0; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 3 / 4; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--speed-slow) var(--ease); }
.category-card:hover img { transform: scale(1.09); }
.category-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0) 42%, rgba(20, 20, 20, 0.88) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: #fff;
}
.category-overlay h3 { color: #fff; font-size: 1.35rem; margin-bottom: 4px; }
.category-count { font-size: 0.8rem; opacity: 0.85; }
.category-arrow {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; color: #fff;
  opacity: 0; transform: translate(-8px, 8px); transition: all var(--speed-fast) var(--ease);
}
.category-arrow svg { width: 16px; height: 16px; }
.category-card:hover .category-arrow { opacity: 1; transform: translate(0, 0); }

/* -----------------------------------------------------------------
   8. PRODUCTOS
   ----------------------------------------------------------------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; min-width: 0; transition: opacity var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease); }
.products-grid.grid-transitioning { opacity: 0; transform: translateY(10px); }

.product-card { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.product-info { display: flex; flex-direction: column; flex: 1; }
.product-image-wrap { position: relative; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 18px; background: var(--bg-alt); }
.product-image-link { display: block; width: 100%; height: 100%; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--speed-slow) var(--ease); }
.product-card:hover .product-image-wrap img { transform: scale(1.08); }

.product-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
}
.badge-nuevo { background: var(--charcoal-deep); color: #fff; }
.badge-oferta { background: #b6543d; color: #fff; }
.badge-bestseller { background: var(--gold); color: var(--charcoal-deep); }
.badge-agotado { background: #6b6b6b; color: #fff; }
.badge-stock {
  background: linear-gradient(
    120deg,
    #ff8800a9,
    #ff4d007e,
    #e63900,
    #ff0000a2
  );
  background-size: 300% 300%;
  color: #fff;
  animation: stockGradient 5s ease-in infinite;
}

@keyframes stockGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.product-card.is-out-of-stock .product-image-wrap img { opacity: 0.55; }
.product-card.is-out-of-stock .btn-add-cart:disabled { opacity: 0.6; cursor: not-allowed; }

.stock-status.out-of-stock { color: #b6543d; }
.stock-status.out-of-stock::before { background: #b6543d; }

.variant-swatch--size::before { content: none; }
.variant-swatch--size { padding-left: 20px; }

.product-image-wrap .btn-wishlist {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; border: none;
  color: var(--charcoal); opacity: 0; transform: translateY(-6px);
  transition: all var(--speed-fast) var(--ease);
}
.btn-wishlist svg { width: 17px; height: 17px; }
.product-card:hover .product-image-wrap .btn-wishlist { opacity: 1; transform: translateY(0); }
.product-image-wrap .btn-wishlist:hover { background: var(--gold); color: #fff; }
.product-image-wrap .btn-wishlist.active { color: #b6543d; opacity: 1; transform: translateY(0); }
.btn-wishlist.active svg { fill: #b6543d; }
/* En pantallas táctiles (sin hover) el botón de la tarjeta queda siempre visible */
@media (hover: none) {
  .product-image-wrap .btn-wishlist { opacity: 1; transform: translateY(0); }
}

.product-category { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold-deep); font-weight: 600; }
.product-info-link { display: block; }
.product-name { font-size: 1.12rem; margin: 8px 0 10px; min-height: 2.8em; transition: color var(--speed-fast) var(--ease); }
.product-info-link:hover .product-name { color: var(--gold-deep); }
.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 0.82rem; color: var(--text-muted); }

.stars { position: relative; display: inline-block; font-size: 0.92rem; letter-spacing: 2px; line-height: 1; }
.stars-bg { color: var(--line); }
.stars-fg { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: var(--gold); }

.product-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; margin-bottom: 16px; }
.price-current { font-family: var(--font-display); font-size: 1.28rem; font-weight: 700; color: var(--text-heading); }
.price-original { font-size: 0.92rem; color: var(--text-muted); text-decoration: line-through; }

.btn-add-cart { width: 100%; margin-top: auto; }
.btn-add-cart.added { background: var(--charcoal-deep); color: #fff; box-shadow: none; }

/* -----------------------------------------------------------------
   9. SOBRE NOSOTROS
   ----------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.about-image-wrap { position: relative; }
.about-image-frame { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-med); }
.about-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-stat-float {
  position: absolute; bottom: -26px; right: -26px; z-index: 2;
  padding: 22px 30px; border-radius: var(--radius-m); text-align: center;
}
.about-stat-float strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-deep); }
.about-stat-float span { font-size: 0.78rem; color: var(--text-muted); }
.about-text p { margin-bottom: 20px; color: var(--text-body); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 46px; padding-top: 46px; border-top: 1px solid var(--line); }
.stat-item h3 { font-size: 2.3rem; color: var(--gold-deep); margin-bottom: 6px; }
.stat-item span { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

/* -----------------------------------------------------------------
   10. TESTIMONIOS (CARRUSEL)
   ----------------------------------------------------------------- */
.testimonial-slider { position: relative; max-width: 820px; margin: 0 auto; }
.testimonial-track-wrap { overflow: hidden; border-radius: var(--radius-l); }
.testimonial-track { display: flex; transition: transform var(--speed-slow) var(--ease); }
.testimonial-slide { flex: 0 0 100%; padding: 60px; text-align: center; }
.testimonial-quote-icon { color: var(--gold); opacity: 0.4; margin-bottom: 18px; }
.testimonial-text { font-family: var(--font-display); font-style: italic; font-size: 1.32rem; color: var(--text-heading); line-height: 1.55; margin-bottom: 28px; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial-author img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold); }
.testimonial-author-name { font-weight: 600; color: var(--text-heading); font-size: 0.95rem; }
.testimonial-author-role { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 34px; }
.slider-arrow { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-heading); transition: all var(--speed-fast) var(--ease); }
.slider-arrow svg { width: 18px; height: 18px; }
.slider-arrow:hover { background: var(--gold); color: #fff; }
.slider-dots { display: flex; gap: 9px; }
.slider-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); border: none; transition: all var(--speed-fast) var(--ease); }
.slider-dot.active { background: var(--gold); width: 26px; border-radius: var(--radius-full); }

/* -----------------------------------------------------------------
   11. NEWSLETTER
   ----------------------------------------------------------------- */
.newsletter-card { max-width: 720px; margin: 0 auto; padding: 70px 60px; border-radius: var(--radius-l); text-align: center; }
.newsletter-form { display: flex; gap: 14px; max-width: 460px; margin: 30px auto 14px; }
.newsletter-form input {
  flex: 1; padding: 16px 22px; border-radius: var(--radius-full);
  border: 1.5px solid var(--line); background: var(--bg-body); color: var(--text-heading); font-size: 0.94rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--gold); }
.newsletter-note { font-size: 0.76rem; color: var(--text-muted); }
.newsletter-success { display: none; align-items: center; justify-content: center; gap: 10px; color: var(--gold-deep); font-weight: 600; margin-top: 20px; }
.newsletter-success svg { width: 20px; height: 20px; }

/* -----------------------------------------------------------------
   12. FOOTER
   ----------------------------------------------------------------- */
.site-footer { background: var(--charcoal-deep); color: var(--text-on-dark); padding-top: 90px; margin-top: var(--gap-section); }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand .footer-logo { color: #fff; margin-bottom: 18px; }
.footer-brand p { color: #b5b3ac; margin-bottom: 26px; max-width: 320px; font-size: 0.92rem; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; transition: all var(--speed-fast) var(--ease); }
.social-links a svg { width: 17px; height: 17px; }
.social-links a:hover { background: var(--gold); color: var(--charcoal-deep); transform: translateY(-3px); }

.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 22px; font-weight: 600; }
.footer-col ul li { margin-bottom: 13px; }
.footer-col a { color: #b5b3ac; font-size: 0.9rem; transition: all var(--speed-fast) var(--ease); display: inline-block; }
.footer-col a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; color: #b5b3ac; font-size: 0.88rem; margin-bottom: 16px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: #8a8880; }
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a:hover { color: var(--gold); }

/* -----------------------------------------------------------------
   13. BARRA FIJA INFERIOR (CTA + accesos rápidos)
   ----------------------------------------------------------------- */
.sticky-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -10px 40px rgba(51, 51, 51, 0.1);
  padding: 13px 0;
}
.sticky-bar-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.sticky-promo { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; font-weight: 500; color: var(--text-heading); white-space: nowrap; }
.sticky-quick-links { display: flex; align-items: center; gap: 6px; }
.sticky-quick-links a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-heading); position: relative; transition: all var(--speed-fast) var(--ease); }
.sticky-quick-links a svg { width: 18px; height: 18px; }
.sticky-quick-links a:hover { background: var(--gold-pale); color: var(--gold-deep); }

/* -----------------------------------------------------------------
   14. BOTÓN VOLVER ARRIBA / TOAST
   ----------------------------------------------------------------- */
.back-to-top {
  position: fixed; bottom: 100px; right: 30px; z-index: 890;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--charcoal-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  box-shadow: var(--shadow-med);
  transition: all var(--speed-fast) var(--ease);
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--charcoal-deep); }

.toast {
  position: fixed; top: 110px; right: 30px; z-index: 1200;
  background: var(--charcoal-deep); color: #fff;
  padding: 16px 24px; border-radius: var(--radius-m);
  display: flex; align-items: center; gap: 12px; max-width: 320px;
  box-shadow: var(--shadow-med);
  transform: translateX(140%);
  transition: transform var(--speed-med) var(--ease);
}
.toast.show { transform: translateX(0); }
.toast svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.toast span { font-size: 0.88rem; }

/* -----------------------------------------------------------------
   14b. PANEL LATERAL DEL CARRITO
   ----------------------------------------------------------------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 1150;
  background: rgba(20, 20, 20, 0.45);
  opacity: 0; visibility: hidden;
  transition: all var(--speed-med) var(--ease);
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1160;
  width: min(420px, 100vw);
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border-left: 1px solid var(--glass-border);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--speed-med) var(--ease);
}
.cart-drawer.active { transform: translateX(0); }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 26px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.cart-drawer-header h3 { font-size: 1.3rem; }

.cart-drawer-items { flex: 1; overflow-y: auto; padding: 20px 26px; }
.cart-empty { color: var(--text-muted); font-size: 0.92rem; text-align: center; padding: 40px 0; }
.cart-empty a { color: var(--gold-deep); font-weight: 600; text-decoration: underline; }

.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-item img { width: 64px; height: 78px; object-fit: cover; border-radius: var(--radius-s); }
.cart-item-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item-name { font-size: 0.9rem; font-weight: 500; color: var(--text-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-price { font-size: 0.84rem; color: var(--gold-deep); font-weight: 600; }
.cart-item-variant { font-size: 0.76rem; color: var(--text-muted); }
.cart-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cart-item-qty button {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: none;
  color: var(--text-heading); font-size: 0.9rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.cart-item-qty button:hover { background: var(--gold-pale); }
.cart-item-qty span { font-size: 0.85rem; min-width: 14px; text-align: center; }
.cart-item-remove { width: 32px; height: 32px; border-radius: 50%; background: none; border: none; color: var(--text-muted); display: flex; align-items: center; justify-content: center; align-self: start; }
.cart-item-remove svg { width: 16px; height: 16px; }
.cart-item-remove:hover { color: #b6543d; background: var(--gold-pale); }

.cart-drawer-footer { padding: 22px 26px 28px; border-top: 1px solid var(--line); flex-shrink: 0; }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font-size: 1rem; }
.cart-total-row strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-heading); }
.btn-block { width: 100%; margin-bottom: 12px; }
#sendWhatsAppBtn { background: linear-gradient(135deg, #3fce6a, #25b357); color: #fff; box-shadow: 0 14px 34px rgba(37, 179, 87, 0.35); }
#sendWhatsAppBtn:hover { box-shadow: 0 20px 40px rgba(37, 179, 87, 0.45); }

@media (max-width: 480px) {
  .cart-drawer { width: 100vw; }
}

/* -----------------------------------------------------------------
   15. ANIMACIONES DE APARICIÓN AL HACER SCROLL
   ----------------------------------------------------------------- */
.fade-in { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

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

/* -----------------------------------------------------------------
   16. PÁGINA DE CATÁLOGO
   ----------------------------------------------------------------- */
.page-banner { padding: 170px 0 56px; text-align: center; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.84rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold-deep); }

.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  margin-bottom: 50px; padding: 22px 28px; border-radius: var(--radius-m);
}
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill {
  padding: 10px 22px; border-radius: var(--radius-full); border: 1.5px solid var(--line);
  background: transparent; color: var(--text-body); font-size: 0.86rem; font-weight: 500;
  transition: all var(--speed-fast) var(--ease);
}
.filter-pill:hover { border-color: var(--gold); }
.filter-pill.active { background: var(--charcoal-deep); border-color: var(--charcoal-deep); color: #fff; }
[data-theme="dark"] .filter-pill.active { background: var(--gold); border-color: var(--gold); color: var(--charcoal-deep); }
.filter-pill--favorites { display: inline-flex; align-items: center; gap: 7px; }
.filter-pill--favorites svg { width: 15px; height: 15px; flex-shrink: 0; }
.filter-pill--favorites.active svg { fill: #b6543d; stroke: #b6543d; }
[data-theme="dark"] .filter-pill--favorites.active svg { fill: var(--charcoal-deep); stroke: var(--charcoal-deep); }

.catalog-empty-state {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 70px 20px; text-align: center; color: var(--text-muted);
}
.catalog-empty-state svg { width: 46px; height: 46px; color: var(--line); }
.catalog-empty-state p { max-width: 360px; font-size: 0.95rem; }

.toolbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.results-count { font-size: 0.84rem; color: var(--text-muted); white-space: nowrap; }
.sort-select {
  padding: 11px 40px 11px 18px; border-radius: var(--radius-full); border: 1.5px solid var(--line);
  background-color: var(--bg-body);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 13px;
  appearance: none; -webkit-appearance: none;
  font-size: 0.84rem; color: var(--text-body);
}
.load-more-wrap { text-align: center; margin-top: 60px; }

/* -----------------------------------------------------------------
   17. PÁGINA DE PRODUCTO
   ----------------------------------------------------------------- */
.product-detail { padding: 170px 0 var(--gap-section-sm); }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }

.gallery-main { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 18px; box-shadow: var(--shadow-med); background: var(--bg-alt); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--speed-fast) var(--ease); }
.gallery-zoom-hint {
  position: absolute; bottom: 16px; right: 16px; width: 40px; height: 40px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(8px); color: var(--charcoal);
  opacity: 0; transform: translateY(6px); transition: all var(--speed-fast) var(--ease);
  pointer-events: none;
}
.gallery-zoom-hint svg { width: 18px; height: 18px; }
.gallery-main:hover .gallery-zoom-hint { opacity: 1; transform: translateY(0); }
@media (hover: none) { .gallery-zoom-hint { opacity: 1; transform: translateY(0); } }
.gallery-thumbs { display: flex; gap: 14px; }
.thumb { width: 86px; height: 86px; border-radius: var(--radius-s); overflow: hidden; border: 2px solid transparent; padding: 0; opacity: 0.6; transition: all var(--speed-fast) var(--ease); }
.thumb.active, .thumb:hover { border-color: var(--gold); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-title { font-size: 2.1rem; margin: 10px 0 16px; }
.product-detail-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.product-detail-rating a { font-size: 0.84rem; color: var(--text-muted); }
.product-detail-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.product-detail-price .price-current { font-size: 1.9rem; }
.product-detail-price .price-original { font-size: 1.05rem; }

.stock-status { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: #3f9142; font-weight: 600; margin-bottom: 22px; }
.stock-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3f9142; flex-shrink: 0; }
.product-detail-desc { color: var(--text-body); margin-bottom: 30px; }

.variant-selector { margin-bottom: 26px; }
.variant-label { display: block; font-weight: 600; color: var(--text-heading); margin-bottom: 12px; font-size: 0.88rem; }
.variant-options { display: flex; gap: 10px; flex-wrap: wrap; }
.variant-swatch {
  padding: 10px 20px 10px 16px; border-radius: var(--radius-full); border: 1.5px solid var(--line);
  background: transparent; font-size: 0.84rem; color: var(--text-body);
  display: flex; align-items: center; gap: 8px; transition: all var(--speed-fast) var(--ease);
}
.variant-swatch::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--swatch-color); flex-shrink: 0; }
.variant-swatch.active { border-color: var(--charcoal); background: var(--gold-pale); font-weight: 600; color: var(--text-heading); }
[data-theme="dark"] .variant-swatch.active { border-color: var(--gold); }

.purchase-row { display: flex; gap: 16px; margin-bottom: 24px; }
.quantity-selector { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-full); overflow: hidden; flex-shrink: 0; }
.qty-btn { width: 44px; height: 52px; background: none; border: none; font-size: 1.15rem; color: var(--text-heading); transition: background var(--speed-fast); }
.qty-btn:hover { background: var(--gold-pale); }
.qty-input { width: 40px; text-align: center; border: none; background: none; font-size: 0.98rem; color: var(--text-heading); }
.purchase-row .btn-add-cart { flex: 1; }
.btn-icon-square {
  width: 52px; height: 52px; border-radius: var(--radius-full); border: 1.5px solid var(--line);
  background: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--text-heading); transition: all var(--speed-fast) var(--ease);
}
.btn-icon-square svg { width: 19px; height: 19px; }
.btn-icon-square:hover, .btn-icon-square.active { background: var(--gold-pale); border-color: var(--gold); color: #b6543d; }
.btn-icon-square.active svg { fill: #b6543d; }

.detail-trust-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.trust-badge-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 0.76rem; color: var(--text-muted); }
.trust-badge-item svg { width: 22px; height: 22px; color: var(--gold-deep); }

.product-tabs { margin-top: var(--gap-section-sm); }
.tabs-header { display: flex; gap: 8px; border-bottom: 1.5px solid var(--line); margin-bottom: 36px; flex-wrap: wrap; }
.tab-btn { padding: 16px 26px 16px 4px; margin-right: 22px; background: none; border: none; font-size: 0.94rem; font-weight: 500; color: var(--text-muted); position: relative; }
.tab-btn::after { content: ''; position: absolute; left: 4px; right: 22px; bottom: -1.5px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--speed-fast) var(--ease); }
.tab-btn.active { color: var(--text-heading); font-weight: 600; }
.tab-btn.active::after { transform: scaleX(1); }
.tab-content { display: none; max-width: 780px; color: var(--text-body); }
.tab-content.active { display: block; animation: fadeInUp 0.5s var(--ease); }
.tab-content p + p { margin-top: 16px; }
.tab-content ul { margin-top: 14px; }
.tab-content li { padding-left: 22px; position: relative; margin-bottom: 10px; }
.tab-content li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 0.75rem; top: 3px; }

.related-products { margin-top: var(--gap-section-sm); }

/* -----------------------------------------------------------------
   18. RESPONSIVE
   ----------------------------------------------------------------- */
@media (max-width: 1200px) {
  .products-grid, .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  :root { --gap-section: 96px; }
  .hero { padding-top: 150px; }
  .hero-inner, .about-grid, .product-detail-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-visual { order: -1; }
  .about-image-wrap { max-width: 460px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px; }
}

@media (max-width: 968px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .categories-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-promo { display: none; }
}

@media (max-width: 560px) {
  .categories-grid, .products-grid { gap: 14px; }
}

@media (max-width: 768px) {
  :root { --gap-section: 72px; --gap-section-sm: 56px; }
  .container, .nav-inner, .hero-inner, .sticky-bar-inner, .footer-inner { padding-left: 22px; padding-right: 22px; }
  .hero { padding-top: 130px; }
  .hero-visual { order: 0; }
  .hero-image-frame { aspect-ratio: 1 / 1; }
  .hero-floating-card { left: 0; bottom: -20px; padding: 14px 18px; gap: 10px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { flex-direction: column; gap: 12px; }
  .about-stat-float { padding: 16px 20px; }
  .newsletter-card { padding: 44px 26px; }
  .newsletter-form { flex-direction: column; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-right { justify-content: space-between; }
  .page-banner { padding: 140px 0 44px; }
  .product-detail { padding-top: 140px; }
  .purchase-row { flex-direction: column; }
  .purchase-row .btn-icon-square { align-self: flex-start; }
  .tabs-header { flex-wrap: nowrap; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; }
  .tabs-header::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; }
  .detail-trust-badges { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sticky-bar-inner .btn-sm { padding: 11px 18px; }
}

@media (max-width: 560px) {
  .section { padding: var(--gap-section) 0; }
  .section-title { font-size: 1.75rem; }
  .testimonial-slide { padding: 34px 22px; }
  .testimonial-text { font-size: 1.05rem; }
  .about-stat-float { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------
   Preguntas Frecuentes (faq.html)
   --------------------------------------------------------------- */
.faq-container { max-width: 820px; }
.faq-group { margin-bottom: 54px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group-title {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  color: var(--text-heading); margin-bottom: 22px;
}
.faq-item {
  border: 1.5px solid var(--line); border-radius: var(--radius-m);
  margin-bottom: 14px; overflow: hidden; background: var(--bg-body);
  transition: border-color var(--speed-fast) var(--ease);
}
.faq-item[open] { border-color: var(--gold); }
.faq-question {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; padding: 20px 24px;
  font-weight: 600; color: var(--text-heading); font-size: 0.98rem;
  -webkit-tap-highlight-color: transparent;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative; flex-shrink: 0; width: 20px; height: 20px;
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; top: 50%; left: 50%; background: var(--gold-deep);
  transform: translate(-50%, -50%); transition: transform var(--speed-fast) var(--ease);
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.faq-answer { padding: 0 24px 22px; color: var(--text-body); font-size: 0.94rem; line-height: 1.7; }
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.faq-answer li::marker { color: var(--gold-deep); }

@media (max-width: 560px) {
  .faq-question { padding: 16px 18px; font-size: 0.92rem; }
  .faq-answer { padding: 0 18px 18px; }
}

@media (max-width: 340px) {
  .categories-grid, .products-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   Lightbox de galería (../item/)
   --------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 18, 16, 0.92); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity var(--speed-fast) var(--ease);
}
body.lightbox-open { overflow: hidden; }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-stage { max-width: 88vw; max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.lightbox-stage img {
  max-width: 88vw; max-height: 86vh; width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius-m); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.96); opacity: 0; transition: all var(--speed-fast) var(--ease);
}
.lightbox.active .lightbox-stage img { transform: scale(1); opacity: 1; }

.lightbox-close, .lightbox-arrow {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.1); color: #fff;
  transition: background var(--speed-fast) var(--ease);
}
.lightbox-close:hover, .lightbox-arrow:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close svg, .lightbox-arrow svg { width: 20px; height: 20px; }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-arrow { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75); font-size: 0.82rem; letter-spacing: 0.5px;
}

@media (max-width: 640px) {
  .lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .lightbox-arrow { width: 40px; height: 40px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-stage img { max-width: 92vw; max-height: 78vh; }
}
