/* ==========================================
   VARIABLES GLOBALES Y TIPOGRAFÍA
   ========================================== */
:root {
    --nivox-blue: #0056FF;
    --nivox-light-blue: #EBF3FF;
    --nivox-dark: #0A142F;
    --bs-body-font-family: 'Public Sans', sans-serif;
}

body {
    font-family: var(--bs-body-font-family);
    color: #4B4B4B;
    background-color: #F8FAFC;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #2F2F2F;
}

/* ==========================================
   HEADER: BARRA BASE SUAVE + PÍLDORA CRISTAL GRUESO (MÁS ALTOS)
   ========================================== */

/* 1. La barra trasera (100% del ancho) - Cristal suave */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: saturate(120%) blur(6px);
    -webkit-backdrop-filter: saturate(120%) blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Aumentamos de 24px a 34px para darle mucha más altura a la base */
    padding-top: 34px !important;
    padding-bottom: 34px !important;
    
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999 !important;
}

/* 2. La píldora interior flotante - Cristal grueso sin color */
.glass-header .container {
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: saturate(150%) blur(16px);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px; 
    
    /* Aumentamos de 12px a 18px el padding vertical para hacer la píldora más alta */
    padding: 18px 32px; 
    
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); 
    transition: all 0.4s ease;
}

/* 3. Comportamiento al hacer scroll */
.glass-header.scrolled {
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: saturate(150%) blur(16px);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    
    /* También le damos un poquito más de altura al header cuando bajas por la página */
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 86, 255, 0.1);
}

.glass-header.scrolled .container {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
    box-shadow: none;
    padding: 8px 15px; 
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    /* Reemplazamos el linear-gradient por la imagen solicitada */
    background-image: url('../../images/recursos/contenedor1.png');
    background-size: cover;          /* Asegura que la imagen cubra todo el ancho y alto de la sección */
    background-position: top center; /* Mantiene la imagen alineada arriba y al centro */
    background-repeat: no-repeat;    /* Evita que la imagen se repita en pantallas muy grandes */
    
    /* Mantenemos el padding superior para evitar que el texto choque con la píldora del menú */
    padding-top: 180px;
}

/* ==========================================
   UTILIDADES
   ========================================== */
.text-primary-nivox {
    color: var(--nivox-blue) !important;
}

.bg-primary-nivox {
    background-color: var(--nivox-blue) !important;
}

.bg-light-blue {
    background-color: var(--nivox-light-blue) !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-5 {
    border-radius: 1.5rem !important;
}

/* ==========================================
   ÍCONOS
   ========================================== */
/* Iconos fondo blanco (beneficios) */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--nivox-light-blue);
    color: var(--nivox-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Iconos fondo azul (problemas - Figma exacto) */
.icon-solid-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: var(--nivox-blue);
    color: white;
    font-size: 1.4rem;
}

.hero-banner-bottom {
    background-color: var(--nivox-blue);
    color: white;
    padding: 80px 0;
    margin-top: 4rem;
}

/* Efecto 3D Hover para el Mockup */
.hero-mockup-wrapper {
    perspective: 1200px;
}

.hero-mockup-img {
    background-color: transparent;
    transform: rotateY(-16deg) rotateX(6deg) rotateZ(-2deg);
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(-15px 20px 30px rgba(0, 0, 0, 0.08));
    will-change: transform;
    cursor: pointer;
}

.hero-mockup-img:hover {
    transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg);
    filter: drop-shadow(0px 15px 40px rgba(0, 86, 255, 0.15));
}

/* ==========================================
   TARJETAS Y UI ELEMENTS
   ========================================== */
.card {
    border: none;
    box-shadow: 0 4px 24px 0 rgba(34, 41, 47, 0.05);
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px 0 rgba(34, 41, 47, 0.1) !important;
}

/* ==========================================
   SECCIÓN: DEL BIOMÉTRICO AL CELULAR (STEPS)
   ========================================== */
/* Cajas de número redondeadas */
.step-number-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--nivox-blue);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

/* ==========================================
   LÍNEA CONECTORA (AJUSTADA)
   ========================================== */
.step-connector-line {
    position: absolute;
    top: 24px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background-color: var(--nivox-blue);
    z-index: 0;
}

/* ==========================================
   CÍRCULO GRUESO (TARJETAS ACCESO 24/7)
   ========================================== */
.thick-circle {
    width: 28px;
    height: 28px;
    border: 4px solid var(--nivox-blue);
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.3s ease;
}

.card-hover:hover .thick-circle {
    transform: scale(1.1);
}

/* ==========================================
   PRICING & TOGGLE
   ========================================== */
.pricing-popular {
    border: 2px solid var(--nivox-blue);
    transform: scale(1.05);
    z-index: 10;
}

@media (max-width: 991px) {
    .pricing-popular {
        transform: scale(1);
    }
}

.toggle-container {
    background-color: var(--nivox-light-blue);
    border-radius: 50px;
    padding: 4px;
    display: inline-flex;
}

.toggle-btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 8px 24px;
    border: none;
    background: transparent;
    color: #6E6B7B;
    transition: all 0.3s;
}

.toggle-btn.active {
    background-color: var(--nivox-blue);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 86, 255, 0.3);
}

/* ==========================================
   STEP BOXES (Implementación)
   ========================================== */
.step-box {
    background-color: var(--nivox-blue);
    color: white;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    height: 100%;
    transition: transform 0.3s;
}

.step-box:hover {
    transform: translateY(-5px);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer-dark {
    background-color: var(--nivox-dark);
    color: #A0AABF;
}

.footer-dark h6 {
    color: white;
}

.footer-dark a {
    transition: color 0.3s;
}

.footer-dark a:hover {
    color: white !important;
}