/* Importar Calibri si la tenés localmente */
@font-face {
    font-family: 'Calibri';
    src: url('fonts/calibri.ttf') format('truetype'); /* Ajustá la ruta según tu carpeta */
    font-weight: normal;
    font-style: normal;
}

:root {
    --azul-oscuro: #002347;
    --azul-claro: #005bb5;
    --naranja: #ff8c00;
    --naranja-claro: #ffa500;
    --blanco: #ffffff;
}

* {
    margin: 1;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Calibri', 'Arial', sans-serif;
}

body {
    background-color: #f4f4f4;
}

.navbar {
    background: linear-gradient(90deg, #003366, #ff8c00);
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    color: var(--blanco);
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.escudito img {
    height: 50px;
    width: auto;
}

/* --- MENU DESKTOP --- */
#check {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 20px 15px;
    display: block;
    transition: 0.3s;
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--naranja);
}

/* Submenús Desktop */
.submenu {
    display: none;
    position: absolute;
    background: var(--azul-claro);
    list-style: none;
    min-width: 200px;
    top: 100%;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.submenu li a {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.dropdown:hover > .submenu {
    display: block;
}

/* --- BOTÓN HAMBURGUESA --- */
.checkbtn {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.checkbtn span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    margin-bottom: 5px;
    transition: 0.4s;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .checkbtn {
        display: block;
    }

    .nav-links {
        position: fixed;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--azul-oscuro);
        top: 80px;
        left: -100%;
        flex-direction: column;
        transition: all 0.5s;
        overflow-y: auto; /* Permite scroll si hay muchos links */
        padding-bottom: 50px;
    }

    #check:checked ~ nav .nav-links {
        left: 0;
    }

    /* Animación hamburguesa a "X" */
    #check:checked ~ .checkbtn .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    #check:checked ~ .checkbtn .line2 { opacity: 0; }
    #check:checked ~ .checkbtn .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a {
        font-size: 18px;
        padding: 20px;
    }

    /* Submenús en Mobile: se muestran siempre o al tocar */
    .submenu {
        position: static;
        display: none; /* Se puede alternar con JS, o dejar block */
        background: #001a33;
        width: 100%;
        box-shadow: none;
    }

    /* Mostrar submenú al hacer click en el padre (en mobile) */
    .dropdown:hover .submenu {
        display: block;
    }
}

/* Carrusel Animado (Efecto empuje contra reloj) */
.carousel-container {
    width: 100%;
    overflow: hidden; /* Esconde lo que sobra */
    height: 500px;
}

.carousel {
    display: flex;
    width: 700%; /* 6 originales + 1 clon */
    /* "linear" hace que el movimiento sea constante sin frenadas */
    animation: scroll-infinito 95s linear infinite; 
}

.slide {
    width: 100%; /* Cada slide ocupa el ancho del navegador */
}

.slide img {
    width: 100vw; /* Asegura que la foto ocupe todo el ancho visual */
    height: 500px;
    object-fit: cover;
}

@keyframes scroll-infinito {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Se desplaza hasta el final del contenedor */
        transform: translateX(calc(-100% / 7 * 6)); 
    }
}


/* ------ introducción ------ */

.intro{
    text-align: center;
}

.escudo{
    margin-top: 20px;
    filter: drop-shadow(8px 8px 5px #0510a1);
}
.intro h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ff8c00;
}

.intro p {
    font-size: 1.1em;
    font-weight: bold;
    font-style: italic;
    text-align: center;
    margin: 45px;
    margin-bottom: 20px;
    color: #003366;
}

/* Autoridades */
.autoridades {
    padding: 50px 5%;
    text-align: center;
}

.grid-autoridades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border-bottom: 4px solid #ff8c00;
    transition: transform 0.3s;
}

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

.img-frame {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    border: 3px solid #003366;
    border-radius: 50%;
    overflow: hidden; /* Esto recorta la foto en forma de círculo */
}

.foto-perfil {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la proporción sin deformar la cara */
}

.autoridades p{
    margin-top: 8px;
    font-weight: bold;
    color: #003366;
}

.autoridades samp{
    margin-top: 15px;
    font-weight: bold;
    color: #000000;
}

/* Contenedor general de las noticias */
.noticias-feed > div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Rejilla automática */
    gap: 20px; /* Espacio entre noticias */
    padding: 20px;
}

.noticias-feed p{
    font-size: 1.1em;
    font-weight: bold;
    color: #001a33;
}

/* Estilo individual para cada cuadrito de noticia */
.noticias-feed > div > div {
    border: 2px solid #0056b3; /* Color de borde (puedes cambiarlo) */
    border-radius: 8px;        /* Bordes redondeados */
    padding: 15px;             /* Espacio interno para que el texto no toque el borde */
    background-color: #f9f9f9; /* Color de fondo suave */
    transition: transform 0.3s; /* Efecto suave al pasar el mouse */
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1); /* Sombra sutil */
}

/* Efecto opcional: resalta la noticia al pasar el mouse */
.noticias-feed > div > div:hover {
    transform: scale(1.05);
    border-color: #ffcc00; /* Cambia el color del borde al pasar el mouse */
}


/* Formulario */
@font-face {
    font-family: 'CalibriCustom';
    src: url('calibri.ttf') format('truetype');
}

.formulario {
    background: linear-gradient(135deg, #003366, #001a33);
    color: white;
    padding: 50px 20%; /* Padding para escritorio */
    font-family: 'CalibriCustom', sans-serif;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaciado mejorado */
}

form label {
    font-size: 0.9rem;
    margin-bottom: -10px;
}

form select, form textarea, form button {
    padding: 12px;
    border-radius: 5px;
    border: none;
    font-family: 'CalibriCustom', sans-serif;
    font-size: 1rem;
}

form button {
    background: #ff8c00;
    width: 150px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background: #e67e00;
}

/* Optimización para Dispositivos Móviles */
@media (max-width: 768px) {
    .formulario {
        padding: 30px 5%; /* Menos espacio a los lados en móvil */
    }
    
    form button {
        width: 100%; /* Botón grande para pulgares en móvil */
    }
}


/* Footer */
footer {
    background: linear-gradient(115deg, #001a33, #438dd6);
    color: white;
    padding: 30px;
    text-align: center;
    border-top: 5px solid #ff8c00;
}
