/* ========================================================
   KROMA ABSTRACT — Galería de Arte Abstracto Moderno, Texturas 3D & Gran Formato — SISTEMA VISUAL CORPORATIVO
   Diseño Cinematográfico Tempo & Arte Abstracto
   ======================================================== */

@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: #08080a;
  --bg-surface: #121216;
  --bg-card: rgba(22, 22, 28, 0.82);
  --bg-card-hover: rgba(34, 34, 44, 0.95);
  --border-subtle: rgba(245, 158, 11, 0.22);
  --border-glow: rgba(245, 158, 11, 0.52);
  
  --accent-main: #f59e0b;
  --accent-secondary: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.28);
  --status-ok: #10b981;
  
  --text-light: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  
  --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;
}

/* --- BARRA 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(8, 8, 10, 0.88);
  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.03em;
  color: var(--text-light);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-main), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #08080a;
  font-weight: 900;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-trigger-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.cart-trigger-btn:hover {
  border-color: var(--accent-main);
  background: rgba(245, 158, 11, 0.1);
}

.cart-count {
  background: var(--accent-main);
  color: #08080a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
}

/* --- BOTONES PÍLDORA (62PX) --- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 62px;
  padding: 0 34px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-main), var(--accent-secondary));
  color: #08080a;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

/* --- HERO TEMPO CINEMATOGRÁFICO (100svh) --- */
.hero-stage {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  padding: 0 40px 60px;
  overflow: hidden;
  cursor: pointer;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.55) contrast(1.1);
}

.hero-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(8, 8, 10, 0.25) 0%, rgba(8, 8, 10, 0.88) 85%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  transition: var(--transition);
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-main);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- MODO INMERSIVO --- */
.immersive-exit-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 200;
  display: none;
  background: rgba(8, 8, 10, 0.9);
  border: 1px solid var(--border-glow);
  color: var(--text-light);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

body.is-immersive .header-nav,
body.is-immersive .hero-content,
body.is-immersive .stats-bar,
body.is-immersive .section-wrapper,
body.is-immersive .footer-main {
  opacity: 0;
  pointer-events: none;
}

body.is-immersive .immersive-exit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
  pointer-events: auto;
}

/* --- BARRA DE STATS --- */
.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 30px 40px;
}

.stats-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-item {
  border-left: 2px solid var(--accent-main);
  padding-left: 18px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- SECCIONES Y CONTENEDOR --- */
.section-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 100px 40px;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-main);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-light);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* --- GRID DE PRODUCTOS / CATÁLOGO --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.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);
  backdrop-filter: blur(12px);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.product-img-box {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #111;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(8, 8, 10, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-main);
  backdrop-filter: blur(8px);
}

.product-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-spec {
  font-size: 0.78rem;
  color: var(--accent-main);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.3;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-cop {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-light);
}

.price-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.btn-card-add {
  background: var(--accent-main);
  color: #08080a;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-add:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* --- DRAWER DEL CARRITO REACTIVO --- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: rgba(14, 14, 18, 0.96);
  backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-subtle);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-light);
}

.cart-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--accent-main);
  font-weight: 700;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.1rem;
}

.cart-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 28px;
  background: rgba(8, 8, 10, 0.8);
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.cart-total-final {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-light);
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-top: 6px;
}

/* --- DASHBOARD / TELEMETRÍA / DIAN --- */
.dashboard-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 40px;
  backdrop-filter: blur(14px);
}

.telemetry-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.telemetry-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.telemetry-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.telemetry-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-main);
}

.telemetry-status {
  font-size: 0.75rem;
  color: var(--status-ok);
  margin-top: 4px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.data-table th {
  text-align: left;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

/* --- FOOTER --- */
.footer-main {
  background: #050507;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 40px 30px;
}

.footer-grid {
  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: var(--text-light);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-main);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .header-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero-stage { padding: 0 20px 40px; }
  .section-wrapper { padding: 60px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
