/* ==========================================================================
   VARIABLES GLOBALES: Inspiradas directamente en el Logotipo de M327 TV Pro
   ========================================================================== */
:root {
  /* Fondo Espacial Oscuro Extraído del Círculo Base del Logo */
  --bg-main: #090712;       
  --bg-cards: #130f26;      /* Morado oscuro para contenedores */
  --bg-header: rgba(9, 7, 18, 0.85);

  /* Colores de Marca Cohete M327 */
  --brand-purple: #7024ca;  /* Cuerpo del Cohete */
  --brand-pink: #e60067;    /* Estela Intermedia */
  --brand-orange: #ff9e00;  /* Fuego del Propulsor */
  
  /* Textos */
  --text-white: #ffffff;
  --text-muted: #9e9ab4;    /* Gris con tinte morado */

  /* Degradado de la estela de M327 */
  --gradient-rocket: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-pink) 50%, var(--brand-purple) 100%);
  --font-base: 'Inter', sans-serif;
}

/* ==========================================================================
   ESTILOS GENERALES Y BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Utilidades de Texto con Degradado */
.text-gradient {
  background: var(--gradient-rocket);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-accent {
  color: var(--brand-orange);
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--brand-pink);
  margin-bottom: 12px;
}

/* ==========================================================================
   HEADER / TOPBAR (Efecto Cristal)
   ========================================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  z-index: 1000;
  padding: 12px 0;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
}

.brand img {
  border-radius: 50%;
  filter: drop-shadow(0 0 6px var(--brand-purple));
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.main-nav a:hover, 
.main-nav a[aria-current="page"] {
  color: var(--text-white);
}

/* Hamburguesa móvil básica */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}
.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-white);
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
}

.btn.primary {
  background: var(--gradient-rocket);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(230, 0, 103, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 103, 0.5);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.ghost:hover {
  background: rgba(112, 36, 202, 0.15);
  border-color: var(--brand-purple);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO CON VIDEO DE FONDO
   ========================================================================== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* Ratio 16:9 */
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  border: none;
  z-index: 1;
  pointer-events: none;
}

.hero-video-shield, .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Overlay oscuro para legibilidad total del texto */
.hero-overlay {
  background: linear-gradient(to bottom, rgba(9, 7, 18, 0.7) 0%, var(--bg-main) 100%);
}

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

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

/* ==========================================================================
   BANDA DE ESTADÍSTICAS
   ========================================================================== */
.stats.band {
  background-color: var(--bg-cards);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.stat-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
  gap: 20px;
}

.stat-grid div strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-orange);
}

.stat-grid div span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   TIRA DE PÓSTERES (CATÁLOGO FLUIDO INFINITO)
   ========================================================================== */
.carousel-title {
  text-align: center;
  margin: 60px 0 24px;
  font-size: 1.8rem;
  font-weight: 800;
}

.poster-strip {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 24px 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-purple) transparent;
}

.poster-strip img {
  height: 140px;
  width: 140px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.poster-strip img:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   SECCIONES Y DISEÑO SPLIT
   ========================================================================== */
.section {
  padding: 90px 0;
}

.section.alt {
  background-color: rgba(19, 15, 38, 0.4);
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-head h2 {
  font-size: 2.2rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.split h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.split p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.feature-img {
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(112, 36, 202, 0.2);
  width: 100%;
}

/* ==========================================================================
   TARJETAS DE CARACTERÍSTICAS (INFO CARDS)
   ========================================================================== */
.card-grid.three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.info-card {
  background-color: var(--bg-cards);
  padding: 35px 25px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-pink);
}

.info-card h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--brand-orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  background-color: #06050c;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  margin-bottom: 15px;
}

.site-footer p {
  color: var(--text-muted);
  margin-bottom: 15px;
}

.site-footer .fineprint {
  font-size: 0.8rem;
  color: #5b576e;
}

.site-footer h2 {
  font-size: 1.15rem;
  color: var(--brand-orange);
  margin-bottom: 20px;
}

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

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

.footer-list a {
  color: var(--text-muted);
}

.footer-list a:hover {
  color: var(--brand-pink);
}

.footer-wa-link {
  color: #25d366 !important;
  font-weight: bold;
}

.copyright {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  color: #484557;
  font-size: 0.85rem;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP (Ajustado a tu estilo verde característico)
   ========================================================================== */
.wa-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  font-size: 0; /* Esconde el texto de soporte */
}

.wa-float::before {
  content: '';
  width: 28px;
  height: 28px;
  /* Icono simplificado en SVG embebido */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.316 1.592 5.43 0 9.849-4.417 9.851-9.849.002-2.63-1.023-5.101-2.886-6.968-1.863-1.865-4.334-2.888-6.964-2.888-5.431 0-9.85 4.417-9.852 9.849-.001 2.086.56 4.123 1.623 5.922l-.993 3.626 3.725-.976z'/%3E%3C/svg%3E") no-repeat center;
}

.wa-float:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   MEDIA QUERIES (SOPORTE MÓVIL)
   ========================================================================= */
@media (max-width: 968px) {
  .main-nav {
    display: none; /* Idealmente controlado por site.js en responsivo */
  }
  .menu-toggle {
    display: flex;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .stat-grid {
    flex-direction: column;
    gap: 25px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
    
}

/* ==========================================================================
   7. SECCIÓN PRECIOS (Optimizada para 4 columnas)
   ========================================================================== */
.pricing-section {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    /* Reducido el tamaño mínimo a 260px para que las 4 tarjetas quepan perfectas en pantallas de escritorio */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    align-items: stretch; /* Hace que todas las tarjetas tengan exactamente la misma altura */
}

.price-card {
    background-color: var(--bg-secondary);
    padding: 40px 25px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el botón al fondo si los textos varían */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
}

/* Estilo destacado para el plan más popular */
.price-card.popular {
    border: 2px solid var(--brand-purple);
    box-shadow: 0 15px 35px rgba(123, 44, 191, 0.15);
    background-image: linear-gradient(rgba(19, 16, 33, 0.95), rgba(19, 16, 33, 0.95)), var(--gradient-fire);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-fire);
    color: var(--text-primary);
    padding: 6px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.price-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.price span {
    font-size: 1.6rem;
    font-weight: 600;
    vertical-align: super;
}

.price small {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-features {
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1; /* Permite que el listado tome el espacio necesario de forma uniforme */
}

.price-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.price-features li::before {
    content: "✓";
    color: var(--brand-orange);
    font-weight: bold;
    margin-right: 8px;
}

.price-card .btn {
    width: 100%;
    padding: 12px 15px;
}

/* Títulos Globales */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.text-gradient2 {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

