/* ========================================================
   VALHALLA 3D STUDIOS — FIGURAS & ESTATUAS GAMING EN RESINA 12K
   Diseño Cinematográfico Tempo / Dark Neon Gaming High-End
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-deep: #07060c;
  --bg-surface: #0f0d1a;
  --bg-card: rgba(19, 16, 33, 0.75);
  --bg-card-hover: rgba(28, 23, 48, 0.9);
  --border-subtle: rgba(168, 85, 247, 0.15);
  --border-glow: rgba(168, 85, 247, 0.45);
  
  --purple-neon: #a855f7;
  --magenta-neon: #ec4899;
  --cyan-neon: #06b6d4;
  --gold-collector: #fbbf24;
  --purple-glow: rgba(168, 85, 247, 0.25);
  
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  --radius-pill: 62px;
  --radius-card: 20px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
}

/* --- HEADER DE NAVEGACIÓN --- */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(7, 6, 12, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: var(--transition);
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

.logo-brand .badge-tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
  color: var(--purple-neon);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--purple-neon);
  text-shadow: 0 0 12px var(--purple-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #ffffff;
  box-shadow: 0 4px 25px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(236, 72, 153, 0.5);
}

.btn-secondary {
  background: rgba(28, 23, 48, 0.6);
  color: var(--text-light);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(38, 30, 68, 0.9);
  border-color: var(--purple-neon);
  color: var(--purple-neon);
}

.cart-icon-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(19, 16, 33, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.cart-icon-btn:hover {
  border-color: var(--purple-neon);
  color: var(--purple-neon);
}

.cart-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--magenta-neon);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- HERO CINEMATOGRÁFICO TEMPO --- */
.center-stage {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-deep);
}

.stage-media-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.stage-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) contrast(1.2) saturate(1.2);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.stage-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(7, 6, 12, 0.15) 0%, rgba(7, 6, 12, 0.85) 75%, #07060c 100%),
              linear-gradient(180deg, rgba(7, 6, 12, 0.7) 0%, transparent 40%, rgba(7, 6, 12, 0.98) 100%);
  pointer-events: none;
}

.stage-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 980px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stage-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--purple-neon);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.stage-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5.4vw, 86px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.stage-title span {
  background: linear-gradient(135deg, #a855f7 30%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stage-desc {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 740px;
  margin-bottom: 38px;
  font-weight: 400;
}

.stage-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

/* MODO INMERSIVO */
.center-stage.immersive .stage-content,
.center-stage.immersive ~ .header-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

.center-stage.immersive .stage-video {
  transform: scale(1.04);
  filter: brightness(0.85) contrast(1.15);
}

.center-return {
  position: absolute;
  bottom: 40px;
  z-index: 10;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.center-stage.immersive .center-return {
  display: inline-flex;
  opacity: 1;
  transform: translateY(0);
}

/* --- SECCIONES Y CONTENEDORES --- */
.section-wrapper {
  padding: 100px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-neon);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- GRID DE PRODUCTOS --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(10px);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px var(--purple-glow);
}

.product-img-box {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #020205;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 6, 12, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  color: var(--purple-neon);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-spec {
  font-size: 0.78rem;
  color: var(--purple-neon);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  margin-top: auto;
}

.product-price-block {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.price-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.price-tax {
  font-size: 0.7rem;
  color: var(--gold-collector);
  font-weight: 600;
}

.btn-add-cart {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--purple-neon), var(--magenta-neon));
  color: #ffffff;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-cart:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.4);
}

/* --- BANNER DE ESPECIFICACIONES --- */
.stats-banner {
  background: linear-gradient(180deg, rgba(15, 13, 26, 0.9) 0%, rgba(7, 6, 12, 0.9) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 60px 24px;
}

.stats-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--purple-neon);
  margin-bottom: 4px;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

/* --- TELEMETRÍA & DASHBOARD --- */
.dashboard-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.telemetry-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.telemetry-card {
  background: rgba(7, 6, 12, 0.65);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-sm);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.telemetry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--purple-neon);
}

.telemetry-card.magenta::before {
  background: var(--magenta-neon);
}

.telemetry-card.gold::before {
  background: var(--gold-collector);
}

.telemetry-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.telemetry-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

.telemetry-status {
  font-size: 0.75rem;
  margin-top: 4px;
  display: inline-block;
}

/* TABLA DIAN */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.data-table th {
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple-neon);
  padding: 14px 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.data-table tr:hover td {
  background: rgba(168, 85, 247, 0.04);
  color: var(--text-light);
}

/* --- CARRITO LATERAL (DRAWER) --- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 7, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #0e0b1a;
  border-left: 1px solid var(--border-subtle);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.btn-close-cart {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-close-cart:hover {
  color: var(--purple-neon);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(28, 23, 48, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
}

.cart-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--purple-neon);
  margin-top: 4px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #080611;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-summary-line.total {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  margin-top: 10px;
}

.btn-checkout-wa {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #030811;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-checkout-wa:hover {
  background: #20ba59;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

/* --- FOOTER CORPORATIVO --- */
.site-footer {
  background: #040308;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 24px 30px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--purple-neon);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .header-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .product-grid { grid-template-columns: 1fr; }
}
