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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: white;
    color: black;
    line-height: 1.8;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shine {
    0% { box-shadow: 0 0 5px rgba(128,0,0,0.2); }
    50% { box-shadow: 0 0 20px rgba(128,0,0,0.6); }
    100% { box-shadow: 0 0 5px rgba(128,0,0,0.2); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== ENCABEZADOS ===== */
.encabezado-principal {
    background: linear-gradient(135deg, maroon 0%, firebrick 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.titulo-centrado {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    animation: slideInLeft 1s ease;
}

.nombre-escuela {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0.95;
}

.logo-escuela {
    width: 110px;
    height: 110px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: bounce 2s infinite;
}

/* ===== NAVEGACIÓN ===== */
.barra-nav {
    background-color: green;
    padding: 14px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.barra-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin: 0 25px;
    padding: 8px 18px;
    border-radius: 4px;
    transition: all 0.3s;
}

.barra-nav a:hover {
    background-color: darkgreen;
    transform: scale(1.1);
}

/* ===== CONTENEDOR ===== */
.contenedor {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.bloque {
    background: white;
    border-radius: 8px;
    padding: 45px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 6px solid maroon;
    animation: fadeInUp 0.8s ease;
    scroll-margin-top: 80px;
}

.bloque h2 {
    font-size: 2.1rem;
    color: maroon;
    text-align: center;
    margin-bottom: 15px;
}

.linea-divisora {
    width: 90px;
    height: 4px;
    background-color: green;
    margin: 0 auto 30px;
    animation: shine 2s infinite;
}

/* ===== TEXTOS ===== */
.texto-centrado {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: dimgray;
}

p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* ===== GALERÍA FOTOS ===== */
.galeria-fotos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0 10px 0;
}

.foto-alumno {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid lightgray;
    transition: all 0.4s ease;
}

.foto-alumno:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.4);
}

.nota-foto {
    text-align: center;
    font-size: 0.85rem;
    color: gray;
    font-style: italic;
}

/* ===== VIDEO ===== */
.video-container {
    margin-top: 35px;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.video-container iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: 8px;
    border: 4px solid maroon;
    transition: transform 0.3s;
}

.video-container iframe:hover {
    transform: scale(1.02);
}

/* ===== LISTAS ===== */
.lista-numerada, .lista-protocolo {
    padding-left: 25px;
    margin-top: 20px;
}

.lista-numerada li, .lista-protocolo li {
    margin-bottom: 12px;
    padding-left: 10px;
    transition: transform 0.2s;
}

.lista-numerada li:hover, .lista-protocolo li:hover {
    transform: translateX(5px);
}

.lista-numerada li::marker, .lista-protocolo li::marker {
    color: maroon;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== BOTONES ===== */
.contenedor-botones {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.boton {
    display: inline-block;
    padding: 16px 50px;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    border-radius: 6px;
    transition: all 0.4s ease;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.boton:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.boton-vino {
    background-color: maroon;
}

.boton-vino:hover {
    background-color: firebrick;
}

.boton-verde {
    background-color: green;
}

.boton-verde:hover {
    background-color: darkgreen;
}

/* ===== TARJETAS DIRECTORIO ===== */
.tarjeta-directorio {
    background: whitesmoke;
    border-left: 5px solid maroon;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease;
}

.tarjeta-directorio:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 5px 15px rgba(128,0,0,0.2);
}

.tarjeta-directorio.verde {
    border-left-color: green;
    background: honeydew;
}

.tarjeta-directorio h3 {
    color: maroon;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.tarjeta-directorio.verde h3 {
    color: green;
}

/* ===== ALERTA ANIMADA ===== */
.alerta-animada {
    background: mistyrose;
    border: 2px solid firebrick;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
    animation: pulse 2s infinite;
}

.alerta-animada p {
    margin: 0;
    color: maroon;
    font-weight: 600;
}

/* ===== PIE DE PÁGINA ===== */
.pie-pagina {
    background-color: black;
    color: lightgray;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .titulo-centrado {
        font-size: 2.1rem;
    }
    
    .galeria-fotos {
        grid-template-columns: 1fr;
    }
    
    .contenedor-botones {
        flex-direction: column;
        align-items: center;
    }
    
    .boton {
        width: 80%;
    }
    
    .barra-nav a {
        display: block;
        margin: 8px 0;
    }
    
    .bloque {
        padding: 30px 20px;
    }

    .video-container iframe {
        height: 250px;
    }
}