        html {
            scroll-behavior: smooth;
        }
        body {
            font-family: 'Inter', sans-serif;
            overflow-x: hidden; /* Prevenir scroll horizontal por animaciones */
        }
        /* --- START: Preloader Styles --- */
        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #ffffff;
            z-index: 99999;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
        }
        #preloader.hidden {
            opacity: 0;
            visibility: hidden;
        }
        .loader-logo {
            width: 100px;
            height: auto;
            animation: pulse 1.5s infinite ease-in-out;
        }
        @keyframes pulse {
            0% { transform: scale(0.95); opacity: 0.7; }
            50% { transform: scale(1.05); opacity: 1; }
            100% { transform: scale(0.95); opacity: 0.7; }
        }
        /* --- END: Preloader Styles --- */

        .section-fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }
        .section-fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .hero-background {
            background: linear-gradient(to right, rgba(47, 121, 223, 0.9), rgba(200, 234, 255, 0.85)), url('img/login/background_celeste.png');
            background-size: cover;
            background-position: center;
        }
        #sidebar {
            transition: transform 0.3s ease-in-out;
        }
        .sidebar-open {
            transform: translateX(0) !important;
        }
        .form-input, .form-textarea {
            border-radius: 0.375rem;
            border: 1px solid #D1D5DB;
            padding: 0.75rem 1rem;
            transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        }
        .form-input:focus, .form-textarea:focus {
            border-color: #2F79DF;
            box-shadow: 0 0 0 3px rgba(47, 121, 223, 0.3);
            outline: none;
        }
        .bg-erydent-blue { background-color: #2F79DF; }
        .text-erydent-blue { color: #2F79DF; }
        .border-erydent-blue { border-color: #2F79DF; }
        .hover\:bg-erydent-blue-dark:hover { background-color: #2563EB; }
        .bg-erydent-skyblue { background-color: #C8EAFF; }
        .text-erydent-skyblue { color: #C8EAFF; }
        .bg-erydent-gray { background-color: #F3F4F6; }
        .loader, .form-loader {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #2F79DF;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }
        .form-loader {
            width: 20px;
            height: 20px;
            display: inline-block;
            margin-left: 10px;
            vertical-align: middle;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .ai-feature-card {
            background-color: #ffffff;
            padding: 2rem;
            border-radius: 0.75rem;
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
        }
        .plan-toggle-bg {
            background-color: #E5E7EB;
            border-radius: 9999px;
            padding: 0.25rem;
            display: inline-flex;
            position: relative;
        }
        .plan-toggle-button {
            padding: 0.5rem 1.5rem;
            border-radius: 9999px;
            font-weight: 500;
            transition: color 0.3s ease;
            color: #4B5563;
            z-index: 10;
            position: relative;
        }
        .plan-toggle-button.active {
            color: #ffffff;
        }
        .plan-toggle-slider {
            position: absolute;
            top: 0.25rem;
            bottom: 0.25rem;
            width: calc(50% - 0.25rem);
            background-color: #2F79DF;
            border-radius: 9999px;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 5;
        }
        .plan-toggle-bg[data-active-plan="anual"] .plan-toggle-slider {
            transform: translateX(calc(100% - 0.25rem));
        }
        .plan-card {
            border: 1px solid #E5E7EB;
        }
        .plan-card-popular {
            border: 2px solid #2F79DF;
            position: relative;
        }
        .hero-dynamic-text {
            transition: opacity 0.5s ease-in-out;
        }
        .hero-dynamic-text.fade-out { opacity: 0; }
        .hero-dynamic-text.fade-in { opacity: 1; }
        .main-nav a {
            position: relative;
            text-decoration: none;
            padding-bottom: 0.25rem;
        }
        .main-nav a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 50%;
            background-color: #2F79DF;
            transition: width 0.3s ease-in-out, left 0.3s ease-in-out, background-color 0.3s ease;
        }
        .main-nav a:hover::after {
            width: 100%;
            left: 0;
            background-color: #1D4ED8;
        }
         .main-nav a:hover { color: #1D4ED8; }
        #benefits {
            position: relative;
            overflow: hidden;
            background-color: #f9fafb;
        }
        .animated-background-particles {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: 0;
        }
        .animated-background-particles .particle {
            position: absolute;
            border-radius: 50%;
            background-color: rgba(47, 121, 223, 0.1);
            opacity: 0;
            animation: drift 20s infinite linear;
        }
        .animated-background-particles .particle.p1 { width: 60px; height: 60px; left: 10%; top: 20%; animation-duration: 22s; animation-delay: -2s; }
        .animated-background-particles .particle.p2 { width: 80px; height: 80px; left: 30%; top: 70%; background-color: rgba(47, 121, 223, 0.07); animation-duration: 25s; animation-delay: -5s; }
        .animated-background-particles .particle.p3 { width: 40px; height: 40px; left: 70%; top: 10%; animation-duration: 18s; animation-delay: -1s; }
        .animated-background-particles .particle.p4 { width: 100px; height: 100px; left: 85%; top: 60%; background-color: rgba(47, 121, 223, 0.05); animation-duration: 28s; animation-delay: -8s; }
        .animated-background-particles .particle.p5 { width: 50px; height: 50px; left: 50%; top: 40%; animation-duration: 20s; animation-delay: -3s; }
        .animated-background-particles .particle.p6 { width: 70px; height: 70px; left: 5%; top: 85%; background-color: rgba(47, 121, 223, 0.08); animation-duration: 23s; animation-delay: -6s; }
        @keyframes drift {
            0% { transform: translateY(0px) translateX(0px) scale(0.8); opacity: 0; }
            20% { opacity: 1; }
            80% { opacity: 0.7; }
            100% { transform: translateY(-150px) translateX(100px) scale(1.2); opacity: 0; }
        }
        #benefits > .container { position: relative; z-index: 1; }
        .card-hover-effect { transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important; }
        .card-hover-effect:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 30px -8px rgba(0,0,0,0.15), 0 10px 15px -5px rgba(0,0,0,0.1) !important;
        }
        .ai-feature-card { transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; }
        .ai-feature-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.08);
        }
        .icon-hover-effect {
            transition: transform 0.3s ease-in-out;
            display: inline-block;
        }
        .icon-hover-effect:hover { transform: scale(1.15) rotate(-8deg); }
        #benefits .flex-shrink-0 .fa-clock:hover,
        #benefits .flex-shrink-0 .fa-chart-pie:hover,
        #benefits .flex-shrink-0 .fa-heart:hover,
        #benefits .flex-shrink-0 .fa-cloud:hover { transform: scale(1.2) rotate(10deg); }
        .button-hover-effect { transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important; }
        .button-hover-effect:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 10px 20px rgba(0,0,0,0.15);
            filter: brightness(1.12);
        }
        a.border-2.border-white.button-hover-effect:hover {
            background-color: rgba(255, 255, 255, 0.15) !important;
            border-color: #fff !important;
        }
        button.border-erydent-blue.button-hover-effect:hover {
            background-color: rgba(47, 121, 223, 0.1) !important;
            border-color: #2563EB !important;
            color: #2563EB !important;
        }
        .footer-social-icon { transition: transform 0.3s ease, color 0.3s ease; }
        .footer-social-icon:hover {
            transform: translateY(-4px) scale(1.25);
            color: #C8EAFF;
        }
        .stagger-children > * {
            opacity: 0;
            transform: translateY(25px);
            transition: opacity 0.45s ease-out, transform 0.45s ease-out;
        }
        .visible.stagger-children > * { opacity: 1; transform: translateY(0); }
        .visible.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
        .visible.stagger-children > *:nth-child(2) { transition-delay: 0.15s; }
        .visible.stagger-children > *:nth-child(3) { transition-delay: 0.25s; }
        .visible.stagger-children > *:nth-child(4) { transition-delay: 0.35s; }
        .visible.stagger-children > *:nth-child(5) { transition-delay: 0.45s; }
        .visible.stagger-children > *:nth-child(6) { transition-delay: 0.55s; }

        /* Hide Google's automatic UI elements */
        .VIpgJd-ZVi9od-ORHb-OEVmcd, .goog-te-banner-frame, .skiptranslate {
             display: none !important;
        }
        body { top: 0px !important; }

        /* Estilos para el botón Scroll to Top */
        #scrollToTopBtn {
            /* La opacidad y la transición ya están aplicadas con clases de Tailwind */
            /* opacity: 0; */
            /* transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; */
            cursor: pointer;
        }

        #scrollToTopBtn.visible {
            opacity: 1;
        }

        /* Estilos para el botón de WhatsApp (ya tiene clases de Tailwind) */
        #whatsapp-button {
            /* transition: transform 0.3s ease-in-out; */
            cursor: pointer;
        }
        /* #whatsapp-button:hover { */
            /* transform: scale(1.1); */
        /* } */

        /* --- ESTILOS PARA LOS BOTONES DE NAVEGACIÓN (FLECHAS) - VERSIÓN FINAL --- */
.features-swiper-button-prev,
.features-swiper-button-next {
    position: absolute;
    top: 50%;
    /* Ajustamos la transformación para compensar la altura del botón y la paginación */
    transform: translateY(-calc(50% + 15px)); 
    width: 44px;
    height: 44px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    cursor: pointer;
    /* Flexbox centrará perfectamente el ícono <i> que añadimos en el HTML */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

/* El ícono de Font Awesome heredará el color del padre */
.features-swiper-button-prev i,
.features-swiper-button-next i {
    color: #2F79DF; /* Color principal de ERYDENT */
    font-size: 16px; /* Ajusta el tamaño del ícono a tu gusto */
    transition: color 0.3s;
}

/* Ya no necesitamos los estilos de ::after, los hemos eliminado */

.features-swiper-button-prev {
    left: 10px;
}

.features-swiper-button-next {
    right: 10px;
}

.features-swiper-button-prev:hover,
.features-swiper-button-next:hover {
    background-color: #2F79DF;
    transform: translateY(-calc(50% + 15px)) scale(1.1);
}

/* Al pasar el cursor, el ícono se vuelve blanco */
.features-swiper-button-prev:hover i,
.features-swiper-button-next:hover i {
    color: white;
}

@media (max-width: 768px) {
    .features-swiper-button-prev,
    .features-swiper-button-next {
        display: none;
    }
}