body {
    font-family: 'Montserrat', sans-serif;
    color: #2c2c2c;
}

/* Logo */
.logo {
    max-width: 120px;
}

/* HERO */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.hero-section img {
    height: 70vh;
    object-fit: cover;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 40, 80, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 10;
}

.hero-overlay h2 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-overlay p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: auto;
}

/* AUTORIDADES */
.autoridades-img {
    max-width: 700px; /* tamaño controlado */
}

.autoridades-lista li {
    font-size: 1.05rem;
    padding: 12px 5px;
}
.autoridades-lista ul {
    list-style-type: disc;
    color: #333;
}

.autoridades-lista ul li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}
/* FOOTER */
.footer-institucional {
    font-size: 0.95rem;
}

.footer-logo {
    max-width: 120px;
}

.footer-institucional h5 {
    font-weight: 600;
    margin-bottom: 15px;
}

/* Redes */
.social-link {
    display: block;
    text-decoration: none;
    color: white;
    margin-bottom: 10px;
    font-weight: 500;
}

.social-link.whatsapp:hover {
    color: #25D366;
}

.social-link.facebook:hover {
    color: #1877f2;
}
.servicios-afiliados {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.beneficios-lista {
    margin-top: 15px;
}

.beneficios-lista li {
    margin-bottom: 8px;
    font-size: 1rem;
}
/* INSTITUCIÓN */
.institucion-img {
    max-width: 800px;
}
.acta-img {
    max-height: 380px;
    object-fit: contain;
}
:root {
    --color-primario: #0f766e;
    --color-secundario: #1e3a8a;
    --color-claro: #f8f9fa;
}
.navbar {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.nav-link {
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ffe082 !important;
}
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
html {
    scroll-behavior: smooth;
}
img {
    transition: transform 0.3s;
}

img:hover {
    transform: scale(1.02);
}
h2, h3, h4 {
    font-weight: 600;
    color: var(--color-secundario);
}
.mapa-seccion {
    margin-top: 60px;
}
.novedades-seccion {
    background-color: #f3f6f9;
}
.seccion-clara {
    background-color: #ffffff;
    padding: 60px 0;
}

.seccion-gris {
    background-color: #f3f6f9;
    padding: 60px 0;
}
.mapa-seccion iframe {
    filter: grayscale(20%);
}
.mapa-seccion {
    width: 100%;
    margin-top: 60px;
}

.mapa-seccion iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
}
.mapa-seccion iframe {
    height: 420px;
}
.novedades-section {
    background-color: #f5f7fa;
}

.novedades-section h3 {
    font-weight: 600;
}

.card img {
    height: 200px;
    object-fit: cover;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}
.footer-redes {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-redes .red {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: transform 0.3s, opacity 0.3s;
}

.social-wsp { background-color: #25D366; }
.social-fb  { background-color: #1877F2; }
.social-ig  { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }

.footer-redes .red:hover {
    transform: scale(1.1);
    opacity: 0.9;
}
.btn-afiliarme {
    padding: 10px 22px;
    font-weight: 500;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.btn-afiliarme:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}
.contenido-principal {
    position: relative;
    background-color: #ffffff;
    min-height: 300px;
}
.carousel .btn {
    min-width: 120px;
}
/* SECCION DESTACADOS */
.seccion-destacados {
    padding: 40px;
    background: #f5f5f5;
}

.contenedor-destacados {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card-destacado {
    flex: 1;
    min-width: 350px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 6px 15px rgba(0,0,0,0.1);
}
.card-destacado:hover {
    transform: scale(1.03);
}

.card-destacado img {
    width: 100%;
    height: auto; /* 🔥 clave para que se vea completa */
    display: block;
}
.contenido-card {
    padding: 20px;
    text-align: left;
}

.btn-acceder {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.seccion-videos {
    padding: 50px 20px;
    background: #f5f7fa;
    text-align: center;
}

.contenedor-videos {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.video-card {
    width: 300px;
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-8px);
}

.video-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 6px 15px rgba(0,0,0,0.2);
}

.video-thumb img {
    width: 100%;
    display: block;
}

/* BOTÓN PLAY */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 15px 20px;
    border-radius: 50%;
}

.video-card h4 {
    margin-top: 10px;
    font-size: 1rem;
    color: #1e3a8a;
}
.mapa-seccion iframe {
    position: static !important;
    width: 100%;
    height: 400px;
}
.mapa-seccion iframe {
    position: static !important;
}
.contenedor-destacados {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card-destacado {
    flex: 1 1 45%; /* 🔥 clave */
    max-width: 48%;
}
.contenedor-videos {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.video-card {
    flex: 1 1 300px; /* 🔥 clave */
    max-width: 320px;
}
@media (max-width: 768px) {

    .card-destacado {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .video-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

}