@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,700;0,800;0,900;1,800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');
@import url('./variables.css');

/* ==============================================================================
   RESET & CONFIGURACIÓN GLOBAL
   ============================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(circle at 15% 5%, rgba(var(--brand-primary-rgb), 0.09) 0%, transparent 45%),
    radial-gradient(circle at 85% 45%, rgba(var(--brand-secondary-rgb), 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(var(--brand-primary-rgb), 0.06) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar estilizada */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

/* ==============================================================================
   🎨 ARQUITECTURA TIPOGRÁFICA Y RITMO VISUAL
   ============================================================================== */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5vw + 1rem, 4.8rem);
  font-weight: 900;
  letter-spacing: var(--letter-spacing-h1);
  line-height: 1.1;
  color: #ffffff;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw + 0.5rem, 3.2rem);
  font-weight: 800;
  letter-spacing: var(--letter-spacing-h2);
  line-height: 1.15;
  color: #ffffff;
}

h3 {
  font-size: clamp(1.25rem, 2vw + 0.2rem, 1.85rem);
  font-weight: 800;
  letter-spacing: var(--letter-spacing-h3);
  line-height: 1.25;
}

p {
  font-size: clamp(0.95rem, 1vw + 0.2rem, 1.1rem);
  color: var(--text-secondary);
  font-weight: 400;
}

/* Pastillas y micro-badges con interletraje expansivo */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-badge);
  background: rgba(255, 87, 34, 0.12);
  color: var(--brand-primary-light);
  border: 1px solid rgba(255, 87, 34, 0.35);
  backdrop-filter: blur(8px);
}

.pill-badge.gold {
  background: rgba(245, 158, 11, 0.12);
  color: var(--brand-secondary);
  border-color: rgba(245, 158, 11, 0.35);
}

.pill-badge.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.text-gradient-flame {
  background: linear-gradient(135deg, #ffffff 30%, var(--brand-primary-light) 75%, var(--brand-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==============================================================================
   ✨ 2. PROFUNDIDAD, GLASSMORPHISM Y SOMBRAS MULTICAPA
   ============================================================================== */
.glass-panel {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
}

.card-luxury {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.35s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.card-luxury:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
}

/* ==============================================================================
   🚀 4. BOTONES Y LLAMADAS A LA ACCIÓN (CTAs) DE ALTO IMPACTO
   ============================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease-spring);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* ==============================================================================
   TOP TICKER MARQUEE & HEADER
   ============================================================================== */
.top-ticker {
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.ticker-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.header-main {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 10, 12, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s var(--ease-spring);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-flame-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.logo-flame-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-primary-light);
  display: block;
  margin-top: 3px;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s var(--ease-spring);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
  transition: width 0.25s var(--ease-spring);
}

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

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

.cart-toggle-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.25s var(--ease-spring);
}

.cart-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(var(--brand-primary-rgb), 0.5);
}

/* ==============================================================================
   HERO BANNER AWWWARDS
   ============================================================================== */
.hero-section {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 24px clamp(50px, 6vw, 90px);
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-countdown-box {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  background: rgba(18, 20, 24, 0.7);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  width: fit-content;
}

.countdown-timer-digits {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brand-secondary);
  letter-spacing: 1px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.hero-guarantees {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.guarantee-item svg {
  color: var(--brand-primary-light);
  flex-shrink: 0;
}

/* Hero Media & Frame */
.hero-media-wrapper {
  position: relative;
}

.hero-main-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 60px -15px rgba(var(--brand-primary-rgb), 0.25);
  border: 1px solid var(--border-glass);
}

.hero-main-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-spring);
}

.hero-main-frame:hover img {
  transform: scale(1.05);
}

/* Badges flotantes en Hero */
.floating-award-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 280px;
  animation: floatSoft 4s ease-in-out infinite alternate;
}

@keyframes floatSoft {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.floating-rating-badge {
  position: absolute;
  top: 24px;
  right: -15px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatSoft 4s ease-in-out 1.5s infinite alternate;
}

.stars-rating {
  color: var(--brand-secondary);
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* ==============================================================================
   PILARES DE CONFIANZA (4 TRUST PILLARS)
   ============================================================================== */
.trust-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(18, 20, 24, 0.5);
  padding: 36px 24px;
}

.trust-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.trust-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 87, 34, 0.1);
  border: 1px solid rgba(255, 87, 34, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-primary-light);
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.trust-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==============================================================================
   🛍️ 3. CATÁLOGO DE PRODUCTO CON ZOOM CINEMATOGRÁFICO & CRO
   ============================================================================== */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 24px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}

.filter-btn:hover {
  border-color: var(--border-glass);
  color: #ffffff;
}

.filter-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb), 0.4);
}

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

/* Tarjeta de Producto */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: all 0.35s var(--ease-spring);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
}

/* Marco de Imagen con Proporción Áurea */
.product-thumb-frame {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #15181e;
}

.product-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-spring);
}

.product-card:hover .product-thumb-frame img {
  transform: scale(1.07);
}

/* Micro-Badges Flotantes */
.badge-floating-top-left {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.badge-floating-top-right {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(16, 185, 129, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 14px;
}

.product-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.product-rating-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--brand-secondary);
  font-weight: 700;
}

.product-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
}

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

.price-box {
  display: flex;
  flex-direction: column;
}

.old-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.current-price {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* ==============================================================================
   🍔 CONSTRUCTOR INTERACTIVO: "CREA TU BURGER DE AUTOR" (SUCURSAL EN VIVO)
   ============================================================================== */
.builder-section {
  background: linear-gradient(180deg, rgba(18, 20, 24, 0.4) 0%, rgba(12, 13, 16, 0.8) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.builder-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

/* Visualizador de la hamburguesa construida */
.builder-preview-card {
  position: sticky;
  top: 110px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.burger-layer-stack {
  width: 100%;
  max-width: 320px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 20px 0;
}

.burger-layer-item {
  width: 100%;
  height: 52px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: -12px;
  transition: all 0.35s var(--ease-spring);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  position: relative;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.burger-layer-item.bun-top {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
  height: 64px;
  border-radius: 40px 40px 10px 10px;
  margin-top: 0;
  z-index: 10;
}

.burger-layer-item.sauce {
  background: linear-gradient(90deg, #ea580c 0%, #c2410c 100%);
  height: 24px;
  border-radius: 12px;
  z-index: 9;
}

.burger-layer-item.toppings {
  background: linear-gradient(90deg, #15803d 0%, #166534 100%);
  height: 28px;
  border-radius: 14px;
  z-index: 8;
}

.burger-layer-item.cheese {
  background: linear-gradient(90deg, #facc15 0%, #eab308 100%);
  height: 26px;
  border-radius: 14px;
  color: #713f12;
  text-shadow: none;
  z-index: 7;
}

.burger-layer-item.meat {
  background: linear-gradient(180deg, #57301c 0%, #3a1d0f 100%);
  height: 58px;
  border-radius: 18px;
  z-index: 6;
}

.burger-layer-item.bun-bottom {
  background: linear-gradient(180deg, #b45309 0%, #92400e 100%);
  height: 48px;
  border-radius: 10px 10px 30px 30px;
  z-index: 5;
}

.builder-summary-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.builder-specs-list {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Opciones del configurador */
.builder-step {
  margin-bottom: 32px;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.option-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.option-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

.option-card.selected {
  border-color: var(--brand-primary);
  background: rgba(255, 87, 34, 0.08);
  box-shadow: 0 0 0 1px var(--brand-primary);
}

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

.option-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.option-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-secondary);
}

.option-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==============================================================================
   📝 5. FORMULARIOS, INPUTS MODERNOS & CRO DE CONTRAENTREGA (COD)
   ============================================================================== */
.checkout-section {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  padding: clamp(32px, 5vw, 60px);
  margin: 40px auto 0;
  max-width: 1000px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: #171a21;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.25s var(--ease-spring);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb), 0.15);
  background: #1c2028;
}

.form-control::placeholder {
  color: #64748b;
}

/* Selector de Paquetes / Combos Interactivos */
.bundle-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.bundle-card {
  background: #171a21;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  position: relative;
}

.bundle-card:hover {
  border-color: var(--border-glass);
}

.bundle-card.active {
  background: rgba(16, 185, 129, 0.08);
  border-color: #059669;
  box-shadow: 0 0 0 1px #059669;
}

.bundle-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: #059669;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.bundle-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.bundle-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: #34d399;
}

/* Infografía COD en 4 pasos */
.cod-steps-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 30px 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.cod-step-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cod-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 87, 34, 0.12);
  color: var(--brand-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.cod-step-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.cod-step-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==============================================================================
   PRUEBA SOCIAL & TESTIMONIOS REALES
   ============================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s var(--ease-spring);
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass);
}

.review-user-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-primary);
}

.review-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.review-location {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.verified-buyer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: #34d399;
  font-weight: 600;
}

/* ==============================================================================
   ACORDEÓN INTERACTIVO DE FAQ (ACCESIBLE WCAG AA)
   ============================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s var(--ease-spring);
}

.faq-item.active {
  border-color: var(--border-accent);
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease-spring);
}

.faq-trigger:hover {
  color: var(--brand-primary-light);
}

.faq-icon-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-spring), padding 0.3s var(--ease-spring);
  padding: 0 24px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-content {
  padding-bottom: 22px;
}

/* ==============================================================================
   CARRITO DESLIZABLE (SLIDING DRAWER)
   ============================================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-spring);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-glass);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-spring);
}

.cart-overlay.open .cart-drawer {
  transform: translateX(0);
}

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

.cart-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.close-drawer-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s var(--ease-spring);
}

.close-drawer-btn:hover {
  color: #ffffff;
}

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

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

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

.cart-item-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--brand-secondary);
  font-weight: 700;
  margin-top: 4px;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--brand-primary);
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(18, 20, 24, 0.95);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

/* ==============================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  z-index: 999;
  transition: all 0.25s var(--ease-spring);
}

.whatsapp-float-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

/* ==============================================================================
   FOOTER INSTITUCIONAL & LEGAL GOOGLE ADS COMPLIANCE
   ============================================================================== */
.footer-main {
  background: #060708;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 24px 30px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

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

.footer-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s var(--ease-spring);
}

.footer-link:hover {
  color: var(--brand-primary-light);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==============================================================================
   MEDIA QUERIES (RESPONSIVE)
   ============================================================================== */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-guarantees {
    justify-content: center;
  }
  .builder-layout {
    grid-template-columns: 1fr;
  }
  .builder-preview-card {
    position: static;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .bundle-selector {
    grid-template-columns: 1fr;
  }
  .cod-steps-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-main-frame img {
    height: 380px;
  }
  .floating-award-badge, .floating-rating-badge {
    display: none;
  }
}
