/* ==========================================
   VARIABLES GLOBALES Y TIPOGRAFÍA
   ========================================== */
:root {
    --nivox-blue: #0056FF;
    --nivox-light-blue: #EBF3FF;
    --nivox-dark: #0A142F;
    --bs-body-font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--bs-body-font-family);
    color: #4B4B4B;
    background-color: #F8FAFC;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #2F2F2F;
}

/* ==========================================
   ANIMACIONES HERO MOCKUP Y HOVER FIGMA (DETALLES FINALES)
   ========================================== */

.hero-mockup-wrapper {
    cursor: pointer;
    perspective: 1000px;
}

.hero-mockup-img {
    transform: rotate(-3deg) scale(1.1);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.6s ease;
    transform-origin: center center;
}

.hero-mockup-wrapper:hover .hero-mockup-img {
    transform: rotate(0deg) scale(1.12) translateY(12px);
    filter: drop-shadow(0 20px 30px rgba(0, 86, 255, 0.15));
}

.floating-status-badge {
    position: absolute;
    top: -5%;
    right: 8%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 10;
    pointer-events: none;

    transform: rotate(-3deg) scale(1.1);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.6s ease;
}

.floating-status-badge .fw-bold {
    font-size: 0.9rem;
    color: #28c76f !important;
}

.hero-mockup-wrapper:hover .floating-status-badge {
    transform: rotate(0deg) scale(1.12) translateY(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 0 20px rgba(40, 199, 111, 0.281);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #28c76f;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #28c76f;
    border-radius: 50%;
    opacity: 0;
}

.hero-mockup-wrapper:hover .pulse-dot::after {
    animation: pulse-glow 1.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-glow {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ==========================================
   HEADER: BARRA BASE SUAVE + PÍLDORA CRISTAL GRUESO
   ========================================== */

.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);
    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;
}

.glass-header .container {
    background: rgb(0 106 191 / 13%);
    backdrop-filter: saturate(150%) blur(16px);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 18px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.glass-header.scrolled {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: saturate(120%) blur(12px);
    -webkit-backdrop-filter: saturate(120%) blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 25px !important;
    padding-bottom: 25px !important;
}

.glass-header.scrolled .container {
    background: rgb(0 106 191 / 13%);
    backdrop-filter: saturate(150%) blur(16px);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 18px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

.price-value,
.price-period {
    transition: opacity 0.15s ease-in-out;
}


/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    background-image: url('../../images/recursos/contenedor1.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

.hero-section>.container {
    min-height: 100vh;
    padding-top: 160px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
}

/* ==========================================
   BANNER INFERIOR AZUL
   ========================================== */
.hero-banner-bottom {
    background-color: var(--nivox-blue);
    color: white;
    padding: 60px 0;
}

/* ==========================================
   BOTONES PERSONALIZADOS (HEADER Y GLOBALES)
   ========================================== */
.btn-outline-primary {
    color: var(--nivox-blue);
    border-color: var(--nivox-blue);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--nivox-blue);
    color: white;
    border-color: var(--nivox-blue);
}

@keyframes heartbeatRight {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }

}

.btn-gradient-primary {
    background: linear-gradient(90deg, var(--nivox-blue) 0%, var(--nivox-blue) 45%, #00227A 100%);
    background-size: 220% 100%;
    box-shadow: 0 4px 15px rgba(0, 86, 255, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: heartbeatRight 4.5s ease-in-out infinite;
}

.btn-gradient-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 86, 255, 0.4);
    transform: translateY(-2px);
    color: white;
}

/* ==========================================
   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
   ========================================== */
.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;
}

.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: 60px 0;
    margin-top: auto;
}

/* ==========================================
   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)
   ========================================== */
.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: HOVER DE TARJETAS
   ========================================== */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.pricing-card:not(.pricing-popular):hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 86, 255, 0.08) !important;
}

.pricing-popular {
    border: 2px solid var(--nivox-blue) !important;
    z-index: 10;
    transform: none;
    margin-top: -1.5rem;
    margin-bottom: -1.5rem;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

.pricing-popular:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 86, 255, 0.15) !important;
}

/* En móviles, devolvemos la tarjeta a su tamaño normal */
@media (max-width: 991px) {
    .pricing-popular {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .pricing-popular:hover {
        transform: translateY(-5px);
    }
}

.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: linear-gradient(96deg, #116EFA 0%, #005be4 100%);
    color: white;
    padding: 2.2rem 1.25rem;
    border-radius: 0.75rem;
    height: 170px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.step-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px #003fbc52 !important;
}

.step-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: rgb(190 230 255 / 50%);
    line-height: 1;
}

/* ==========================================
   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;
}


/* Encabezados de la tabla */
th {
    text-align: left;
}

td {
    text-align: left;
}

.icono-y-texto {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

/* ==========================================
   ACORDEÓN FAQ (Figma Match)
   ========================================== */
.custom-accordion .accordion-item {
    border-radius: 12px !important;
}

.custom-accordion .accordion-button {
    border-radius: 12px !important;
    font-size: 0.95rem;
}

.custom-accordion .accordion-button::after {
    background-image: none !important;
    font-family: 'tabler-icons';
    content: "\eb0b";
    color: var(--nivox-blue);
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: #2F2F2F;
    box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    content: "\eb55";
    transform: rotate(90deg);
    color: var(--nivox-blue);
}


/* ==========================================
   PRICING: TOGGLE & BOTONES (Figma Match)
   ========================================== */

.toggle-container-figma {
    background-color: #FFFFFF;
    border: 1px solid var(--nivox-blue);
    border-radius: 50px;
    padding: 4px;
    display: inline-flex;
}

.toggle-container-figma .toggle-btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 8px 32px;
    border: none;
    background: transparent;
    color: var(--nivox-blue);
    transition: all 0.3s ease;
}

.toggle-container-figma .toggle-btn.active {
    background-color: var(--nivox-blue);
    color: white !important;
}

.custom-outline-btn {
    color: var(--nivox-blue);
    border: 1px solid var(--nivox-blue);
    background-color: transparent;
}

.custom-outline-btn:hover {
    background-color: var(--nivox-blue);
    color: white;
}

/* ==========================================
   BANNER INFERIOR: EFECTO GLASS FIGMA
   ========================================== */
.badge-sector {
    background-color: rgba(255, 255, 255, 0.75) !important;
    color: var(--nivox-blue) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

    transition: all 0.3s ease;
}

.badge-sector:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-2px);
}