:root {
    --primary: #00008B;       /* Azul marino tradicional */
    --secondary: #5F9EA0;    /* Azul cadete (más claro) */
    --accent: #5F9EA0;       /* Azul cadete (más claro) */
    --light: #F8F9FA;        /* Fondo claro */
    --dark: #333;            /* Texto oscuro */
    --text-light: #FFFFFF;   /* Texto claro */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
    /* ESTILOS PRINCIPALES */
        body {
            font-family: 'Raleway', sans-serif;
            margin: 0;
            padding: 0;
            color: #333;
        }
        
       
        
       
/*body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}*/

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

 /* NAVEGACIÓN */
nav {
    background: #00008B;
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: white;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s;
}
/* --- Navegación --- 
nav {
    background: var(--primary);
    padding: 1rem 0;
    text-align: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-light);
    margin: 0.5rem 1rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
    display: inline-block;
}*/

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--text-light);
}

nav a.active {
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 700;
}

/* Seccion de actualizaciones en index.html */
/* Seccion grid */
.update-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    display: inline-block;
    padding: 0.3rem;
    border-radius: 50%;
}

.update-link:hover {
    color: #E1306C; /* Color de Instagram */
    transform: scale(1.2);
    background: rgba(225, 48, 108, 0.1);
}

.updates-table th:last-child {
    text-align: center;
    width: 60px; /* Ancho fijo para la columna de iconos */
}

.updates-table th:last-child i {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Asegúrate de que las celdas de la última columna estén centradas */
.updates-table td:last-child {
    text-align: center;
    vertical-align: middle;
}
/* Fin de seccion grid */

.updates-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    font-size: 0.95em; /* Fuente más pequeña y compacta */
}

.updates-table th, .updates-table td {
    border-bottom: 1px solid #ddd;
    padding: 0.4em 0.7em;
    text-align: left;
    font-size: 0.95em;
}

.updates-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.updates-table tr:last-child td {
    border-bottom: none;
}

.updates-table th:first-child,
.updates-table td:first-child {
    width: 110px;
    min-width: 90px;
    max-width: 140px;
    white-space: nowrap;
    text-align: center;
    font-size: 0.93em;
    color: #333;
}

.updates-table th:last-child,
.updates-table td:last-child {
    width: auto;
    word-break: break-word;
    font-size: 0.95em;
}

@media (max-width: 600px) {
    .updates-table {
        font-size: 0.85em;
    }
    .updates-table th, .updates-table td {
        font-size: 0.85em;
        padding: 0.3em 0.4em;
    }
    .updates-table th:first-child,
    .updates-table td:first-child {
        width: 60px;
        min-width: 50px;
        font-size: 0.83em;
    }
}
/* ---- Fin de seccion de actualizaciones del index ---- */

/* --- Hero Section --- 
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://picsum.photos/1200/800');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 8rem 1rem;
    text-align: center;
    position: relative;
}*/
nav a:hover {
            background: rgba(255, 255, 255, 0.2);
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8f9fa;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    color: #00008B;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.6); /* Fondo negro semitransparente */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/*.hero h1 {
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h1::after {
    background: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}*/

/* --- Contenedor principal --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* --- Grid y Cards --- */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin: 3rem 0;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border-top: 4px solid var(--primary);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    margin-top: 1rem;
    transition: var(--transition);
    font-weight: 600;
    border: 2px solid var(--primary);
    text-align: center;
}

.btn:hover {
    background: var(--secondary);
    color: var(--text-light);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-light);
}

/* --- Footer --- */
footer {
    background: var(--primary);
    color: var(--text-light);
    padding: 3rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .hero {
        padding: 6rem 1rem;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    nav a {
        margin: 0.3rem 0.5rem;
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 4rem 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}

/* MENÚ LATERAL INTEGRADO */
.history-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.history-main-content {
    flex: 1;
}

.history-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.sidebar {
    width: 250px;
    position: sticky;
    top: 100px;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav a {
    color: var(--secondary);
    padding: 0.7rem 1rem;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 5px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(0, 0, 139, 0.05);
    border-left: 3px solid var(--primary);
}

.timeline {
    flex: 1;
    min-width: 0;
}

/* Timeline Items */
.timeline-item {
    padding: 1.8rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    border-left: 5px solid var(--primary);
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.timeline-year {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.timeline-year::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background: var(--accent);
    border: 3px solid var(--primary);
    border-radius: 50%;
    margin-right: 0.8rem;
}

.timeline-doc {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.timeline-doc img {
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.timeline-doc img:hover {
    transform: scale(1.03);
}

.doc-details {
    flex: 1;
    min-width: 250px;
}

.doc-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--primary);
    font-weight: 600;
}

.doc-button:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .history-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .timeline-doc {
        flex-direction: column;
    }
    
    .timeline-doc img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .doc-details {
        min-width: 100%;
    }
}

/* --- Miembros Page Styles --- */
.filter-container {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-container select {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--primary);
    font-size: 1rem;
    background: white;
    cursor: pointer;
    margin-top: 1rem;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.member {
    background: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent);
    margin-bottom: 1rem;
}

.member h3 {
    margin: 0.5rem 0;
    color: var(--primary);
}

.member .alias {
    font-style: italic;
    color: #666;
}

.member .instruments {
    margin-top: 0.8rem;
    font-size: 1.4rem;
}



@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}

/* INDEX */
 /* CARRUSEL COMO ELEMENTO PRINCIPAL */
        .main-carrusel {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto 3rem;
            position: relative;
            overflow: hidden;
            height: 500px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }
        
        .carrusel-inner {
            display: flex;
            transition: transform 0.5s ease-in-out;
            height: 100%;
        }
        
        .carrusel-inner img {
            min-width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .carrusel-nav {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            transform: translateY(-50%);
            z-index: 10;
            padding: 0 1rem;
        }
        
        .carrusel-nav button {
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .carrusel-nav button:hover {
            background: rgba(0, 0, 139, 0.8);
        }
        
        .carrusel-dots {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
        }
        
        .carrusel-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .carrusel-dot.active {
            background: #00008B;
        }

        /* --- Gallery Styles --- */
.gallery-section {
    padding: 2rem 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-filter-btn {
    padding: 0.5rem 1.5rem;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--primary);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-info {
    transform: translateY(0);
}

.gallery-item-year {
    display: inline-block;
    background: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.gallery-item-event {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.gallery-modal.active {
    opacity: 1;
    pointer-events: all;
}

.gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.gallery-modal-img {
    max-height: 80vh;
    max-width: 100%;
    border-radius: 5px;
}

.gallery-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
}

.gallery-modal-nav button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.gallery-modal-nav button:hover {
    background: var(--primary);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--dark);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Estilos para la card de captación */
.recruitment-card {
    border-top: 4px solid #FFD700; /* Dorado para destacar */
}

.recruitment-details {
    margin: 1.5rem 0;
}

.recruitment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.recruitment-item i {
    color: var(--primary);
    font-size: 1.2rem;
    min-width: 25px;
}

.recruitment-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Versión responsive */
@media (max-width: 768px) {
    .recruitment-buttons {
        flex-direction: column;
    }
}

/* Estilos para enlaces amigo */
.friend-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.friend-link:hover {
    background-color: rgba(0, 0, 139, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.friend-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--primary);
    padding: 3px;
}

.friend-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .friend-link {
        flex-direction: row; /* Mantenemos en fila pero con ajustes */
        align-items: center;
        text-align: left;
        padding: 0.8rem;
    }
    
    .friend-logo {
        width: 40px;
        height: 40px;
        flex-shrink: 0; /* Evita que se reduzcan demasiado */
    }
}

@media (max-width: 480px) {
    .friend-link {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .friend-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }
    
    .friend-link span {
        font-size: 0.9rem;
    }
}

 /* FOOTER */
        footer {
            background: #00008B;
            color: white;
            padding: 2rem 1rem;
            text-align: center;
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin: 1.5rem 0;
        }
        
        .social-links a {
            color: white;
            font-size: 1.5rem;
            transition: all 0.3s;
        }
        
        .social-links a:hover {
            color: #FFD700;
            transform: translateY(-3px);
        }
        
        .copyright {
            margin-top: 1.5rem;
            font-size: 0.9rem;
            opacity: 0.8;
        }
        
        /* RESPONSIVE */
        @media (max-width: 768px) {
            .main-carrusel {
                height: 400px;
            }
            
            .hero h1 {
                font-size: 2rem;
            }
        }
        
        @media (max-width: 480px) {
            .main-carrusel {
                height: 300px;
            }
            
            .hero h1 {
                font-size: 1.8rem;
            }
            
            nav a {
                margin: 0.3rem;
                padding: 0.5rem;
                font-size: 0.9rem;
            }
        }

        .language-selector {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 1000;
        }
        .language-btn {
            background: #00008B;
            color: white;
            border: none;
            padding: 5px 10px;
            margin: 0 2px;
            cursor: pointer;
            border-radius: 3px;
        }
        .language-btn.active {
            background: #1E90FF;
        }