/* Botón verde personalizado para el landing */
.btn-green {
    background-color: #28a745 !important;
    color: #fff !important;
    border: none;
    transition: background 0.3s;
}

.btn-green:hover,
.btn-green:focus {
    background-color: #218838 !important;
    color: #fff !important;
}

/* =================================================================
   1. VARIABLES DE ROOT Y ESTILO BASE (NUEVO)
   ================================================================= */
:root {
    /* Redefinimos los colores de Bootstrap para un look más corporativo */
    --bs-primary: #004a99;
    /* Un azul más oscuro y elegante */
    --bs-primary-rgb: 0, 74, 153;
    --bs-secondary: #f8f9fa;
    /* Gris claro */
    --bs-dark: #222;

    /* Usaremos el color "warning" para acentos, no para el CTA principal */
    --bs-warning: #0b7a75;
    /* Un tono verde azulado (teal) */
    --bs-warning-rgb: 11, 122, 117;

    /* Tipografía más limpia */
    --bs-font-sans-serif: 'Montserrat', sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

body {
    font-family: var(--bs-font-sans-serif);
    /* NUEVO: Fuente Montserrat */
    color: #333;
    padding-top: 56px;
    /* Ajuste para la navbar fija */
    overflow-x: hidden;
    /* Evita el scroll horizontal causado por las animaciones */
}

/* Tipografía de encabezados (NUEVO) */
h1,
h2,
h3,
h4,
h5,
h6,
.display-4,
.display-6 {
    font-family: var(--bs-font-sans-serif);
    font-weight: 700;
}

.lead {
    font-weight: 400;
    /* NUEVO */
}

/* =================================================================
   2. NAVBAR
   ================================================================= */
.navbar {
    transition: background-color 0.4s ease-out;
    /* Transición suave para el fondo */
}

.navbar-brand {
    font-family: var(--bs-font-sans-serif);
    /* NUEVO */
    font-weight: 700;
    /* MODIFICADO (bold -> 700) */
    font-size: 1.5rem;
}

/* Estado de la navbar al hacer scroll (se añade con JS) */
.navbar-scrolled {
    background-color: var(--bs-dark) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-brand-custom {
    color: #28a745;
    /* Verde claro */
}

.nav-brand-admin {
    color: #FFFFFF;
    /* Blanco */
}

/* Navbar item animations */
.nav-item {
    position: relative;
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--bs-primary);
    /* MODIFICADO: usa nueva variable */
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-item:hover .nav-link,
.nav-item.active .nav-link {
    color: var(--bs-warning) !important;
    /* MODIFICADO: usa nuevo color de acento */
}

/* =================================================================
   3. SECCIÓN HERO (NUEVO)
   ================================================================= */
.hero-section-professional {
    position: relative;
    background-image: url('https://images.pexels.com/photos/261102/pexels-photo-261102.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 8rem 0;
    overflow: hidden;
    /* Para contener el efecto Ken Burns */
    animation: ken-burns 20s infinite alternate;
    /* Animación de fondo */
}

/* Animación Ken Burns para el fondo del hero */
@keyframes ken-burns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-section-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Superposición oscura para legibilidad */
    z-index: 1;
}

.hero-section-professional .container {
    position: relative;
    z-index: 2;
}

/* Animaciones de entrada para el texto del hero */
.hero-section-professional h1 {
    animation: fade-in-down 1s ease-out forwards;
}

.hero-section-professional p.lead {
    animation: fade-in-down 1s ease-out 0.5s forwards;
    /* 0.5s de retraso */
    opacity: 0;
    /* Empieza invisible */
}

.hero-section-professional .btn {
    animation: fade-in-down 1s ease-out 1s forwards;
    /* 1s de retraso */
    opacity: 0;
    /* Empieza invisible */
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =================================================================
   5. SECCIONES Y ANIMACIONES
   ================================================================= */

/* Animaciones de entrada */
.fade-in-section {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

.fade-in-section.slide-in-left,
.fade-in-section.slide-in-right,
.fade-in-section.zoom-in,
.fade-in-section.fade-up {
    /* La transición ya está definida arriba, no es necesario repetirla */
}

.fade-in-section.slide-in-left {
    transform: translateX(-100px);
}

.fade-in-section.slide-in-right {
    transform: translateX(100px);
}

.fade-in-section.zoom-in {
    transform: scale(0.9);
}

.fade-in-section.fade-up {
    transform: translateY(50px);
}

/* Estilos de sección general */
#features,
#how-it-works,
#benefits,
#plans,
#testimonials,
#contact {
    padding: 80px 0;
}

/* Nuevo fondo para separar secciones */
.bg-primary-tint {
    background-color: rgba(40, 167, 69, 0.4);
    /* Un tinte azul muy claro derivado del primario */
}

/* =================================================================
   PARALLAX SECTIONS
   ================================================================= */
.parallax-section {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    /* Superposición oscura */
    z-index: 1;
}

.parallax-section .container {
    position: relative;
    z-index: 2;
}

/* Asegurar legibilidad del texto en secciones parallax */
.parallax-section h2,
.parallax-section h5,
.parallax-section p,
.parallax-section .lead {
    color: #fff;
}

.parallax-section p {
    opacity: 0.9;
    /* Un poco de opacidad para el texto secundario */
}

/* CORRECCIÓN: Devolver el color oscuro al texto dentro de las cards de la sección parallax */
.parallax-section .step-box h4,
.parallax-section .step-box p {
    color: var(--bs-dark);
}

/* Imágenes específicas para cada sección parallax */
#how-it-works {
    background-image: url('https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
}

#contact {
    background-image: url('https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
}


/* How it works section */
#how-it-works .step-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#how-it-works .step-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(var(--bs-primary-rgb), 0.2);
    /* Sombra de color */
}

#how-it-works .step-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    /* MODIFICADO */
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

#how-it-works .step-icon {
    font-size: 2.5rem;
}

#how-it-works .step-box:hover .step-icon-wrapper {
    background-color: #003366;
    /* Un tono más oscuro del nuevo primary */
}

/* =================================================================
   6. SECCIÓN DE PLANES (NUEVO)
   ================================================================= */
/* Ajuste de padding para evitar solapamiento */
#pl {
        {
        padding-pottamgr6rm
    }

    .card-pricing {
        6. SECCIÓN DE PLANES (NUEVO)=================================================================*/ .card-pricing {
            transition: all 0.3s ease;
            border: 1px solid #e0e0e0;
        }

        .card-pricing:not(.highlighted):hover {
            transform: translateY(-5px);
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        }

        .card-pricing.highlighted {
            border: 2px solid var(--bs-primary);
            box-shadow: 0 0.5rem 2rem rgba(var(--bs-primary-rgb), 0.25);
            transform: scale(1.05);
        }

        .card-pricing .card-header {
            background-color: transparent;
            border-bottom: 0;
            padding: 1.5rem 1.5rem 0.5rem;
        }

        .card-pricing .card-body {
            padding-top: 0.5rem;
        }

        /* =================================================================
   7. SECCIÓN DE TESTIMONIOS (NUEVO Y MEJORADO)
   ================================================================= */
        #testimonials {
            position: relative;
        }

        .testimonial-carousel .carousel-item {
            padding: 2rem 0;
            /* Ajuste de padding */
        }

        /* Contenedor principal del testimonio */
        .testimonial-card {
            background-color: #ffffff;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            padding: 2.5rem;
            margin: 0 auto;
            max-width: 700px;
            position: relative;
            overflow: hidden;
        }

        /* Icono de comillas decorativo */
        .testimonial-card::before {
            content: '\201C';
            /* Comilla doble izquierda */
            font-family: 'Georgia', serif;
            position: absolute;
            top: 10px;
            left: 20px;
            font-size: 6rem;
            color: rgba(0, 0, 0, 0.08);
            /* Más oscuro para mejor visibilidad */
            z-index: 1;
        }

        .testimonial-card .blockquote {
            position: relative;
            z-index: 2;
        }

        .testimonial-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin-bottom: 1.5rem;
            /* Se elimina el borde para evitar el estilo en imágenes rotas */
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .testimonial-carousel .blockquote p {
            font-size: 1.1rem;
            font-style: italic;
            color: #333;
            /* Texto más oscuro para legibilidad */
        }

        .testimonial-carousel .blockquote-footer {
            margin-top: 1rem;
            font-size: 1rem;
            color: var(--bs-primary);
            font-weight: 600;
            background-color: transparent !important;
            /* Asegura que no haya fondo gris */
            padding: 0;
        }

        .testimonial-carousel .blockquote-footer cite {
            color: #555;
            /* Color más oscuro para el cargo */
            font-weight: 400;
        }

        /* Estilos de los controles del carrusel */
        .testimonial-carousel .carousel-control-prev,
        .testimonial-carousel .carousel-control-next {
            width: 50px;
            height: 50px;
            background-color: rgba(var(--bs-primary-rgb), 0.8);
            border-radius: 50%;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0.7;
            transition: opacity 0.3s, background-color 0.3s;
        }

        .testimonial-carousel .carousel-control-prev {
            left: -25px;
            /* Ligeramente fuera para un look moderno */
        }

        .testimonial-carousel .carousel-control-next {
            right: -25px;
            /* Ligeramente fuera para un look moderno */
        }

        .testimonial-carousel .carousel-control-prev:hover,
        .testimonial-carousel .carousel-control-next:hover {
            background-color: var(--bs-primary);
            opacity: 1;
        }

        .testimonial-carousel .carousel-indicators {
            bottom: -40px;
        }

        .testimonial-carousel .carousel-indicators button {
            background-color: var(--bs-primary);
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin: 0 5px;
            border: none;
        }

        /* =================================================================
   8. SECCIÓN DE CONTACTO
   ================================================================= */
        #contact .btn-outline-primary {
            color: var(--bs-primary);
            border-color: var(--bs-primary);
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        #contact .btn-outline-primary:hover {
            background-color: var(--bs-primary);
            color: white;
        }

        /* =================================================================
   9. FOOTER Y UTILIDADES
   ================================================================= */
        footer {
            background-color: #9c9c9c;
            color: #28a745;
            padding: 20px 0;
        }

        /* Back to top button (MEJORADO) */
        .back-to-top {
            position: fixed;
            visibility: hidden;
            opacity: 0;
            right: 20px;
            bottom: 20px;
            z-index: 996;
            background: var(--bs-primary);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .back-to-top i {
            font-size: 28px;
            color: #fff;
            line-height: 0;
        }

        .back-to-top:hover {
            background: #003366;
            /* Un tono más oscuro del nuevo primary */
            color: #fff;
            transform: translateY(-4px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }

        .back-to-top.active {
            visibility: visible;
            opacity: 1;
        }

        /* Estilos para el banner de cookies (MEJORADO) */
        .cookie-banner {
            position: fixed;
            bottom: 20px;
            left: 20px;
            max-width: 450px;
            /* Ancho máximo para que no ocupe toda la pantalla en escritorios */
            background-color: #fff;
            color: #333;
            padding: 20px 25px;
            z-index: 1050;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
            display: none;
            transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
            transform: translateY(100px);
            opacity: 0;
        }

        .cookie-banner.show {
            display: block;
            transform: translateY(0);
            opacity: 1;
        }

        .cookie-banner .cookie-content {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .cookie-banner p {
            margin: 0;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .cookie-banner p a {
            color: var(--bs-primary);
            text-decoration: underline;
            font-weight: 600;
        }

        .cookie-banner .cookie-actions {
            display: flex;
            justify-content: flex-end;
        }

        .cookie-banner .btn {
            padding: 8px 20px;
            border-radius: 8px;
        }

        /* =================================================================
   10. AJUSTES RESPONSIVE
   ================================================================= */

        /* Responsive adjustments */
        @media (max-width: 768px) {

            #features,
            #benefits,
            #contact,
            #how-it-works,
            #plans,
            #testimonials {
                padding: 50px 0;
            }

            .modal-content {
                flex-direction: column;
            }
        }