:root {
  --bg: #0A0A0A;           /* Negro profundo de index.css */
  --panel: #0F0F0F;        /* Fondo secundario oscuro */
  --accent: #C9A27D;       /* Dorado principal */
  --accent-dark: #B89068;  /* Dorado oscuro */
  --accent-light: #E8C79B; /* Dorado claro */
  --lime: #C9A27D;         /* Dorado para checks */
  --cyan: #C9A27D;         /* Dorado */
  --violet: #B89068;       /* Dorado oscuro */
  --text: #FFFFFF;         /* Blanco brillante */
  --text-secondary: #B0B0B0; /* Gris claro */
  --muted: #909090;        /* Gris medio */
  --border: #2A2A2A;       /* Bordes sutiles */
  --glow: 0 4px 15px rgba(201,162,125,0.25), 0 8px 25px rgba(0,0,0,0.4);
  --ring: 0 0 0 3px rgba(201,162,125,0.4);
  --br: 15px;
  --pad: 25px;
  --header-h: 80px;        /* Altura de cabecera estándar */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  padding-top: 80px; /* Espacio para la cabecera fija */
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================== LAYOUT PRINCIPAL ==================== */
.container {
  position: relative;
  z-index: 1;
  padding: 80px 20px 120px 20px;  /* 80px arriba, 140px abajo para separación estética */
  max-width: 900px;
  margin: 0 auto;
}

.header {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}

/* ==================== LOGO CONTENIDO PRINCIPAL ==================== */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    max-width: 400px; /* Estandarizado */
    margin: 0 auto;
}

.logo {
    max-width: 350px; /* Estandarizado */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== CABECERA FIJA ==================== */
.cabecera {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px; /* Altura estándar de cabecera */
  background: rgba(35, 30, 25, 1.0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
  z-index: 1000;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* Estado Scrolled: Transparencia y Blur activos */
.cabecera.scrolled {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
}

/* Logo en cabecera - alineado a la izquierda y centrado verticalmente */
.cabecera .logo-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  max-width: 200px;
  margin-left: 20px;
}

.cabecera .logo-container img.logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* Botón hamburger */
.cabecera .burger {
  position: static;
  margin-left: auto;
}

h1 {
  font-size: clamp(24px, 3.2vw, 40px);
  margin: 10px 0 10px;
  font-weight: 700;
  letter-spacing: .1px;
  color: var(--text);
  text-align: center; /* Asegurar centrado */
}

.pop { 
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pop2 { 
  color: var(--accent-dark);
}

.subtitle {
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 30px;
  font-size: 1.1rem;
  text-align: center;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto; /* Forzar centrado completo */
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(12, 1fr);
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }

.package-cta-button {
    color: #fff;
}

.pill-button:hover {
  background: rgba(16,185,129,0.15);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.3);
  transition: all 0.3s ease;
}

/* Si también quieres que el enlace dentro cambie de color */
.pill-button:hover a {
  color: #10b981;
}

/* Tamaño de los iconos SVG en desktop */
.benefit-icon img {
    width: 40px;
    height: 40px;
    display: block;
}

@media (max-width: 900px) {
  .span-8, .span-6, .span-4 { grid-column: span 12; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--br);
  padding: var(--pad);
  box-shadow: var(--glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(201,162,125,0.2), 0 15px 40px rgba(0,0,0,0.5);
  border-color: var(--accent);
}

.card h3, .card h4 {
  margin: 0 0 10px;
}

.card h3 {
  color: var(--accent);
  font-size: 20px;
  letter-spacing: .3px;
  font-weight: 700;
}

.card h4 {
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 600;
}

.card p {
  color: var(--text-secondary);
}

.note { 
  color: var(--muted); 
  font-size: 15px; 
  line-height: 1.5; 
}

.pill {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  /* Los colores se definen en las clases específicas pill-y y pill-n */
}

/* ==================== SISTEMA DE PILLAS COLOREADAS ==================== */
/* Pillas POSITIVAS - Ventajas, beneficios (verde transparente) */
.pill-y {
  background: rgba(16,185,129,0.15);  /* Misma transparencia que .check */
  color: #10b981;                      /* Texto verde sólido */
  border: 1px solid rgba(16,185,129,0.4);
  box-shadow: 0 2px 8px rgba(16,185,129,0.25);
}

/* Pillas NEGATIVAS - Problemas, desventajas (rojo transparente) */
.pill-n {
  background: rgba(239,68,68,0.15);   /* Misma transparencia que .x */
  color: #ef4444;                     /* Texto rojo sólido */
  border: 1px solid rgba(239,68,68,0.4);
  box-shadow: 0 2px 8px rgba(239,68,68,0.25);
}

/* Hover effects mejorados para las pillas transparentes */
.pill-y:hover {
  background: rgba(16,185,129,0.25);  /* Más opaco en hover */
  color: #ffffff;                      /* Texto blanco en hover */
  border: 1px solid rgba(16,185,129,0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16,185,129,0.35);
}

.pill-n:hover {
  background: rgba(239,68,68,0.25);   /* Más opaco en hover */
  color: #ffffff;                      /* Texto blanco en hover */
  border: 1px solid rgba(239,68,68,0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239,68,68,0.35);
}

.pill-button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #0A0A0A;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,162,125,0.6), transparent);
  margin: 12px 0 16px;
}

.list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.list li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  background: rgba(201,162,125,0.05);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.list li:hover {
  background: rgba(201,162,125,0.08);
  border-color: var(--accent);
}

.x, .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  flex: 0 0 22px;
}

.x {
  background: rgba(239,68,68,0.15);
  color: #ef5350;
  border: 1px solid rgba(239,68,68,0.2);
}

.check {
  background: rgba(16,185,129,0.15);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.3);
}

.callout {
  border: 1px solid var(--accent);
  padding: 15px;
  border-radius: 12px;
  /*background: rgba(201,162,125,0.05);*/
  margin-top: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.step {
  background: linear-gradient(135deg, rgba(201,162,125,0.08), rgba(184,144,104,0.05));
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
  cursor: pointer;
  color: var(--text-secondary);
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
  background: linear-gradient(135deg, rgba(201,162,125,0.15), rgba(184,144,104,0.1));
  border-color: var(--accent);
  color: var(--text);
}

.ribbon {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0A0A0A;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(201,162,125,0.4);
}

/* ==================== BOTÓN FLOTANTE WHATSAPP ==================== */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5) !important;
    transition: all 0.3s ease !important;
    z-index: 999999 !important;
    text-decoration: none !important;
    animation: pulse 2s infinite !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.whatsapp-float:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7) !important;
}

.whatsapp-float img {
    width: 28px !important;
    height: 28px !important;
    filter: none !important;
}

@keyframes pulse {
    0% { transform: scale(1) !important; }
    50% { transform: scale(1.05) !important; }
    100% { transform: scale(1) !important; }
}

/* Responsive para móvil */
@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
        width: 65px !important;
        height: 65px !important;
    }
    
    .whatsapp-float img {
        width: 26px !important;
        height: 26px !important;
    }
}

/* Responsive para iconos en móvil */
@media (max-width: 768px) {
    .benefit-icon img {
        width: 30px;
        height: 30px;
    }
}

/* ==================== CONTROL DE OVERSCROLL EN MÓVIL ==================== */
/* Soluciona el problema de zona blanca al hacer scroll en móvil */
@media (max-width: 768px) {
    html, body {
        overscroll-behavior: none;         /* Elimina el bounce effect */
        -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
        height: 100%;                      /* Asegura altura completa */
        min-height: 100vh;                 /* Mínimo altura viewport */
        overflow-x: hidden;                /* Sin scroll horizontal */
        margin: 0;                         /* Reset margin */
        padding: 0;                        /* Reset padding */
    }
    
    /* Contenedor principal con altura mínima */
    .container {
        min-height: calc(100vh - 80px);    /* Altura viewport - header */
        padding-bottom: 140px;              /* Espacio inferior seguro */
        padding-top: 80px;                 /* 80px para coincidir con altura del header */
    }
}

/* Para todos los dispositivos - control adicional */
html {
  overscroll-behavior: contain;          /* Contener overscroll en desktop */
}

/* ==================== RESPONSIVE LOGO ==================== */
/* Logo responsive para tablet (max 1024px) */
@media (max-width: 1024px) {
  .cabecera .logo-container img.logo {
    max-width: 320px;
  }
  
  .logo, .logo-container img.logo {
    max-width: 320px; /* Tablet */
  }
}

/* Logo responsive para móvil (max 768px) */
@media (max-width: 768px) {
  .cabecera .logo-container img.logo {
    max-width: 280px;
  }
  
  .logo, .logo-container img.logo {
    max-width: 280px; /* Móvil */
  }
}

/* Logo responsive para pantallas muy pequeñas (max 480px) */
@media (max-width: 480px) {
  .cabecera .logo-container img.logo {
    max-width: 150px;
  }
  
  .logo, .logo-container img.logo {
    max-width: 200px; /* Pantallas muy pequeñas */
  }
}
