/* ================= VARIABLES ================= */
:root {
    --azul-pan: #0056A6;
    --azul-pan-oscuro: #003F7D;
}

/* ================= RESET ================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* ================= BARRA SUPERIOR ================= */
.top-bar {
    background: #f4f4f4;
    padding: 8px 20px;
}

.top-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contacto {
    font-size: 14px;
}

.redes {
    display: flex;
    align-items: center;
    gap: 10px;
}

.redes img {
    width: 24px;
    height: 24px;
}

/* ================= HEADER PRINCIPAL ================= */
.header-main {
    display: flex;
    align-items: stretch;
    width: 100%;
}

/* ================= LOGO ================= */
.header-logo {
    background: white;
    padding: 0 110px;          /* sin padding vertical */
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 70px;             /* controla el tamaño */
    max-height: 80px;
}

/* ================= MENÚ ================= */
.nav-principal {
    background-color: var(--azul-pan);
    flex: 1;
    display: flex;
    align-items: center;      /* 🔑 centra vertical */
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    color: #fff;
    padding: 16px 22px;
    display: block;
    text-decoration: none;
    font-weight: bold;
}

.menu > li > a:hover {
    background-color: var(--azul-pan-oscuro);
}

/* ================= SUBMENÚ ================= */
.submenu ul {
    display: none;
    position: absolute;
    background: #ffffff;
    min-width: 220px;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
}

.submenu ul li a {
    color: #333;
    padding: 12px 15px;
    display: block;
    text-decoration: none;
}

.submenu ul li a:hover {
    background: #f0f0f0;
}

.submenu:hover ul {
    display: block;
}

/* ================= RESPONSIVE FACEBOOK ================= */
@media (max-width: 768px) {

    .facebook-section {
        padding: 30px 10px;
    }

    .facebook-grid {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .facebook-container {
        width: 100%;
        max-width: 360px;
    }

    .fb-page,
    .fb-page span,
    .fb-page iframe {
        width: 100% !important;
    }
}



/* ================= FOOTER AZUL ================= */
.footer-azul {
    background: linear-gradient(135deg, var(--azul-pan-oscuro), var(--azul-pan));
    color: white;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 40px 20px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.6);
    padding-bottom: 8px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
    font-size: 15px;
}

.footer-col a {
    color: white;
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

/* MAPA */
#map {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.4);
}

/* ================= FRANJA BLANCA FOOTER ================= */
.footer-blanco {
    background: white;
    color: var(--azul-pan);
    text-align: center;
    padding: 14px 10px;
    font-size: 14px;
    font-weight: bold;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .header-main {
        flex-direction: column;
    }

    .menu {
        flex-wrap: wrap;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #map {
        margin-top: 15px;
    }
}

/* ================== CABILDO ================== */
/* CONTENEDOR QUE FUERZA LA FILA */
.cabildo-wrapper {
    max-width: 1200px;
    margin: auto;
    overflow-x: auto;   /* 🔑 aquí vive el scroll */
}

/* GRID REAL */
.cabildo-grid {
    display: flex;
    gap: 25px;
    flex-wrap: nowrap; /* UNA SOLA FILA */
    justify-content: flex-start; /* ❗ NO center */
    padding-bottom: 15px;
}

.cabildo-section h2 {
    text-align: center;      /* 👈 lo centra */
    font-size: 42px;         /* 👈 más grande */
    font-weight: bold;
    color: var(--azul-pan);  /* azul institucional */
    margin-bottom: 40px;     /* separación de las fotos */
    margin-top: 20px;
      
}

.cabildo-section h2::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    background: var(--azul-pan);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* TARJETA */
.cabildo-card {
    background: #fff;
    min-width: 220px;
    max-width: 220px;
    text-align: center;
    text-decoration: none;
    color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    transition: transform .3s, box-shadow .3s;
}

.cabildo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

/* FOTO */
.cabildo-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* TEXTO */
.cabildo-info {
    padding: 15px;
}

.cabildo-info h3 {
    font-size: 15px;
    color: #003366;
    margin-bottom: 5px;
}

.cabildo-info p {
    font-size: 14px;
    font-weight: bold;
}


/* ================== CABILDO ESTILO INSTITUCIONAL ================== */
.cabildo-contenedor {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.cabildo-intro {
    margin-bottom: 50px;
    font-size: 20px;
    color: #000;
    text-align: center;
}

.cabildo-integrante {
    display: flex;
    gap: 40px;
    margin-bottom: 70px;
    align-items: flex-start;
}

.cabildo-foto img {
    width: 350px;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.cabildo-info h2 {
    font-size: 28px;
    margin-bottom: 5px;
    color: #000;
}

.cabildo-info h3 {
    font-size: 18px;
    color:  #003F7D;
    margin-bottom: 10px;
}

.periodo {
    font-size: 32px;
    color:  #003366;
    margin-bottom: 20px;
    font-weight: bold;
}

.cabildo-info h4 {
    margin-top: 20px;
    font-size: 18px;
}

.cabildo-info ul {
    padding-left: 18px;
}

.cabildo-info ul li {
    margin-bottom: 6px;
}

.cabildo-info a {
    color: #0056A6;
    text-decoration: none;
}

.cabildo-redes {
    margin-top: 15px;
}

.cabildo-redes a {
    margin-right: 15px;
    font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cabildo-integrante {
        flex-direction: column;
        text-align: center;
    }

    .cabildo-foto img {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* ================== FOOTER INSTITUCIONAL ================== */
.footer-institucional {
    background: #0a1f44;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 60px;
    flex-wrap: wrap;
}

.footer-inst-col {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.footer-inst-col:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.6);
}

.footer-inst-col.logo img {
    height: 70px;
}

.footer-inst-col h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-inst-col a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.footer-inst-col p {
    margin: 3px 0;
}

@media (max-width: 768px) {
    .footer-institucional {
        flex-direction: column;
        gap: 25px;
    }

    .footer-inst-col {
        border-right: none !important;
    }
}

/* Leaflet Map */
#map {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.4);
}

/* Ajuste para footer */
.footer-col h4 {
    margin-bottom: 8px;
}

/* ================== COPLADEMUM ================== */
.coplademum-section {
    background: #f5f7fa;
    padding: 60px 20px;
}

.coplademum-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.coplademum-img img {
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.coplademum-info {
    flex: 1;
}

.coplademum-info h2 {
    font-size: 32px;
    color: #0a3d62;
    margin-bottom: 15px;
}

.coplademum-info p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #333;
}

/* BOTÓN */
.btn-coplademum {
    display: inline-block;
    padding: 14px 28px;
    background: #0a3d62;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-coplademum:hover {
    background: #062c47;
}
