        /* ===== VARIABLES GLOBALES ===== */
        :root {
            --primary: #32338D;
            --primary-dark: #1f2070;
            --secondary: #63637F;
            --accent: #DC3545;
            --accent-dark: #b02a37;
            --light: #EEEEEE;
            --dark: #212529;
            --white: #FFFFFF;
            --gray-600: #6c757d;
            --font-serif: 'Cormorant Garamond', serif;
            --font-sans: 'Montserrat', sans-serif;
            --header-height: 80px;
            --transition: all 0.3s ease;
        }

        /* ===== ESTILOS BASE ===== */
        body {
            font-family: var(--font-sans);
            color: #444;
            background-color: #f4f6f9;
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" opacity="0.03"><rect width="100" height="100" fill="%2332338D"/></svg>'); /* Textura sutil */
            line-height: 1.6;
            padding-top: var(--header-height); /* Espacio para el navbar fijo */
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-serif);
            font-weight: 600;
            color: var(--dark);
        }
        .textal{
            text-align:justify;
        }

        /* ===== INTRO ANIMATION ===== */
        .intro-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--white);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            animation: fadeOutIntro 1s ease-in-out 3s forwards;
        }
        .intro-content { text-align: center; width: 90%; max-width: 600px; }
        .intro-icon i { font-size: clamp(2.5rem, 8vw, 4rem); color: var(--primary); opacity: 0; animation: slideDown 0.8s ease forwards; }
        .intro-brand img { max-width: 100%; height: auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); animation: slideInUp 1s ease forwards 0.3s; opacity: 0; }
        .intro-divider { width: 0; height: 2px; background-color: var(--accent); margin: 20px auto; animation: expandLine 0.8s ease forwards 1s; }
        @keyframes fadeOutIntro { to { opacity: 0; visibility: hidden; } }
        @keyframes slideInUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
        @keyframes slideDown { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
        @keyframes expandLine { to { width: 150px; } }

        /* ===== NAVBAR MEJORADO (OFF-CANVAS EN MÓVIL) ===== */
        .navbar {
            background: var(--white) !important;
            box-shadow: 0 2px 15px rgba(0,0,0,0.1);
            border-bottom: 3px solid var(--primary);
            padding: 8px 0;
            height: var(--header-height);
        }
        .navbar-brand img { height: 50px; width: auto; transition: height 0.3s; }
        .navbar-toggler { border: 2px solid var(--primary); padding: 6px 10px; border-radius: 6px; }
        .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(50, 51, 141, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

        /* Estilos para el menú colapsado en móvil */
        @media (max-width: 991.98px) {
            .navbar-collapse {
                position: fixed;
                top: var(--header-height);
                left: 0;
                right: 0;
                bottom: 0;
                background-color: rgba(50, 51, 141, 0.98); /* Fondo azul semitransparente */
                backdrop-filter: blur(8px);
                padding: 2rem 1.5rem;
                align-items: flex-start;
                overflow-y: auto;
                z-index: 1050;
                transition: transform 0.3s ease-in-out;
                transform: translateX(100%); /* Oculto por defecto */
            }
            .navbar-collapse.show {
                transform: translateX(0); /* Se muestra */
            }
            .navbar-nav {
                width: 100%;
                gap: 1rem;
            }
            .navbar-nav .nav-item {
                width: 100%;
            }
            .navbar-nav .nav-link {
                color: var(--white) !important;
                font-size: 1.2rem;
                padding: 12px 20px !important;
                border-radius: 8px;
                background-color: rgba(255,255,255,0.1);
                text-align: left;
                border: 1px solid rgba(255,255,255,0.2);
            }
            .navbar-nav .nav-link:hover,
            .navbar-nav .nav-link:focus {
                background-color: var(--accent) !important;
                border-color: var(--accent);
            }
            .login-btn-nav {
                background-color: var(--white) !important;
                color: var(--primary) !important;
                font-weight: 600;
                padding: 12px 20px !important;
                border-radius: 8px !important;
                margin-top: 0.5rem !important;
                border: 2px solid var(--white);
            }
            .login-btn-nav:hover {
                background-color: var(--accent) !important;
                color: var(--white) !important;
                border-color: var(--accent);
            }
        }

        /* Estilos para desktop */
        @media (min-width: 992px) {
            .navbar-nav .nav-link {
                color: var(--primary) !important;
                background-color: transparent !important;
                margin: 0 3px;
                padding: 8px 12px !important;
                border-radius: 6px;
                font-weight: 500;
                transition: var(--transition);
            }
            .navbar-nav .nav-link:hover {
                background-color: var(--primary) !important;
                color: var(--white) !important;
            }
            .login-btn-nav {
                background-color: var(--accent) !important;
                color: var(--white) !important;
                padding: 8px 20px !important;
                border-radius: 50px !important;
                font-weight: 600;
                margin-left: 15px !important;
                border: none;
            }
            .login-btn-nav:hover {
                background-color: var(--accent-dark) !important;
                transform: translateY(-2px);
                box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
            }
        }

        /* ===== HERO SLIDER RESPONSIVE ===== */
        .hero-slider { margin-top: 0; } /* Ya tenemos padding-top en body */
        .carousel-item {
            height: calc(100vh - var(--header-height));
            max-height: 600px;
            min-height: 400px;
            background-size: cover;
            background-position: center;
            position: relative;
        }
        .carousel-item::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
        }
        .carousel-caption {
            bottom: 50%;
            transform: translateY(50%);
            text-align: left;
            left: 10%;
            right: 10%;
            z-index: 10;
        }
        .carousel-caption h2 {
            font-size: clamp(1.8rem, 6vw, 3.5rem);
            font-weight: 700;
            color: var(--white);
            text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
        }
        .carousel-caption p {
            font-size: clamp(1rem, 2.5vw, 1.2rem);
            color: var(--white);
            text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
        }
        .carousel-indicators button { width: 12px; height: 12px; border-radius: 50%; margin: 0 6px; }

        /* Ajustes para móvil: centrar texto y reducir altura */
        @media (max-width: 767px) {
            .carousel-item { height: 70vh; min-height: 350px; }
            .carousel-caption {
                text-align: center;
                left: 5%;
                right: 5%;
            }
            .carousel-caption h2 { font-size: 2rem; }
        }

        /* ===== MAIN CONTENT Y SIDEBAR RESPONSIVE ===== */
        .main-content {
            background: var(--white);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            padding: clamp(1.5rem, 4vw, 3rem);
            margin: 30px 0;
            min-height: 400px;
        }
        .sidebar-card {
            background: var(--light);
            border-radius: 15px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border: none;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        /* Reordenar en móvil: sidebar abajo del contenido */
        @media (max-width: 991px) {
            .row > .col-lg-8 { order: 1; }
            .row > .col-lg-4 { order: 2; }
        }

        /* Acordeón sidebar */
        .sidebar-accordion .accordion-item {
            border: none;
            margin-bottom: 10px;
            border-radius: 10px !important;
            overflow: hidden;
        }
        .sidebar-accordion .accordion-button {
            padding: 15px 20px;
            font-weight: 600;
            color: var(--white) !important;
        }
        .sidebar-accordion .accordion-button:not(.collapsed) { box-shadow: none; }
        .accordion-button.bg-primary { background-color: var(--primary) !important; }
        .accordion-button.bg-accent { background-color: var(--accent) !important; }
        .list-group-item i { color: var(--primary); }
        .list-group-item:hover {
            background-color: var(--light);
            color: var(--primary);
            padding-left: 25px;
        }

        /* ===== MODALES TÁCTILES ===== */
        .modal-content { border-radius: 20px; border: none; }
        .modal-header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border-radius: 20px 20px 0 0;
            padding: 1.5rem;
        }
        .modal-body { padding: 1.5rem; }
        .form-section {
            background-color: #f8f9fa;
            padding: 1.2rem;
            border-radius: 8px;
            margin-bottom: 1.5rem;
            border-left: 4px solid var(--primary);
        }
        .required:after { content: " *"; color: var(--accent); }
        .upload-area {
            border: 2px dashed var(--primary);
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
            background: #f8f9fa;
            cursor: pointer;
            transition: var(--transition);
        }
        .upload-area:hover { background-color: #e9ecef; border-color: var(--accent); }
        .upload-area i { font-size: 2.5rem; color: var(--primary); }

        /* Ajustes táctiles en móvil para modales */
        @media (max-width: 767px) {
            .modal-dialog { margin: 0.5rem; }
            .form-control, .form-select, .btn {
                font-size: 16px; /* Evita zoom en iOS */
                padding: 12px 15px;
            }
            .upload-area { padding: 1rem; }
            .upload-area i { font-size: 2rem; }
        }

        /* ===== BOTÓN WHATSAPP RESPONSIVE ===== */
        .whatsapp-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 65px;
            height: 65px;
            background-color: #25d366;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
            z-index: 1030;
            transition: transform 0.3s;
        }
        .whatsapp-btn img { width: 40px; height: 40px; }
        .whatsapp-btn:hover { transform: scale(1.1); }
        @media (max-width: 768px) {
            .whatsapp-btn { width: 55px; height: 55px; bottom: 15px; right: 15px; }
            .whatsapp-btn img { width: 35px; height: 35px; }
        }

        /* ===== FOOTER RESPONSIVE ===== */
        .footer {
            background-color: #1a1e24;
            color: rgba(255,255,255,0.7);
            padding: 3rem 0 1.5rem;
            margin-top: 3rem;
        }
        .footer h5 { color: white; font-size: 1.2rem; margin-bottom: 1.2rem; }
        .footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
        .footer a:hover { color: var(--accent); }
        .footer .social-icon {
            display: inline-flex; align-items: center; justify-content: center;
            width: 38px; height: 38px; background: rgba(255,255,255,0.1);
            border-radius: 50%; margin-right: 8px; transition: 0.3s;
        }
        .footer .social-icon:hover { background: var(--accent); color: white; }
        @media (max-width: 767px) {
            .footer { text-align: center; }
            .footer .social-icon { margin: 0 5px; }
            .footer .d-flex { justify-content: center; }
        }

        /* Utilidades */
        .bg-primary-custom { background-color: var(--primary) !important; }
        .bg-accent { background-color: var(--accent) !important; }
        .text-primary-custom { color: var(--primary) !important; }