:root {
  --color-bg:           #0E0C0A;  /* Negro espresso cálido */
  --color-bg-light:     #181410;  /* Café oscuro elegante */
  --color-bg-card:      #201A13;  /* Chocolate profundo */
  --color-primary:      #C49A3C;  /* Amarillo quemado — miel oscura */
  --color-primary-hover:#D4AB52;  /* Hover dorado más claro */
  --color-primary-dim:  #8A6B28;  /* Variación oscura para detalles */
  --color-text-main:    #EDE4CE;  /* Marfil cálido, no blanco frío */
  --color-text-muted:   #C4B49F;  /* Beige apagado claro para contraste WCAG */
  --color-border:       #2E2416;  /* Borde café oscuro */

  /* Tipografías: Century Gothic (display) + Dutch801 XBd BT (impacto) */
  --font-display:  'Century Gothic', 'Century', 'Trebuchet MS', sans-serif;
  --font-impact:   'Dutch801 XBd BT', 'Georgia', 'Times New Roman', serif;
  --font-body:     'Inter', 'Segoe UI', sans-serif;

  --transition-fast:   0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Elegant custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-bg);
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-surface);
  border-radius: 5px;
  border: 2px solid var(--color-bg); /* Padding fluid effect */
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-primary);
}

* {
  /* Restablecer comportamiento estándar para Firefox/Edge */
  scrollbar-color: var(--color-surface) var(--color-bg);
  scrollbar-width: thin;
}

html, body {
  overflow-x: hidden; /* Fundamental para evitar la franja negra lateral en móviles */
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.section-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 1px;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Buttons — Square ROKR-style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 0px; /* Cuadrado estilo editorial */
  cursor: pointer;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth), background-color var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #0E0C0A;
  box-shadow: 0 4px 18px rgba(196, 154, 60, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 154, 60, 0.45);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #0E0C0A;
  box-shadow: 0 4px 18px rgba(196, 154, 60, 0.35);
}

/* Header — fondo negro limpio, sin textura madera */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(13, 11, 9, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196, 154, 60, 0.3);
  padding: 12px 0;
}

header.header-scrolled {
  background-color: rgba(13, 11, 9, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-primary);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-container img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
}

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

nav.desktop-nav a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  z-index: 1001;
  padding: 15px;
  border-radius: 8px;
}
.menu-toggle:active {
  background-color: rgba(255,255,255,0.05);
}

.menu-toggle span {
  display: block;
  width: 38px;
  height: 4px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* Mobile Nav Overlay (Dropdown-like) */
.mobile-nav {
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  background: rgba(15, 12, 10, 0.96);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: none; /* Hidden by defaultsite-wide */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  z-index: 1000;
  padding: 50px 0 70px 0;
  border-bottom: 2px solid var(--color-primary);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.mobile-nav.active {
  display: flex !important;
  animation: slideDownFade 0.4s ease-out forwards;
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav a {
  color: white;
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 10px 30px;
  transition: transform 0.3s, color 0.3s;
}

.mobile-nav a:hover, .mobile-nav a:active {
  color: var(--color-primary);
  transform: scale(1.05);
}

.mobile-nav a.active {
  color: var(--color-primary);
}

nav.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

@media (max-width: 768px) {
    .desktop-only-text {
        display: none;
    }
    .video-background-wrapper {
        display: none !important;
    }
    .mobile-static-bg {
        display: block !important;
    }
}

nav.desktop-nav a:hover::after,
nav.desktop-nav a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  width: 100%;
  height: 56.25vw; /* Perfectly maps to 16:9 video horizontal aspect ratio */
  min-height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #111;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Dark gradient overlay for the text on the "portada" / video */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.7) 40%, rgba(17,17,17,0.4) 100%);
  z-index: 1;
}

/* -------------------------------------------
   Sprite de Auto Animado para el Hero
   Diseño de 7 fotogramas responsivo
-------------------------------------------- */
.fondo-coche-animado {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  z-index: 1;
  background-image: url('media/thumbnails/coche-luz.jpg');
  /* La imagen es 7 veces el tamaño del contenedor que equivale a 1 fotograma */
  background-size: 700% 100%;
  background-repeat: no-repeat;
  background-color: #111;
  filter: brightness(0.75);
  
  /* Variable para calcular responsivamente el 100% real del ancho actual */
  --frame-width: max(100vw, 177.77vh); 
  
  /* steps(7, end) crea 7 fotogramas perfectos si lo movemos un 700% de distancia original */
  animation: parpadeo-luz 1s steps(7, end) infinite;
}

@keyframes parpadeo-luz {
  to { background-position: calc(var(--frame-width) * -7) 0px; }
}

/* -------------------------------------------
   Sprite Animado 11 fotogramas (Catálogo)
-------------------------------------------- */
.fondo-coche2-animado {
  position: fixed; /* Fijo para el catálogo */
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  z-index: -1; /* Al fondo */
  background-image: url('media/thumbnails/cocheluz2.jpg');
  background-size: 1100% 100%;
  background-repeat: no-repeat;
  background-color: #111;
  opacity: 1; /* Se eliminó el filtro de opacidad para que se vea con sus colores naturales */
  
  --frame-width: max(100vw, 177.77vh); 
  animation: parpadeo-luz-11 1.4s steps(11, end) infinite; /* Ajusté a 1.4s para equilibrar la velocidad de los 11 fotogramas */
}

@keyframes parpadeo-luz-11 {
  to { background-position: calc(var(--frame-width) * -11) 0px; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero h1 {
  font-size: 5.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  line-height: 1.05;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero p {
  font-size: 1.25rem;
  color: #ddd;
  margin-bottom: 2.5rem;
  font-weight: 400;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.hero .btn-group {
  display: flex;
  gap: 16px;
}

/* Product Grid */
.section {
  padding: 100px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.product-card {
  background-color: var(--color-bg-card);
  border-radius: 0px;  /* Cuadrado editorial */
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 36px rgba(196, 154, 60, 0.2);
}

.product-image-wrapper {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background-color: var(--color-bg-light);
  cursor: pointer; /* Suggests clickability for lightbox */
  transition: transform var(--transition-smooth), opacity var(--transition-smooth), background-color var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* The actual image inside the product card */
.lightbox-trigger {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .lightbox-trigger {
  transform: scale(1.08); /* Zoom effect on hover */
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--color-primary);
  color: #0E0C0A;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0px; /* Cuadrado editorial */
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-display);
}

.product-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.9rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

.product-title {
  font-size: 1.7rem;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.product-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-transform: lowercase;
  font-family: var(--font-body);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
}

.product-price small {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Feature Section (About Us) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--color-bg-light);
  padding: 40px 32px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth), background-color var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.feature-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.8s ease;
  z-index: 0;
  filter: brightness(0.25) contrast(1.2);
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 15px 45px rgba(196, 154, 60, 0.2);
  transform: translateY(-8px);
}

.feature-card:hover .feature-bg {
  opacity: 1;
  transform: scale(1.15);
}

.feature-icon, .feature-title, .feature-text {
  position: relative;
  z-index: 2;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature-text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Footer */
footer {
  background-color: #050505;
  border-top: 1px solid var(--color-border);
  padding: 60px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--color-text-main);
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--color-text-muted);
}

.footer-col ul li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Lightbox Styles */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
}

/* From Uiverse.io */ 
.Btn {
  width: 280px; /* Ahora mucho más ancho */
  height: 48px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to right,#77530a,#ffd277,#77530a,#77530a,#ffd277,#77530a);
  background-size: 250%;
  background-position: left;
  color: #ffd277;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition-duration: 1s;
  overflow: hidden;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.Btn::before {
  position: absolute;
  content: "NUESTRO CATÁLOGO";
  color: #ffd277;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 4px); /* Borde perfecto de 2px sin importar la escala */
  height: calc(100% - 4px); /* Borde perfecto de 2px sin importar la escala */
  border-radius: 8px;
  transition-duration: 1s;
  background-color: rgba(0, 0, 0, 0.842);
  background-size: 200%;
}

.Btn:hover {
  background-position: right;
  transition-duration: 1s;
}

.Btn:hover::before {
  background-position: right;
  transition-duration: 1s;
}

.Btn:active {
  transform: scale(0.95);
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  border: 1px solid #333;
  transition: opacity 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 3rem;
  font-family: sans-serif;
  cursor: pointer;
  transition: 0.2s;
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  font-family: 'Oswald', sans-serif;
  cursor: pointer;
  user-select: none;
  background: rgba(0,0,0,0.5);
  padding: 10px 20px;
  border-radius: 4px;
  transition: 0.2s;
  z-index: 10000;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--color-primary);
  color: #111;
}

.lightbox-prev { left: 5%; }
.lightbox-next { right: 5%; }

/* Responsive */
@media (max-width: 1024px) {
  .logo-container {
    gap: 15px;
  }
  .logo-container img {
    height: 55px; /* Bigger on mobile as requested */
  }
  .logo-text {
    font-size: 1.8rem; /* Bigger on mobile as requested */
    letter-spacing: 1px;
  }
  .menu-toggle {
    display: flex;
  }
  .desktop-nav {
    display: none !important; /* Force hide to avoid duplicates */
  }
  header .container {
    justify-content: space-between;
  }
  
  .hero h1 { font-size: 3rem; }
  .hero { padding: 40px 0; min-height: 60vh; }
  .hero .btn-group { flex-direction: column; }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.5rem;
  }
  .logo-container img {
    height: 48px;
  }
}
/* Shopping Cart & Checkout Modal Styles */
.cart-toggle {
  background-color: var(--color-primary);
  color: #111;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  transition: var(--transition-smooth);
  position: relative;
}

.cart-toggle:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

.cart-count {
  background-color: #111;
  color: var(--color-primary);
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  padding: 2px;
}

/* Floating Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background-color: var(--color-bg-light);
  z-index: 10000;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--color-primary);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 24px;
  background-color: var(--color-bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.cart-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.close-cart {
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  background-color: var(--color-bg-card);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.cart-item-price {
  color: var(--color-primary);
  font-weight: 600;
}

.cart-remove {
  cursor: pointer;
  color: #ff6b6b;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-top: 4px;
  display: inline-block;
}

.cart-footer {
  padding: 24px;
  background-color: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-family: var(--font-display);
  margin-bottom: 24px;
}

/* Modal Checkout */
.modal-checkout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  backdrop-filter: blur(5px);
}

.modal-checkout.active {
  display: flex;
}

.modal-content {
  background-color: var(--color-bg-light);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--color-primary);
}

.checkout-form .form-group {
  margin-bottom: 20px;
}

.checkout-form label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.checkout-form input, .checkout-form select, .checkout-form textarea {
  width: 100%;
  background-color: #111;
  border: 1px solid var(--color-border);
  padding: 12px;
  color: white;
  border-radius: 4px;
  font-family: var(--font-body);
}

.checkout-form input:focus {
  border-color: var(--color-primary);
  outline: none;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.summary-table td {
  padding: 8px 0;
}

.summary-table .total-row {
  border-top: 1px solid var(--color-border);
  font-size: 1.5rem;
  font-family: var(--font-display);
}

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

/** ==============================
    Telegram Float Button
============================== */
.chat-widget-t {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #0088cc;
    color: #FFF;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

.chat-widget-t:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 136, 204, 0.6);
}

.chat-icon-t {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/** ==============================
    WhatsApp Float Button
============================== */
.chat-widget-w {
    position: fixed;
    bottom: 95px;
    right: 25px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFF;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), inset 0 0 10px rgba(255,255,255,0.2);
    z-index: 9999999; /* Máxima prioridad para no ser bloqueado por banners de cookies o menús móviles */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: wpp-pulse 2s infinite;
}

.chat-widget-w:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6), inset 0 0 15px rgba(255,255,255,0.4);
}

.chat-icon-w {
    width: 38px;
    height: 38px;
    fill: currentColor;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

@keyframes wpp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Float Buttons Mobile Tuning */
@media (max-width: 768px) {
    .chat-widget-t {
        display: none !important;
    }
    .chat-widget-w {
        bottom: 25px; /* Moves down to take Telegram's spot */
        right: 20px;
        width: 70px;
        height: 70px;
    }
    .chat-icon-w {
        width: 44px;
        height: 44px;
    }
}

/** ==============================
    Promotional Elements
============================== */
.top-promo-bar {
  background-color: transparent;
  color: #fff;
  text-align: center;
  padding: 8px 15px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
}

.top-promo-bar strong {
  margin-left: 8px;
  background-color: #111;
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: 4px;
}

.promo-badge-hero {
  display: inline-block;
  background-color: rgba(212, 163, 115, 0.15);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.promo-banner {
  background-color: rgba(212, 163, 115, 0.08);
  border: 1px dashed var(--color-primary);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 0 auto 40px auto;
  max-width: 800px;
}

.promo-banner h3 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.promo-banner p {
  color: #fff;
  font-size: 1.05rem;
}

.promo-banner code {
  background: var(--color-primary);
  color: #111;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: bold;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(196, 154, 60, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(196, 154, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(196, 154, 60, 0);
  }
}

.btn-primary.pulse {
  position: relative;
  z-index: 1;
}
.btn-primary.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(196, 154, 60, 0.4);
  z-index: -1;
  animation: pulse-scale 2s infinite ease-out;
}

@keyframes pulse-scale {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* Responsive overrides for large custom hero button */
@media (max-width: 768px) {
  .dynamic-car-btn { padding: 10px !important; width: 100%; box-sizing: border-box; }
  .btn-child-float { height: 350px !important; margin-bottom: -100px !important; max-width: 100% !important; object-fit: contain; }
  .wood-accent-plate { padding: 15px 20px !important; width: 100% !important; max-width: 90vw; border-radius: 20px !important; }
  .wood-accent-plate span { font-size: 1.5rem !important; white-space: normal !important; text-align: center; }
}

@media (max-width: 768px) {
  #bestsellers .text-center { margin-top: 40px !important; margin-bottom: 20px !important; }
  .section { padding: 60px 0 !important; } /* Reduce general section padding on mobile to save space */
}

@media (max-width: 1024px) {
  .side-car-icon { display: none !important; }
}

/* ====== SECCIÓN SUSCRIPCIÓN ====== */
.subscribe-section {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.subscribe-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(196, 154, 60, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.subscribe-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.subscribe-text {
  flex: 1 1 400px;
}

.subscribe-eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.subscribe-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.3;
  text-transform: none; /* Mixto: no todo mayúsculas */
}

.subscribe-highlight {
  color: var(--color-primary);
  font-family: var(--font-impact); /* Dutch801 XBd BT para las palabras clave */
  font-style: italic;
  font-size: 2.5rem;
  display: inline-block;
}

.subscribe-form {
  display: flex;
  gap: 0;
  flex: 1 1 360px;
  max-width: 500px;
}

.subscribe-input {
  flex: 1;
  padding: 16px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-right: none;
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.subscribe-input::placeholder {
  color: var(--color-text-muted);
}

.subscribe-input:focus {
  border-color: var(--color-primary);
}

.subscribe-btn {
  border-radius: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Estado de éxito */
.subscribe-success {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  animation: fadeIn 0.5s ease;
}

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

.success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #0E0C0A;
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discount-code {
  font-family: var(--font-impact);
  font-size: 2.4rem;
  color: var(--color-primary);
  letter-spacing: 4px;
  border: 2px dashed var(--color-primary);
  padding: 8px 24px;
  background: rgba(196, 154, 60, 0.08);
}

.success-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ====== MEDIOS DE PAGO (FOOTER) ====== */
.footer-bottom-top {
  margin-bottom: 24px;
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.payment-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-icon {
  width: 54px;
  height: 34px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.pay-icon svg {
  width: 100%;
  height: 100%;
}

/* Iconos de texto para métodos sin SVG disponible */
.pay-icon--text {
  background: #1a1410;
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.5px;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  padding: 2px;
}

.pay-icon--nequi  { background: #2C1553; color: #b28cff; border-color: #3d1f7a; }
.pay-icon--davi   { background: #B20000; color: #fff;    border-color: #8b0000; }
.pay-icon--efecty { background: #F7A900; color: #000;    border-color: #c88700; }
.pay-icon--super  { background: #00539B; color: #fff;    border-color: #003f75; }
.pay-icon--amex   { background: #2E77BC; color: #fff;    border-color: #1e5a96; }

/* ====== RESPONSIVE SUSCRIPCIÓN ====== */
@media (max-width: 768px) {
  .subscribe-inner {
    flex-direction: column;
    gap: 32px;
  }
  .subscribe-title { font-size: 1.7rem; }
  .subscribe-highlight { font-size: 2rem; }
  .subscribe-form {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }
  .subscribe-input { border-right: 1px solid var(--color-border); border-bottom: none; }
  .payment-methods { justify-content: center; }
  .payment-label { width: 100%; text-align: center; }
}

/* ====== TOP PROMO BAR — Generoso y destacado con degradado ====== */
.top-promo-bar {
  background: linear-gradient(90deg, rgba(10,8,6,0.3) 0%, rgba(31,25,18,0.4) 50%, rgba(10,8,6,0.3) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(196, 154, 60, 0.4);
  padding: 16px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  position: relative;
  z-index: 101; /* Sobre el header */
}

.promo-bar-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E0E0E0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.promo-bar-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.promo-bar-highlight {
  font-family: var(--font-impact);
  font-weight: 700;
  color: #0E0C0A; /* Letra oscura sobre fondo claro */
  letter-spacing: 2px;
  font-size: 1.1rem;
  background: var(--color-primary);
  padding: 4px 14px;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(196, 154, 60, 0.3);
}

.promo-bar-sep {
  color: var(--color-primary);
  opacity: 0.5;
  margin: 0 4px;
}

.promo-bar-code {
  font-family: var(--font-impact);
  color: var(--color-primary);
  letter-spacing: 3px;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(196, 154, 60, 0.4);
}

/* ====== PROMO BANNER (catálogo) ====== */
.promo-banner {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(196, 154, 60, 0.4);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(196,154,60,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.promo-banner h3 {
  font-family: var(--font-impact);
  color: var(--color-text-main);
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.promo-banner p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.promo-banner code {
  font-family: var(--font-impact);
  color: var(--color-primary);
  font-size: 1.1rem;
  letter-spacing: 3px;
  background: rgba(196,154,60,0.1);
  padding: 2px 10px;
}


