/* 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 {
    /* Paleta de Colores: Luxury Hospitality Tech */
    --brand-midnight: #0f172a;    /* Midnight Slate - Fondo y confianza */
    --brand-gold: #c29d59;        /* Golden Sand - Acento y exclusividad */
    --brand-gold-hover: #b08d4a;  
    --brand-crisp: #f8fafc;       /* Crisp Linen - Limpieza y claridad */
    --brand-accent: #10b981;      /* Emerald Efficiency - Para estados positivos */
    --brand-danger: #ef4444;      /* Alert Red - Para desafíos/problemas */
    
    /* Mapeo de variables de Bootstrap */
    --bs-primary: var(--brand-midnight);
    --bs-primary-rgb: 15, 23, 42;
    --bs-warning: var(--brand-gold);
    --bs-warning-rgb: 194, 157, 89;
    
    /* Tipografía Premium */
    --bs-font-sans-serif: 'Montserrat', system-ui, -apple-system, 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;
}

/* utilidades premium */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.scale-on-hover {
    transition: transform 0.3s ease;
}

.scale-on-hover:hover {
    transform: scale(1.03);
}

.ls-1 {
    letter-spacing: 1px;
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

.glass-morphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gold {
    color: var(--brand-gold) !important;
}

.bg-danger-subtle {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.bg-success-subtle {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.image-wrapper {
    position: relative;
    transition: transform 0.5s var(--transition-premium);
}

.image-wrapper:hover {
    transform: translateY(-10px);
}

/* =================================================================
   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);
    font-size: 1.5rem; /* Ajuste para que sea más visible */
    font-weight: 700;
}

.nav-logo-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: revealLetter 1s var(--transition-premium) forwards;
}

/* 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: var(--brand-gold);
}

.nav-brand-admin {
    color: var(--brand-crisp);
}

/* 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("../images/landingpage/hero_premium.b1c1cbe8dcbd.png");
    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: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 100%);
    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: #1a1a1a;
            color: #ffffff;
            padding: 40px 0;
            border-top: 5px solid #28a745;
        }

        footer p {
            margin-bottom: 0.5rem;
            opacity: 0.8;
        }

        /* 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: 400px;
            background-color: #ffffff;
            color: #333;
            padding: 24px;
            z-index: 2000;
            border-radius: 16px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            border: 1px solid #e2e8f0;
            visibility: hidden;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        .cookie-banner.show {
            visibility: visible;
            opacity: 1;
            transform: translateY(0);
            pointer-events: all;
        }

        .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
   ================================================================= */

body.custom-cursor-active {
    cursor: none !important;
}

body.custom-cursor-active a,
body.custom-cursor-active button {
    cursor: none !important;
}

@media (max-width: 991px) {
    body.custom-cursor-active {
        cursor: auto !important;
    }
}

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

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

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

/* --- Advanced Dynamics & Mouse Follower --- */

:root {
    --transition-premium: cubic-bezier(0.23, 1, 0.32, 1);
}

.mouse-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: rgba(40, 167, 69, 0.3);
    border: 1px solid rgba(40, 167, 69, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: soft-light;
    filter: blur(4px);
    transition: width 0.3s var(--transition-premium), height 0.3s var(--transition-premium), background 0.3s;
    display: none; /* Shown via JS on desktop */
}

.mouse-follower.active {
    width: 60px;
    height: 60px;
    background: rgba(40, 167, 69, 0.15);
    filter: blur(8px);
}

/* Animations Core */
.anim-reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s var(--transition-premium), transform 1.2s var(--transition-premium);
}

.reveal-hero.is-visible .anim-reveal-up,
.reveal-on-scroll.is-visible .anim-reveal-up,
.reveal-on-scroll.is-visible .anim-fade-up {
    opacity: 1;
    transform: translateY(0);
}

.anim-reveal-up-delay-1 { transition-delay: 0.2s; opacity: 0; transform: translateY(30px); }
.anim-reveal-up-delay-2 { transition-delay: 0.4s; opacity: 0; transform: translateY(30px); }

.reveal-hero.is-visible .anim-reveal-up-delay-1,
.reveal-hero.is-visible .anim-reveal-up-delay-2 {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Effects */
.anim-stagger {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.8s var(--transition-premium);
}

.reveal-on-scroll.is-visible .anim-stagger:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0) scale(1); }
.reveal-on-scroll.is-visible .anim-stagger:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0) scale(1); }
.reveal-on-scroll.is-visible .anim-stagger:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0) scale(1); }
.reveal-on-scroll.is-visible .anim-stagger:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0) scale(1); }

/* Section Overrides */
.reveal-on-scroll {
    opacity: 1 !important;
}

.anim-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s var(--transition-premium);
}

/* Porta de Animación Letra por Letra */
.anim-letter {
    display: inline-block;
    opacity: 0;
    transform: translateX(-20px) scale(0.8);
    filter: blur(4px);
    animation: revealLetter 0.6s var(--transition-premium) forwards;
}

@keyframes revealLetter {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.8);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

/* Fallback: Si JS no carga, mostramos todo */
.no-js .anim-reveal-up,
.no-js .anim-stagger,
.no-js .anim-fade-up {
    opacity: 1;
    transform: none;
}

/* Ensure navbar is above follower */
.navbar {
    z-index: 10001;
}

@media (max-width: 991px) {
    .mouse-follower { display: none !important; }
}