/* ============================================================
   main.css — Estilos globales y variables de DANREINA 3D Store (nivel superior)
   ============================================================ */

/* === VARIABLES CSS === */
:root {
  --color-black:        #000000;
  --color-white:        #ffffff;
  --color-accent:       #06b6d4;
  --color-accent-light: #67e8f9;
  --color-accent-dark:  #0891b2;
  --color-accent-glow:  rgba(6, 182, 212, 0.35);
  --color-purple:       #a855f7;
  --color-purple-light: #d8b4fe;
  --color-purple-glow:  rgba(168, 85, 247, 0.3);
  --color-gray-100:     #f7f7f7;
  --color-gray-200:     #eeeeee;
  --color-gray-300:     #dddddd;
  --color-gray-400:     #aaaaaa;
  --color-gray-600:     #666666;
  --color-gray-800:     #222222;
  --color-gray-900:     #111111;
  --color-dark-bg:      #0a0a0a;
  --color-dark-card:    #111111;
  --color-dark-border:  #222222;

  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-hero: 'Outfit', system-ui, -apple-system, sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  --shadow-sm:     0 2px 8px rgba(0,0,0,0.12);
  --shadow-md:     0 4px 24px rgba(0,0,0,0.18);
  --shadow-lg:     0 8px 48px rgba(0,0,0,0.28);
  --shadow-accent: 0 0 32px rgba(6, 182, 212, 0.35);
  --shadow-purple: 0 0 32px rgba(168, 85, 247, 0.35);

  --transition-fast: 0.18s ease;
  --transition-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s  cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 70px;
  --z-cursor:   9999;
  --z-nav:      1000;
  --z-cart:     900;
  --z-modal:    800;
  --z-loader:   10000;

  /* Spotlight hero */
  --spotlight-x: 50%;
  --spotlight-y: 40%;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-black);
  color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-body);
}

ul, ol {
  list-style: none;
}


/* === LOADER (mejorado) === */
#loader {
  position: fixed;
  inset: 0;
  background: var(--color-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
  overflow: hidden;
}

#loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    rgba(6, 182, 212, 0.07) 0%,
    transparent 70%
  );
  animation: auroraFloat 6s ease-in-out infinite;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-hero);
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-white);
  margin-bottom: 48px;
  animation: loaderLogoIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
}

.loader-logo span {
  color: var(--color-accent);
}

.loader-logo::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.loader-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 220px;
}

.loader-bar {
  width: 100%;
  height: 1.5px;
  background: var(--color-dark-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light), var(--color-purple));
  border-radius: var(--radius-full);
  animation: loaderProgress 1.8s cubic-bezier(0.4, 0, 0.6, 1) forwards;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.7);
}

.loader-pct {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  font-variant-numeric: tabular-nums;
}

/* === NAVBAR (mejorado) === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 60px);
  z-index: var(--z-nav);
  transition:
    background var(--transition-base),
    backdrop-filter var(--transition-base),
    box-shadow var(--transition-base),
    border-bottom var(--transition-base);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06),
    0 4px 24px rgba(0,0,0,0.4);
}

.navbar.scrolled .nav-logo {
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.nav-logo {
  font-family: var(--font-hero);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-white);
  transition: text-shadow var(--transition-base);
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-purple));
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Botón hamburger mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Menú mobile overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(20px);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.nav-mobile-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.nav-mobile-overlay a {
  font-family: var(--font-hero);
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-fast);
}

.nav-mobile-overlay a:hover {
  color: var(--color-accent-light);
}

/* === BANNER AVISO === */
#site-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent), var(--color-accent-dark));
  background-size: 200% 100%;
  animation: aurora 4s linear infinite;
  color: var(--color-white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  z-index: calc(var(--z-nav) - 1);
  transform: translateY(-100%);
  transition: transform var(--transition-base);
}

#site-banner.visible {
  transform: translateY(var(--nav-height));
}

/* === SECCIÓN HERO (nivel superior) === */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Fondo con aurora + spotlight dinámico */
  background:
    radial-gradient(ellipse 70% 55% at var(--spotlight-x) var(--spotlight-y), rgba(6, 182, 212, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 15% 85%, rgba(168, 85, 247, 0.055) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 85% 15%, rgba(34, 211, 238, 0.04) 0%, transparent 50%),
    #000000;
}

/* Aurora animada en el hero */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
  animation: auroraFloat 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Líneas decorativas del hero */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--nav-height) + 20px) clamp(16px, 5vw, 80px) 0;
  pointer-events: none;
  width: 100%;
  max-width: 900px;
}

/* Vignette oscuro detrás del texto para garantizar legibilidad */
.hero-content::before {
  content: '';
  position: absolute;
  inset: -40px -80px -60px;
  background: radial-gradient(ellipse 80% 85% at 50% 45%, rgba(0,0,0,0.55) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-eyebrow {
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.hero-title {
  font-family: var(--font-hero);
  font-size: clamp(3rem, 7.5vw, 7rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--color-white);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  text-shadow:
    0 2px 10px rgba(0,0,0,0.85),
    0 6px 36px rgba(0,0,0,0.65);
}

.hero-title .accent {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 40%, #e879f9 70%, #38bdf8 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 6s ease infinite;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  opacity: 0;
  transform: translateY(16px);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  background: #7c3aed;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  pointer-events: all;
  opacity: 0;
  transform: translateY(16px);
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.hero-cta:hover {
  background: #6d28d9;
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5), 0 8px 30px rgba(124, 58, 237, 0.3);
}

.hero-cta:hover::before {
  opacity: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.scroll-chevron {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid rgba(255,255,255,0.35);
  border-bottom: 1.5px solid rgba(255,255,255,0.35);
  transform: rotate(45deg);
  animation: chevronPulse 1.8s ease-in-out infinite;
}

/* === SCROLL STORYTELLING === */
.storytelling-section {
  position: relative;
  background: var(--color-black);
}

.sticky-wrapper {
  position: relative;
  height: 400vh;
  overflow: clip;
}

.sticky-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Aurora en paneles oscuros */
.panel-a::before,
.panel-c::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  animation: auroraFloat 7s ease-in-out infinite;
  pointer-events: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.panel-b::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
  animation: auroraFloat 9s ease-in-out infinite reverse;
  pointer-events: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.panel-inner {
  text-align: center;
  padding: 0 clamp(20px, 6vw, 100px);
  max-width: 900px;
  position: relative;
  z-index: 6;
}

/* Panel A */
.panel-a {
  background: var(--color-black);
  position: relative;
}

/* Fondo técnico de precisión (panel A) */
.precision-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.precision-bg svg {
  width: 100%;
  height: 100%;
}
/* Se activa cuando el panel entra en pantalla (toggled por GSAP ScrollTrigger) */
.panel-a.precision-visible .precision-bg {
  opacity: 1;
}

/* Línea de escaneo animada */
@keyframes precisionScan {
  0%   { transform: translateY(-80px); }
  100% { transform: translateY(880px); }
}
.precision-scan {
  animation: precisionScan 5s linear infinite;
  will-change: transform;
}

.panel-title {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.char-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}

/* Panel B */
.panel-b {
  background: var(--color-dark-bg);
  position: relative;
}

.features-grid {
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 200px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.25rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-icon.icon-violet {
  color: #7c3aed;
}

.feature-icon.icon-cyan {
  color: #00bcd4;
}

.feature-item:hover .feature-icon {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 0 32px rgba(124, 58, 237, 0.35);
}

.feature-item:nth-child(2):hover .feature-icon {
  box-shadow: 0 0 32px rgba(0, 188, 212, 0.35);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
}

.feature-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.6;
}

/* Panel C */
.panel-c {
  background: var(--color-black);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: 48px;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-number {
  font-family: var(--font-hero);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  background: linear-gradient(90deg, #06b6d4, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-suffix {
  font-size: 0.65em;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  margin-top: 10px;
  letter-spacing: 0.05em;
}

/* Panel D */
.panel-d {
  background: var(--color-dark-bg);
  position: relative;
  overflow: hidden;
}

.panel-d::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: auroraFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-white);
}

.cta-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 48px;
  line-height: 1.7;
}

.btn-magnetic {
  display: inline-block;
  padding: 18px 52px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.btn-magnetic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-magnetic:hover {
  box-shadow: 0 8px 40px rgba(6, 182, 212, 0.55);
}

.btn-magnetic:hover::before {
  opacity: 1;
}

/* === SECCIÓN CATÁLOGO === */
.catalog-section {
  background: var(--color-dark-bg);
  color: var(--color-white);
  padding: clamp(60px, 8vw, 120px) clamp(16px, 5vw, 80px);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === FOOTER === */
.footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.6);
  padding: clamp(48px, 6vw, 80px) clamp(16px, 5vw, 80px) 32px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(6,182,212,0.04), transparent);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .nav-logo {
  font-size: 1.4rem;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--color-accent-light);
  transform: translateX(4px);
}

/* Links "próximamente" en el footer */
.footer-soon {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.22);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
  user-select: none;
}
.footer-soon em {
  font-style: normal;
  font-size: 0.68em;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  opacity: 0.45;
  background: rgba(6,182,212,0.08);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(6,182,212,0.2);
}

/* Iconos sociales desactivados */
.social-link.social-soon {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  color: rgba(255,255,255,0.6);
}

.social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.78rem;
}


/* === SKELETON LOADER === */
@keyframes skeletonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === BACK TO TOP === */
#back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #7c3aed;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
#back-to-top:hover { transform: translateY(-3px); }

/* === BOTONES GLOBALES === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-accent);
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* === RESPONSIVO === */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links   { display: none; }
  .nav-hamburger { display: flex; }

  .hero-section {
    min-height: 100svh;
  }

  .hero-content {
    padding-top: calc(var(--nav-height) + 8px);
    padding-left: 20px;
    padding-right: 20px;
  }

  .sticky-panel {
    padding: 0 20px;
  }

  .panel-inner {
    padding: 0;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .features-grid {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .stats-grid {
    gap: 28px;
  }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-height: 60px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-cta {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .panel-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }
}

/* ── Auth Navbar ── */
.btn-nav-login {
  padding: 8px 16px;
  background: transparent;
  color: #7c3aed;
  border: 1px solid #7c3aed;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.btn-nav-login:hover { background: rgba(124,58,237,0.1); }

.btn-nav-register {
  padding: 8px 16px;
  background: #7c3aed;
  color: #fff;
  border: 1px solid #7c3aed;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-left: 8px;
  transition: background 0.2s;
}
.btn-nav-register:hover { background: #6d28d9; }

.nav-user { position: relative; }

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #7c3aed;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.nav-avatar:hover { background: #6d28d9; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 6px;
  min-width: 190px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.nav-dropdown.open { display: flex; }
.nav-dropdown-info {
  padding: 10px 12px 8px;
}
.nav-dropdown-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e5e5e5;
}
.nav-dropdown-email {
  font-size: 0.75rem;
  color: #666;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-dropdown-sep {
  height: 1px;
  background: #222;
  margin: 4px 0;
}
.nav-dropdown a,
.nav-dropdown button {
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 0.875rem;
  color: #ccc;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:hover,
.nav-dropdown button:hover {
  background: rgba(124,58,237,0.15);
  color: #fff;
}
@media (max-width: 767px) {
  .btn-nav-login, .btn-nav-register { display: none; }
}

/* ── Responsive fixes adicionales ── */
@media (max-width: 480px) {
  /* iOS: evitar zoom al hacer focus en inputs */
  input, textarea, select { font-size: 16px !important; }

  /* Cookie banner en columna en móvil pequeño */
  #cookie-banner {
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px !important;
  }

  /* Back to top no choca con el FAB del carrito */
  #back-to-top {
    bottom: 86px;
    left: 16px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  /* Legal pages: navbar padding reducido */
  .navbar { padding: 0 16px; }
}
