 :root {
            --primary: #2C3E50;
            --secondary: #34495E;
            --accent: #F3C623;
            --accent-light: #FFB22C;
            --accent-dark: #FA812F;
            --background-light: #FEF3E2;
            --text-dark: #333;
            --text-light: #f1faee;
            --gray: #7f8c8d;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            line-height: 1.6;
            color: var(--text-dark);
            overflow-x: hidden;
            background-color: var(--background-light);
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* Utilidades */
        .text-center {
            text-align: center;
        }

        /* Header */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            z-index: 1000;
            transition: all 0.3s ease-in-out;
            padding: 10px 0;
        }

        .navbar.scrolled {
            padding: 5px 0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo img {
            height: 75px;
            transition: height 0.3s ease-in-out;
        }

        .navbar.scrolled .logo img {
            height: 45px;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 20px;
            align-items: center;
        }

        /* ESTILOS MEJORADOS PARA LOS BOTONES DE NAVEGACIÓN */
        .nav-links a {
            text-decoration: none;
            color: var(--primary);
            font-weight: 600;
            padding: 10px 18px;
            border-radius: 6px;
            transition: all 0.3s ease;
            position: relative;
            font-size: 0.95rem;
            border: 2px solid transparent;
        }

        .nav-links a:hover {
            background-color: var(--accent);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .nav-links a.active-link {
            color: var(--accent-dark);
            font-weight: 700;
        }

        /* Botón WebMail con estilo diferenciado */
        .nav-links a[href*="webmail"] {
            background-color: var(--primary);
            color: white;
        }

        .nav-links a[href*="webmail"]:hover {
            background-color: var(--secondary);
        }
        
        .desktop-cta {
            margin-left: 15px;
        }
        
        .menu-toggle {
            display: none;
            font-size: 1.8rem;
            cursor: pointer;
            color: var(--primary);
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            min-height: 650px;
            margin-top: 75px; /* Altura inicial del navbar */
            position: relative;
            overflow: hidden;
        }

        .hero-slider {
            display: flex;
            width: 500%; /* 100% por cada slide */
            height: 100%;
            transition: transform 0.8s ease-in-out;
        }
        .img {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* o 'cover' si quieres que llene el espacio */
    display: block;
}
                .slide {
            min-width: 20%; /* 100% / 5 slides */
            height: 100%;
            /* Corrección para un mejor centrado y control de la imagen */
            background-size: cover;
            background-position: center center; /* Asegura el centrado vertical y horizontal */
            background-repeat: no-repeat; /* Evita que la imagen se repita */
            background-color: var(--primary); /* Color de fondo mientras carga la imagen */
            flex-shrink: 0;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .hero-content {
            color: white;
            max-width: 800px;
            padding: 0 20px;
        }

        .hero-content h1 {
            font-size: 3.2rem;
            margin-bottom: 25px;
            line-height: 1.2;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
        }

        .hero-content p {
            font-size: 1.3rem;
            margin-bottom: 40px;
            opacity: 0.9;
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
        }

        /* Botones Mejorados */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 14px 30px;
            border-radius: 50px;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.3s ease-in-out;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 1rem;
            border: 2px solid transparent;
            cursor: pointer;
        }

        .btn i {
            margin-right: 10px;
        }

        .cta-button {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
            box-shadow: 0 5px 15px rgba(243, 198, 35, 0.3);
        }

        .cta-button:hover {
            background: var(--accent-dark);
            border-color: var(--accent-dark);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(243, 198, 35, 0.4);
        }

        .secondary-button {
            background: rgba(255,255,255,0.2);
            color: white;
            border-color: white;
        }

        .secondary-button:hover {
            background: white;
            color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(255,255,255,0.2);
        }

        /* Secciones comunes */
        section {
            padding: 100px 0;
        }

        .section-title {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-title h2 {
            font-size: 2.8rem;
            color: var(--primary);
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: -10px;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: var(--accent);
            border-radius: 2px;
        }

        .section-title p {
            color: var(--gray);
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto;
        }

        /* Accesos rápidos */
        .quick-access {
            padding: 80px 0;
            position: relative;
            
            /* --- INICIO DE LA MODIFICACIÓN --- */
        
            /* Capa de color semitransparente sobre la imagen de fondo */
            background: linear-gradient(rgba(254, 243, 226, 0.80), rgba(254, 243, 226, 0.80)),
                        url('img/certificacion.jpg'); /* <-- CAMBIA ESTO por tu imagen */
        
            background-size: cover;
            background-position: center center;
            
        }

        .access-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
        }

        .access-card {
            background: white;
            padding: 35px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 6px 15px rgba(0,0,0,0.08);
            transition: all 0.3s ease-out;
            text-decoration: none;
            color: var(--text-dark);
            border-left: 5px solid var(--accent-light);
        }

        .access-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 25px rgba(0,0,0,0.15);
            border-left-color: var(--accent-dark);
        }

        .access-card i {
            font-size: 3.5rem;
            color: var(--accent);
            margin-bottom: 20px;
        }

        .access-card h3 {
            font-size: 1.6rem;
            margin-bottom: 10px;
            color: var(--primary);
        }

        .access-card p {
            font-size: 1.1rem;
            color: var(--gray);
        }

        /* Servicios */
        .services-section {
            background-color: white;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
        }

        .service-card {
            background: #ffffff;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
            transition: all 0.4s ease-in-out;
            border-top: 5px solid var(--accent-light);
        }

        .service-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 18px 35px rgba(0,0,0,0.15);
            border-top-color: var(--accent-dark);
        }

        .service-icon {
            background: var(--background-light);
            padding: 30px;
            text-align: center;
        }

        .service-icon img {
            height: 90px;
            max-width: 100%;
            object-fit: contain;
        }

        .service-content {
            padding: 35px;
        }

        .service-content h3 {
            color: var(--primary);
            margin-bottom: 20px;
            font-size: 1.8rem;
            font-weight: 700;
        }

        .service-content ul {
            list-style: none;
            margin-bottom: 30px;
            padding-left: 0;
        }

        .service-content li {
            margin-bottom: 12px;
            font-size: 1.1rem;
            color: var(--text-dark); /* CORREGIDO */
            position: relative;
            padding-left: 25px;
        }

        .service-content li::before {
            content: "\f00c";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            left: 0;
            color: var(--accent);
            font-size: 0.9em;
            top: 4px;
        }

        .service-link {
            color: var(--accent-dark);
            font-weight: 700;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            font-size: 1.1rem;
        }

        .service-link i {
            margin-left: 10px;
            transition: transform 0.3s ease;
        }

        .service-link:hover i {
            transform: translateX(8px);
        }

 /* certificaciones Section */
       
       .certifications-section {
    background-color: white; 
}

.horizontal-certifications {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 5px; /* Añadido un pequeño padding lateral */
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    scroll-behavior: smooth;
}
.horizontal-certifications.active {
    cursor: grabbing;
}

.horizontal-certifications::-webkit-scrollbar {
    display: none;
}

.certification-item {
    display: flex;
    align-items: center;
    /* Cambiamos al color de fondo claro para que contraste con el blanco de la sección */
    background: var(--background-light); 
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-width: 350px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--accent);
}
    
.certification-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
        
        .small-logo {
            width: 70px;
            height: auto;
            margin-right: 20px;
            object-fit: contain;
        }
        
        .certification-text h3 {
            font-size: 1.4rem;
            color: var(--primary);
            margin-bottom: 5px;
        }
        
        .certification-text p {
            font-size: 1rem;
            color: var(--gray);
            line-height: 1.4;
        }

        /* Cotizar Section */
        #cotizar {
            background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.9)), url('img/cars.jpg') no-repeat center center/cover;
            color: white;
            padding: 80px 0;
        }

        /* Footer */
        .footer {
            background: var(--primary);
            color: white;
            padding: 80px 0 30px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 50px;
            margin-bottom: 50px;
        }

        .footer-logo img {
            height: 60px;
            margin-bottom: 20px;
        }

        .footer-col p {
            color: rgba(255,255,255,0.8);
            line-height: 1.7;
            font-size: 1rem;
        }

        .footer-col h3 {
            font-size: 1.5rem;
            margin-bottom: 25px;
            color: var(--accent);
            position: relative;
            padding-bottom: 10px;
        }

        .footer-col h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 3px;
            background-color: var(--accent-light);
            border-radius: 2px;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 15px;
        }

        .footer-links a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
        }

        .footer-links a:hover {
            color: white;
            padding-left: 8px;
        }
        
        /* Estilos para los nuevos links de políticas */
        .policy-links {
            list-style: none;
            margin-top: 25px;
        }
        .policy-links li {
            margin-bottom: 15px;
        }
        .policy-links a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            font-weight: bold;
            font-size: 0.9rem;
            transition: color 0.3s ease;
        }
        .policy-links a:hover {
            color: var(--accent);
        }

        /* AJUSTE: Mover social-links a columna de contacto */
        .contact-info {
            list-style: none;
            margin-bottom: 30px; /* Espacio para los iconos sociales debajo */
        }
        
        .social-links {
            display: flex;
            gap: 20px;
            margin-top: 25px;
        }
        
        .social-links a {
            color: white;
            font-size: 1.8rem;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            color: var(--accent);
            transform: translateY(-3px);
        }
        
        .contact-info li {
            margin-bottom: 18px;
            display: flex;
            align-items: flex-start;
            font-size: 1.05rem;
            color: rgba(255,255,255,0.9);
        }
        
        .contact-info i {
            margin-right: 15px;
            color: var(--accent-light);
            font-size: 1.2em;
            flex-shrink: 0;
            padding-top: 3px;
        }
        
        .contact-info a {
            color: rgba(255,255,255,0.9);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .contact-info a:hover {
            color: white;
        }
        
        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.6);
            font-size: 1rem; /* AJUSTADO */
        }
        
        /* Animaciones */
        .fade-in-on-scroll {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }
        
        .is-visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Responsive */
        @media (max-width: 992px) {
            .nav-links a {
                padding: 8px 12px;
                font-size: 0.9rem;
            }
            .hero-content h1 {
                font-size: 2.8rem;
            }
            .section-title h2 {
                font-size: 2.4rem;
            }
        }

        @media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
        transition: transform 0.3s ease;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--primary);
    }

    .menu-toggle.active {
        transform: rotate(90deg);
        color: var(--accent-dark);
    }

    .nav-links {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
        opacity: 0;
        z-index: 1000;
        border-radius: 0 0 15px 15px;
    }

    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        padding: 15px 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        width: 90%;
        margin: 5px auto;
        padding: 12px 20px;
        border-radius: 8px;
        background: rgba(243, 198, 35, 0.1);
        border: none;
        display: block;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: var(--accent);
        transform: translateX(8px);
    }

    .nav-links a[href*="webmail"] {
        background: var(--primary);
        color: white;
        margin-top: 10px;
    }

    .nav-links a[href*="webmail"]:hover {
        background: var(--secondary);
    }
}

            .desktop-cta {
                display: none;
            }

            .hero {
                min-height: 550px;
                margin-top: 65px;
            }
            .hero-content h1 {
                font-size: 2.2rem;
            }
            .hero-content p {
                font-size: 1.1rem;
            }
            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }
            .btn {
                width: 80%;
                max-width: 300px;
            }

            section {
                padding: 80px 0;
            }
            .section-title h2 {
                font-size: 2rem;
            }
            .footer-grid > .footer-col {
                text-align: center;
            }
            .footer-col h3::after {
                left: 50%;
                transform: translateX(-50%);
            }
            .contact-info li, .social-links {
                justify-content: center;
            }
        }

                /*hero section */ 

        @media (max-width: 480px) {
            .hero-content h1 {
                font-size: 1.8rem;
            }
            .hero-content p {
                font-size: 1rem;
            }
            .btn {
                padding: 12px 20px;
                font-size: 0.9rem;
            }
            .section-title h2 {
                font-size: 1.8rem;
            }
            .section-title p {
                font-size: 1rem;
            }
            .access-card h3, .service-content h3 {
                font-size: 1.5rem;
            }
            .access-card p, .service-content li {
                font-size: 1rem;
            }
            
        }
                    /* ESTILOS PARA CONTADORES ANIMADOS */
            .stats-section {
                padding: 80px 0;
                text-align: center;
            }
            
            .stats-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 30px;
                margin-top: 50px;
            }
            
            .stat-card {
                background: white;
                padding: 30px;
                border-radius: 12px;
                box-shadow: 0 5px 15px rgba(0,0,0,0.08);
                transition: transform 0.3s ease;
            }
            
            .stat-card:hover {
                transform: translateY(-10px);
            }
            
            .stat-icon i {
                font-size: 2.5rem;
                margin-bottom: 15px;
            }
            
            .stat-number {
                font-size: 3rem;
                font-weight: 700;
                color: var(--primary);
                margin: 10px 0;
                transition: color 0.3s ease;
            }
            
            .stat-label {
                color: var(--gray);
                font-size: 1.1rem;
            }
                /* ESTILOS PARA NOTICIERO TV (VERSIÓN INTEGRADA) */
.tv-news-section {
    padding: 80px 0;
    background: var(--background-light);
}

.tv-container {
    max-width: 900px; /* Un poco más grande para mejor calidad */
    margin: 0 auto;
    position: relative; /* Contenedor principal como ancla para posicionamiento absoluto */
}

.tv-background-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px; /* Bordes suaves para la imagen base */
}

/* Posicionamiento preciso de la pantalla sobre la imagen */
.tv-screen {
    position: absolute;
    top: 31.5%;
    left: 48.5%;
    width: 43.5%;
    height: 44%;
    background: rgba(10, 20, 30, 0.6); /* Fondo de pantalla oscuro y semitransparente */
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5); /* Sombra interior para efecto de profundidad */
}

.news-bulletin {
    width: 100%;
    display: none;
    animation: fadeNews 0.6s ease-in-out;
    text-align: center;
}

.news-bulletin.active {
    display: block;
}

@keyframes fadeNews {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.news-ticker {
    background: var(--accent-dark);
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.news-headline {
    color: var(--accent-light);
    margin: 15px 0;
    font-size: 1.6rem;
    line-height: 1.2;
}

.news-excerpt {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 1rem;
}

.news-link {
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.news-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(5px);
}

                /* Nuevo estilo y posicionamiento para los botones */
                .tv-controls {
                    position: absolute;
                    bottom: 8%; /* Posicionado en el borde inferior del marco del TV */
                    left: 50%;
                    transform: translateX(-50%);
                    display: flex;
                    gap: 100px; /* Espacio entre los botones */
                }
                
                .tv-button {
                    background: rgba(255, 255, 255, 0.15); /* Fondo muy sutil */
                    color: rgba(255, 255, 255, 0.7);
                    border: 1px solid rgba(255, 255, 255, 0.3);
                    width: 40px;
                    height: 40px;
                    border-radius: 50%; /* Botones circulares */
                    cursor: pointer;
                    transition: all 0.3s ease;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 1rem;
                    backdrop-filter: blur(2px); /* Efecto de cristal esmerilado */
                }
                
                .tv-button:hover {
                    background: var(--accent);
                    color: white;
                    border-color: var(--accent-dark);
                    transform: scale(1.1);
                }
                
                /* --- AJUSTES PARA MÓVILES --- */
                            @media (max-width: 768px) {
                .tv-screen {
                    top: 9%; /* Ajuste menor en la posición vertical */
                    left: 11%; /* Ajuste menor en la posición horizontal */
                    width: 78%; /* Ligero aumento para ocupar más espacio */
                    height: 70%; /* Ligero aumento en la altura */
                    padding: 10px;
                    display: flex;
                    flex-direction: column; /* Apilar elementos en pantallas pequeñas */
                    justify-content: center;
                    align-items: center;
                }
                .news-headline {
                    font-size: 1.1rem;
                    margin: 10px 0 5px 0; /* Reducir un poco el margen inferior */
                    text-align: center;
                }
                .news-excerpt {
                    font-size: 0.8rem;
                    line-height: 1.4;
                    margin-bottom: 10px;
                    text-align: center;
                }
                .news-ticker {
                    font-size: 0.7rem;
                    padding: 3px 8px;
                    margin-bottom: 5px;
                }
                .news-link {
                    font-size: 0.8rem;
                }
                .tv-controls {
                    gap: 60px; /* Reducir el espacio entre botones */
                    bottom: 5%; /* Ajustar la posición vertical de los botones */
                }
                .tv-button {
                    width: 30px; /* Reducir el tamaño de los botones */
                    height: 30px;
                    font-size: 0.8rem;
                }
            }
            
            @media (max-width: 480px) {
                .tv-screen {
                    top: 8%;
                    left: 8%;
                    width: 84%;
                    height: 75%;
                    padding: 8px;
                }
                .news-headline {
                    font-size: 0.9rem;
                    margin: 8px 0 3px 0;
                }
                .news-excerpt {
                    font-size: 0.7rem;
                    line-height: 1.3;
                    margin-bottom: 8px;
                }
                .news-ticker {
                    font-size: 0.55rem;
                    padding: 2px 6px;
                    margin-bottom: 3px;
                }
                .news-link {
                    font-size: 0.7rem;
                }
                .tv-controls {
                    gap: 40px; /* Aún menos espacio entre botones */
                    bottom: 4%;
                }
                .tv-button {
                    width: 25px;
                    height: 25px;
                    font-size: 0.7rem;
                }
            }
            /* Estilo para el logo en la tarjeta de acceso */
            .access-card-logo {
                height: 60px;
                margin-bottom: 20px;
            }
            
            /* ===== ESTILOS PARA LA VENTANA MODAL (VERSIÓN RESPONSIVE) ===== */
            
            /* Capa oscura de fondo */
            .modal-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.75); /* Un poco más oscuro */
                z-index: 2000;
                display: none;
                align-items: center;
                justify-content: center;
                padding: 15px; /* Añade padding para que la ventana no toque los bordes en móvil */
                animation: fadeIn 0.3s ease;
            }
            
            @keyframes fadeIn {
                from { opacity: 0; }
                to { opacity: 1; }
            }
            
            /* Contenido de la ventana */
            .modal-content {
                background: white;
                padding: 30px; /* Padding base ajustado */
                border-radius: 12px;
                box-shadow: 0 5px 20px rgba(0,0,0,0.2);
                width: 100%;
                max-width: 450px;
                text-align: center;
                position: relative;
                animation: slideIn 0.4s ease-out;
            }
            
            @keyframes slideIn {
                from { transform: translateY(-50px); opacity: 0; }
                to { transform: translateY(0); opacity: 1; }
            }
            
            .close-modal {
                position: absolute;
                top: 10px;
                right: 15px;
                font-size: 2.5rem;
                color: var(--gray);
                cursor: pointer;
                transition: color 0.3s ease;
            }
            .close-modal:hover {
                color: var(--primary);
            }
            
            .modal-content h2 {
                color: var(--primary);
                margin-bottom: 10px;
                font-size: 1.8rem; /* Tamaño de fuente base */
            }
            
            .modal-content p {
                color: var(--gray);
                margin-bottom: 25px;
            }
            
            .form-group {
                text-align: left;
                margin-bottom: 20px;
            }
            .form-group label {
                display: block;
                margin-bottom: 8px;
                font-weight: 600;
                color: var(--secondary);
            }
            .form-group input {
                width: 100%;
                padding: 12px;
                border: 1px solid #ccc;
                border-radius: 6px;
                font-size: 1rem;
            }
            
            .modal-content .btn {
                width: 100%;
                padding: 15px;
                margin-top: 10px;
            }
            
            .error-message {
                color: #e74c3c;
                font-weight: bold;
                margin-top: 15px;
                display: none;
            }
            
            /* --- AJUSTES PARA MÓVILES --- */
            @media (max-width: 480px) {
                .modal-content {
                    padding: 25px 20px; /* Reduce el padding para pantallas pequeñas */
                }
                .modal-content h2 {
                    font-size: 1.5rem; /* Reduce el tamaño del título */
                }
                .form-group input, .modal-content .btn {
                    padding: 14px; /* Aumenta ligeramente el padding de los inputs para mejor tacto */
                }
            }