            /* --- VARIABLES CSS & RESET --- */
            :root {
                --color-primary: #0f1f3d; 
                --color-accent: #c5a47e; 
                --color-text-dark: #2c2c2c;
                --color-text-light: #666666;
                --color-bg-light: #f9f9f9;
                --color-white: #ffffff;
                --sidebar-width: 260px;
                --header-height: 60vh; 
            }

            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }

            html {
                scroll-behavior: smooth; 
            }

            body {
                font-family: 'Montserrat', sans-serif;
                color: var(--color-text-dark);
                background-color: var(--color-bg-light);
                display: flex;
            }

            h1, h2, h3 {
                font-family: 'Playfair Display', serif;
                color: var(--color-text-dark);
            }

            a {
                text-decoration: none;
                color: inherit;
                transition: all 0.3s ease;
            }

            /* --- MENÚ LATERAL FLOTANTE --- */
            .sidebar {
                width: var(--sidebar-width);
                height: 100vh;
                background-color: var(--color-white);
                position: fixed; /* Esto la hace flotante */
                top: 0;
                left: 0;
                box-shadow: 4px 0 20px rgba(0,0,0,0.1); /* Sombra para que se vea flotando sobre el fondo */
                z-index: 1000;
                padding: 20px 0;
                overflow-y: auto;
                display: flex;
                flex-direction: column;
            }

            .brand-logo {
                text-align: center;
                padding: 20px;
                font-family: 'Playfair Display', serif;
                font-size: 1.2rem;
                font-weight: bold;
                color: var(--color-primary);
                border-bottom: 1px solid #eee;
                margin-bottom: 20px;
            }

            .menu-item {
                display: flex;
                align-items: center;
                padding: 15px 25px;
                color: var(--color-text-light);
                font-weight: 500;
                cursor: pointer;
            }

            .menu-item i {
                margin-right: 15px;
                width: 20px;
                text-align: center;
                font-size: 1.1rem;
            }

            .menu-item:hover, .menu-item.active {
                color: var(--color-primary);
                background-color: rgba(0, 51, 102, 0.05);
                border-left: 4px solid var(--color-primary);
            }

            .menu-header {
                font-size: 0.85rem;
                text-transform: uppercase;
                letter-spacing: 1px;
                color: #999;
                padding: 20px 25px 10px;
            }
            
            .login-btn-container {
            padding: 20px;
            margin-top: auto; /* Empuja el botón hacia abajo */
        }

        .btn-login-sidebar {
            width: 100%;
            padding: 12px;
            background-color: var(--color-primary);
            color: var(--color-white);
            border: none;
            border-radius: 4px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 4px 10px rgba(0,51,102,0.2);
        }

        .btn-login-sidebar:hover {
            background-color: #002244;
            transform: translateY(-2px);
        }

        /* --- CONTENEDOR PRINCIPAL --- */
        .main-content {
            margin-left: var(--sidebar-width);
            width: calc(100% - var(--sidebar-width));
            min-height: 100vh;
        }

        /* --- HERO SECTION --- */
/* --- HERO SECTION --- */
.hero-section {
    height: var(--header-height);
    /* IMPORTANTE: 
       1. Usamos '../' para salir de la carpeta 'css'
       2. Entramos a 'imagenes' (asegúrate que sea minúscula como en tu carpeta)
    */
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)), 
                      url('../imagenes/foto_predro_rofriguez_a.jpeg'); 
    
    background-size: cover;
    background-position: center 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
}
        .hero-content h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            color: var(--color-white);
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .hero-content p {
            font-size: 1.2rem;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        /* --- STICKY NAVIGATION --- */
        .sticky-nav {
            position: sticky;
            top: 0;
            background-color: var(--color-white);
            padding: 20px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            z-index: 90;
            display: flex;
            justify-content: center;
            gap: 40px;
            border-bottom: 1px solid #eee;
        }

        .sticky-nav a {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--color-text-light);
            font-weight: 600;
            padding-bottom: 5px;
            border-bottom: 2px solid transparent;
        }

        .sticky-nav a:hover {
            color: var(--color-accent);
            border-bottom: 2px solid var(--color-accent);
        }

        /* --- SECCIONES DE CONTENIDO --- */
        .section {
            padding: 80px 60px;
            background-color: var(--color-white);
        }

        .section:nth-child(even) {
            background-color: var(--color-bg-light);
        }

        .section-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .section-header h2 {
            font-size: 2.5rem;
            margin-bottom: 15px;
        }

        .section-header p {
            color: var(--color-text-light);
            max-width: 600px;
            margin: 0 auto;
        }

        /* --- SECCIÓN GALERÍA (Más bloques) --- */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            grid-auto-rows: 250px; /* Altura base para los bloques */
            gap: 15px;
        }

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 6px;
            background-color: #1a202c; /* Color de fondo mientras carga */
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .gallery-item:not(.gallery-text) {
            cursor: pointer;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
            display: block;
        }

        .item-5 img {
            object-position: center 30%;
        }

        .gallery-item:hover img {
            transform: scale(1.08);
        }

        /* Capa interactiva sobre las imágenes */
        .gallery-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, rgba(15, 31, 61, 0.2) 0%, rgba(15, 31, 61, 0.4) 40%, rgba(15, 31, 61, 0.92) 100%);
            opacity: 0;
            transition: opacity 0.35s ease, transform 0.35s ease;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 20px;
            box-sizing: border-box;
            color: #ffffff;
            z-index: 2;
        }

        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }

        .gallery-zoom-icon {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.22);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-size: 0.95rem;
            border: 1px solid rgba(255, 255, 255, 0.35);
            transition: transform 0.3s ease, background-color 0.3s ease;
        }

        .gallery-item:hover .gallery-zoom-icon {
            transform: scale(1.1);
            background: var(--color-accent);
            color: #ffffff;
        }

        .gallery-overlay .gallery-tag {
            align-self: flex-start;
            background: var(--color-accent);
            color: #ffffff;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            padding: 3px 8px;
            border-radius: 3px;
            margin-bottom: 8px;
        }

        .gallery-overlay h4 {
            margin: 0;
            font-size: 0.95rem;
            line-height: 1.35;
            font-family: 'Playfair Display', serif;
            color: #ffffff;
            font-weight: 600;
            text-shadow: 0 1px 3px rgba(0,0,0,0.5);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .item-1 .gallery-overlay h4 {
            font-size: 1.25rem;
            -webkit-line-clamp: 3;
        }

        .gallery-overlay .gallery-date {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.85);
            margin-top: 6px;
            font-family: 'Montserrat', sans-serif;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Mosaico asimétrico con 6 bloques */
        .item-1 { grid-column: span 2; grid-row: span 2; } /* Foto principal grande */
        .item-2 { grid-column: span 2; grid-row: span 1; } /* Panorámica arriba derecha */
        .item-3 { grid-column: span 1; grid-row: span 1; } /* Cuadrada pequeña */
        .item-4 { 
            grid-column: span 1; 
            grid-row: span 1; 
            background: linear-gradient(145deg, var(--color-primary) 0%, #15274d 100%); 
            color: white; 
            padding: 24px; 
            display: flex; 
            flex-direction: column; 
            justify-content: center;
            border-left: 4px solid var(--color-accent);
        } /* Bloque de texto */
        .item-5 { grid-column: span 3; grid-row: span 1; } /* Panorámica ancha abajo */
        .item-6 { grid-column: span 1; grid-row: span 1; } /* Cuadrada pequeña esquina */

        .gallery-text h3 { 
            color: var(--color-white); 
            margin-bottom: 8px; 
            font-size: 1.2rem; 
            font-family: 'Playfair Display', serif;
        }
        .gallery-text p { 
            font-size: 0.85rem; 
            color: rgba(255,255,255,0.82); 
            line-height: 1.5;
            margin: 0 0 12px 0;
        }
        .gallery-link-archive {
            color: var(--color-accent); 
            font-size: 0.75rem; 
            font-weight: 700; 
            text-transform: uppercase; 
            letter-spacing: 1.5px; 
            text-decoration: none; 
            display: inline-flex; 
            align-items: center; 
            gap: 6px;
            transition: color 0.2s, transform 0.2s;
        }
        .gallery-link-archive:hover {
            color: #ffffff;
            transform: translateX(4px);
        }

        /* --- LIGHTBOX MODAL EN ALTA RESOLUCIÓN --- */
        .modal-lightbox-card {
            background: #111827;
            max-width: 1000px;
            width: 92%;
            max-height: 92vh;
            border-radius: 8px;
            position: relative;
            box-shadow: 0 30px 60px rgba(0,0,0,0.5);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
            animation: lightboxZoomIn 0.25s ease-out;
        }

        @keyframes lightboxZoomIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }

        .lightbox-close-btn {
            position: absolute;
            top: 15px;
            right: 18px;
            background: rgba(0, 0, 0, 0.5);
            color: #ffffff;
            border: none;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            font-size: 1.6rem;
            line-height: 1;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.2s, transform 0.2s;
        }
        .lightbox-close-btn:hover {
            background: var(--color-accent);
            transform: scale(1.08);
        }

        .lightbox-img-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            background: #090d16;
            max-height: 72vh;
            overflow: hidden;
        }

        .lightbox-img-wrapper img {
            max-width: 100%;
            max-height: 72vh;
            object-fit: contain;
            display: block;
        }

        .lightbox-footer {
            background: #0f172a;
            padding: 18px 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        .lightbox-info {
            flex: 1;
        }

        .lightbox-date {
            font-size: 0.75rem;
            letter-spacing: 2px;
            color: var(--color-accent);
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 4px;
            display: inline-block;
            font-family: 'Montserrat', sans-serif;
        }

        .lightbox-footer h3 {
            margin: 0;
            font-family: 'Playfair Display', serif;
            font-size: 1.15rem;
            color: #ffffff;
            font-weight: 600;
            line-height: 1.3;
        }

        .btn-descarga-hd {
            background: var(--color-accent);
            color: #ffffff;
            padding: 10px 20px;
            border-radius: 4px;
            text-decoration: none;
            font-weight: 700;
            font-size: 0.8rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: background-color 0.3s, transform 0.2s;
            box-shadow: 0 4px 12px rgba(204, 153, 51, 0.3);
            white-space: nowrap;
        }
        .btn-descarga-hd:hover {
            background: #b58326;
            color: #ffffff;
            transform: translateY(-2px);
        }

        /* --- SECCIÓN NOTAS Y RECURSOS --- */
        .resources-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .resource-card {
            background: var(--color-white);
            padding: 30px;
            text-align: center;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }

        .resource-card:hover {
            transform: translateY(-5px);
        }

        .resource-card i {
            font-size: 3rem;
            color: var(--color-accent);
            margin-bottom: 20px;
        }

        /* --- MODAL DE LOGIN --- */
        .modal-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999; /* Z-index altísimo para que esté sobre TODO */
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .modal-container.show {
            opacity: 1;
            pointer-events: auto;
        }

        .modal-box {
            background-color: var(--color-white);
            padding: 40px;
            border-radius: 8px;
            width: 400px;
            max-width: 90%;
            position: relative;
            text-align: center;
            transform: translateY(-20px);
            transition: transform 0.3s ease;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .modal-container.show .modal-box {
            transform: translateY(0);
        }

        .close-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 1.5rem;
            cursor: pointer;
            color: #999;
            transition: color 0.3s;
        }

        .close-btn:hover {
            color: var(--color-text-dark);
        }

        .login-form input {
            width: 100%;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-family: inherit;
        }

        .login-form button {
            width: 100%;
            padding: 15px;
            background-color: var(--color-primary);
            color: var(--color-white);
            border: none;
            border-radius: 4px;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .login-form button:hover {
            background-color: #002244;
        }

        /* Responsive básico */
        @media (max-width: 1024px) {
            .gallery-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .item-1, .item-2, .item-5 { grid-column: span 2; }
            .item-3, .item-4, .item-6 { grid-column: span 1; }
        }

        @media (max-width: 640px) {
            .gallery-grid {
                grid-template-columns: 1fr;
                grid-auto-rows: 220px;
            }
            .item-1, .item-2, .item-3, .item-4, .item-5, .item-6 { 
                grid-column: span 1; 
                grid-row: span 1; 
            }
            .modal-lightbox-card {
                width: 96%;
                max-height: 95vh;
            }
            .lightbox-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
                padding: 15px;
            }
            .btn-descarga-hd {
                width: 100%;
                justify-content: center;
                box-sizing: border-box;
            }
        }

  /* Responsive básico */

        .login-form select{
        width:100%;
        padding:15px;
        margin-bottom:15px;
        border:1px solid #ddd;
        border-radius:4px; 
        font-family:inherit;
        background:white;
        }

