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

:root {
  --burgundy: #3B0B11;
  --burgundy-light: #4A0E17;
  --burgundy-mid: #5c1020;
  --gold: #D4AF37;
  --gold-dark: #AA7C11;
  --gold-light: #f0d060;
  --white: #f8f4ee;
  --text-muted: #c9b99a;
  --glass-bg: rgba(74,14,23,0.55);
  --glass-border: rgba(212,175,55,0.25);
  --shadow-gold: 0 4px 30px rgba(212,175,55,0.15);
  --shadow-dark: 0 8px 40px rgba(0,0,0,0.5);
  --radius: 16px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--burgundy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

/* Felt texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
  z-index: 0;
}

.gold { color: var(--gold); }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  background: rgba(30,5,10,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition);
}
.navbar.scrolled { background: rgba(20,3,8,0.97); }

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo { display: flex; align-items: center; gap: .7rem; }
.logo-img { height: 44px; width: auto; object-fit: contain; }
.logo-text { font-family: 'Bebas Neue', serif; font-size: 1.5rem; font-weight: 400; color: var(--gold); letter-spacing: .15em; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

.nav-phone {
  color: var(--gold) !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  font-size: .84rem !important;
}

.nav-cta {
  background: var(--gold);
  color: var(--burgundy);
  border: none;
  padding: .5rem 1.3rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: all var(--transition);
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--gold);
  font-size: 1.4rem;
  padding: .3rem .6rem;
  border-radius: 6px;
  cursor: pointer;
  margin-left: auto;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 2rem 60px;
  background: #0d0205; /* fallback */
  overflow: hidden;
}
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 10s linear;
  transform: scale(1.05);
}
.carousel-slide.active {
  opacity: 0.65;
  transform: scale(1);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(212,175,55,0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(212,175,55,0.06) 0%, transparent 40%);
  pointer-events: none;
}

/* Decorative pool table lines */
.hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border: 1px solid rgba(212,175,55,0.08);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(74,14,23,0.45) 0%, rgba(26,3,8,0.65) 60%, #0d0205 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeUp .9s ease both;
}

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

.trust-badge {
  display: inline-block;
  background: rgba(212,175,55,0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: .45rem 1.4rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeUp .9s .1s ease both;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 12vw, 8.5rem);
  font-weight: 400;
  color: var(--gold);
  line-height: .9;
  letter-spacing: .04em;
  text-shadow: 0 0 80px rgba(212,175,55,0.35), 0 10px 40px rgba(0,0,0,0.8);
  animation: fadeUp .9s .15s ease both;
}

.hero-subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  letter-spacing: .15em;
  color: var(--white);
  line-height: 1.2;
  margin: .5rem 0 1.5rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
  animation: fadeUp .9s .2s ease both;
}

.hero-desc {
  color: var(--text-muted);
  font-size: clamp(.9rem, 1.8vw, 1.05rem);
  line-height: 1.9;
  letter-spacing: .04em;
  margin-bottom: 2.5rem;
  animation: fadeUp .9s .25s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeUp .9s .3s ease both;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #1a0308;
  padding: .85rem 2.2rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212,175,55,0.35);
  transition: all var(--transition);
  display: inline-block;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212,175,55,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  padding: .85rem 2.2rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
}
.btn-outline:hover {
  background: rgba(212,175,55,0.1);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  animation: fadeUp .9s .35s ease both;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .08em;
}
.stat-label {
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.stat-phone {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: .08em;
  transition: color var(--transition);
}
.stat-phone:hover { color: var(--gold-light); }
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 2;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ========== SECTIONS SHARED ========== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-eyebrow {
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .6rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: .08em;
  margin-bottom: .8rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: .95rem;
  letter-spacing: .06em;
}

/* ========== PRODUCTOS ========== */
.productos-section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tabs-wrapper {
  background: rgba(20,3,8,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--glass-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 1;
  min-width: 130px;
  padding: 1.1rem .8rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.tab:hover { color: var(--gold); background: rgba(212,175,55,0.05); }
.tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(212,175,55,0.08);
}

.tab-panel {
  display: none;
  padding: 2.5rem;
  animation: fadePanel .4s ease;
}
.tab-panel.active { display: block; }

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

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.products-grid.single { grid-template-columns: minmax(280px, 480px); justify-content: center; }

/* ========== PRODUCT CARD ========== */
.product-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,0.5);
  box-shadow: var(--shadow-gold), var(--shadow-dark);
}
.product-card:hover::before { opacity: 1; }
.product-card.featured {
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 0 30px rgba(212,175,55,0.1);
}
.product-card.featured::before { opacity: .6; }

.card-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(212,175,55,0.2);
  color: var(--gold);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
}
.gold-badge { background: var(--gold); color: #1a0308; border-color: var(--gold); }

.card-icon {
  font-size: 2.5rem;
  text-align: center;
  padding: 1.8rem 1rem .5rem;
}

.card-body { padding: .5rem 1.5rem 1.8rem; }

.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: .08em;
  margin-bottom: .2rem;
}
.card-subtitle {
  color: var(--gold);
  font-size: .82rem;
  letter-spacing: .1em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.card-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .06em;
  text-shadow: 0 0 20px rgba(212,175,55,0.3);
  margin-bottom: 1.2rem;
}

.card-specs { margin-bottom: 1.2rem; }
.spec-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(212,175,55,0.08);
  font-size: .83rem;
  color: var(--text-muted);
}
.spec-row:last-child { border-bottom: none; }
.spec-icon { flex-shrink: 0; }

.card-includes {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: .9rem 1rem;
  margin-bottom: 1rem;
}
.includes-title {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.card-includes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.card-includes li {
  font-size: .82rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.card-includes li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-size: .6rem;
  top: .1rem;
}

.modal-note {
  font-size: .85rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.warranty-text {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--white);
  line-height: 1.5;
  text-align: center;
  font-family: 'Inter', sans-serif;
}
.warranty-text strong {
  color: var(--gold);
}

.card-note {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  padding: .6rem;
  border-left: 2px solid var(--gold);
  background: rgba(212,175,55,0.05);
  border-radius: 0 6px 6px 0;
}

.btn-whatsapp {
  width: 100%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border: none;
  padding: .85rem 1.5rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
  filter: brightness(1.1);
}

/* ========== PLACEHOLDER ========== */
.placeholder-panel {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}
.placeholder-icon {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: .2em;
  color: var(--gold);
  opacity: .6;
  margin-bottom: 1.5rem;
}
.placeholder-panel h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.placeholder-badge {
  display: inline-block;
  background: rgba(212,175,55,0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: .35rem 1.2rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.placeholder-desc {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ========== PROCESO ========== */
.proceso-section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%);
}

.proceso-section .section-header { margin-bottom: 3.5rem; }

.proceso-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto 3rem;
}

.step-card {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,175,55,0.4);
  box-shadow: var(--shadow-gold);
}
.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  font-weight: 400;
  color: rgba(212,175,55,0.15);
  line-height: 1;
  margin-bottom: .2rem;
  letter-spacing: .05em;
}
.step-icon {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: .8rem;
  display: none;
}
.step-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: .8rem;
}
.step-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.7; }
.step-card p strong { color: var(--white); }

.step-arrow {
  font-size: 1.5rem;
  color: var(--gold);
  opacity: .5;
  flex-shrink: 0;
}

.trust-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.05));
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.8rem 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(212,175,55,0.1);
}
.trust-banner span { font-size: 2rem; flex-shrink: 0; }
.trust-banner p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }
.trust-banner p strong { color: var(--gold); font-size: .95rem; display: block; margin-bottom: .3rem; }
/* ========== QUIÉNES SOMOS ========== */
.about-section {
  padding: 5rem 2rem;
  background: #0a0104;
  text-align: center;
  position: relative;
  z-index: 1;
}
.about-inner {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(212,175,55,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 4.5rem 3rem;
  backdrop-filter: blur(8px);
}
.about-text {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.9;
  letter-spacing: .02em;
}
.about-text strong {
  color: var(--gold);
  font-weight: 600;
}
@media (max-width: 768px) {
  .about-inner { padding: 3rem 1.5rem; }
  .about-text { font-size: 1rem; }
}

/* ========== FOOTER ========== */
.footer {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem 1.5rem;
  backdrop-filter: blur(8px);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo { height: 55px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .85rem; color: var(--text-muted); line-height: 1.8; margin-top: .6rem; }
.footer-links h4, .footer-contact h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-contact p { font-size: .85rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.2rem; }
.contact-info { margin-bottom: 1.5rem; }
.contact-info p { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.contact-icon { font-size: 1.1rem; }
.contact-link { color: var(--white); font-weight: 600; font-size: 1.05rem; text-decoration: none; transition: color var(--transition); letter-spacing: .05em; }
.contact-link:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom p { font-size: .78rem; color: var(--text-muted); }
.footer-created {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--text-muted);
  font-size: .85rem;
  letter-spacing: .05em;
}
.trinium-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity var(--transition);
}
.trinium-logo:hover {
  opacity: 1;
}

/* ========== FLOATING WHATSAPP ========== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366, #1aad54);
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 1rem;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(37,211,102,0.4);
  transition: all var(--transition);
  animation: waPulse 3s infinite;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 35px rgba(37,211,102,0.55);
}
@keyframes waPulse {
  0%,100% { box-shadow: 0 6px 25px rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 6px 35px rgba(37,211,102,0.65); }
}

/* ========== MODULES GRID ========== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.module-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
  background: rgba(20,3,8,0.6);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
}
.module-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(212,175,55,0.55);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(212,175,55,0.15);
}
.module-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.module-img-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #3B0B11;
}
.module-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}
.module-card:hover .module-img {
  transform: scale(1.06) translateY(-4px);
}
.module-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,1,4,0.92) 0%, rgba(10,1,4,0.3) 50%, transparent 100%);
  transition: opacity var(--transition);
}
.module-card:hover .module-overlay {
  background: linear-gradient(0deg, rgba(10,1,4,0.95) 0%, rgba(10,1,4,0.4) 60%, rgba(212,175,55,0.05) 100%);
}

.module-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1.6rem;
  z-index: 2;
}
.module-eyebrow {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .3rem;
}
.module-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: .08em;
  line-height: 1;
  margin-bottom: .4rem;
}
.module-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: .06em;
  margin-bottom: .7rem;
}
.module-cta {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(212,175,55,0.4);
  padding-bottom: 2px;
  transition: all var(--transition);
}
.module-card:hover .module-cta {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
  letter-spacing: .2em;
}

/* Coming soon module */
.module-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0308 0%, #0d0205 100%);
}
.placeholder-letters {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: .3em;
  color: rgba(212,175,55,0.12);
  user-select: none;
}
.module-coming .module-eyebrow { color: var(--text-muted); }

/* ========== MODALES ========== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}
.modal-backdrop.open {
  display: flex;
  animation: backdropIn .3s ease;
}
@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  position: relative;
  background: linear-gradient(160deg, #1f050d 0%, #120307 100%);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 22px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 60px rgba(212,175,55,0.08);
  animation: modalIn .35s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.2) transparent;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.94) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.5);
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(212,175,55,0.15); color: var(--gold); border-color: var(--gold); }

.modal-header {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}
.modal-header.no-img { padding: 2rem; }
.modal-hero-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.4));
}

.modal-carousel-wrap {
  width: auto;
  margin: 1.5rem 2rem 0;
  height: clamp(200px, 35vh, 320px);
  position: relative;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
}
.modal-carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.modal-carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.4));
}
.modal-carousel-slide.active {
  opacity: 1;
  z-index: 2;
}
.modal-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: 1px solid var(--glass-border);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  z-index: 3;
  transition: all var(--transition);
}
.modal-carousel-btn.prev { left: 1rem; }
.modal-carousel-btn.next { right: 1rem; }
.modal-carousel-btn:hover { background: var(--gold); color: black; }
.modal-arcade-icon {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: rgba(212,175,55,0.3);
  letter-spacing: .2em;
  flex-shrink: 0;
  width: 130px;
  text-align: center;
}
.modal-eyebrow {
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .4rem;
}
.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: .08em;
  line-height: 1;
  margin-bottom: .4rem;
}
.modal-subtitle { font-size: .85rem; color: var(--text-muted); }

.modal-products {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-product {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.4rem;
  position: relative;
  transition: border-color var(--transition);
}
.modal-product:hover { border-color: rgba(212,175,55,0.35); }
.featured-modal {
  border-color: rgba(212,175,55,0.35);
  background: rgba(212,175,55,0.04);
}

.modal-badge {
  display: inline-block;
  background: var(--gold);
  color: #1a0308;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 50px;
  margin-bottom: .8rem;
}

.modal-product-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.modal-product-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: .06em;
}
.modal-product-sub {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .15rem;
}
.modal-product-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .04em;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(212,175,55,0.25);
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .5rem;
  margin-bottom: 1rem;
}
.modal-spec {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: .5rem .7rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.spec-label {
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.modal-spec span:not(.spec-label) { font-size: .8rem; color: var(--white); }

.modal-includes {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  margin-bottom: 1.1rem;
}
.includes-label {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.modal-includes span:not(.includes-label) {
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--text-muted);
  font-size: .75rem;
  padding: .2rem .6rem;
  border-radius: 50px;
}

.modal-note {
  margin: 0 2rem 1.8rem;
  font-size: .8rem;
  color: var(--text-muted);
  border-left: 2px solid var(--gold);
  padding: .6rem .8rem;
  background: rgba(212,175,55,0.05);
  border-radius: 0 8px 8px 0;
}
.modal-note strong { color: var(--white); }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .step-arrow { display: none; }
  .proceso-steps { flex-direction: column; align-items: center; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: rgba(20,3,8,0.97); padding: 1.5rem 2rem; gap: 1.2rem; border-bottom: 1px solid var(--glass-border); z-index: 99; }
  .nav-cta { display: none; }
  .hamburger { display: block; }
  .trust-banner { flex-direction: column; text-align: center; padding: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .wa-label { display: none; }
  .whatsapp-float { padding: 1rem; border-radius: 50%; }
  .modules-grid { grid-template-columns: 1fr; }
  .module-card { aspect-ratio: 3/2; }
  .modal-header { flex-direction: column; text-align: center; }
  .modal-hero-img { width: 100px; height: 100px; }
  .modal-products { padding: 1rem; }
  .modal-box { border-radius: 16px; }
  .modal-product-top { flex-direction: column; gap: .5rem; }
}
