/* ==========================================================================
   RESET Y ESTRUCTURA BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    display: inline-block;
}

ul {
    list-style: none;
}

/* ==========================================================================
   TOP BAR Y REDES SOCIALES
   ========================================================================== */
.top-bar {
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info span {
    display: inline-flex;
    align-items: center;
}

.contact-info i {
    margin-right: 6px;
}

/* Manejo de tus imágenes PNG de redes */
.redes-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.redes-top a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.redes-top a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* ==========================================================================
   HEADER Y MENÚ
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text h1 {
    line-height: 1.1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 14px;
}

.has-submenu > a i {
    margin-left: 4px;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 9px 18px;
}

.submenu li a:hover {
    padding-left: 22px;
}

.btn-nav {
    padding: 8px 18px !important;
}

/* ==========================================================================
   HERO / PORTADA
   ========================================================================== */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 60px 0;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 20px;
}

.hero h2 {
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* ==========================================================================
   CARDS / VALORES
   ========================================================================== */
.features {
    padding: 50px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: -80px;
    position: relative;
    z-index: 5;
}

.feature-card {
    padding: 30px 24px;
}

.icon-box {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

/* ==========================================================================
   SECCIONES Y TÍTULOS
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title h2 {
    margin-top: 5px;
}

.divider {
    width: 60px;
    height: 4px;
    margin: 12px auto 0;
}

.about {
    padding: 70px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    padding: 35px 30px;
}

.card-icon {
    margin-bottom: 15px;
}

.about-card h3 {
    margin-bottom: 12px;
}

/* ==========================================================================
   MULTIMEDIA / GALERÍA
   ========================================================================== */
.multimedia {
    padding: 70px 0;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.media-card {
    overflow: hidden;
}

.media-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.media-info {
    padding: 18px;
}

.media-info h4 {
    margin-bottom: 6px;
}

/* ==========================================================================
   NOTICIAS / COMUNICADOS
   ========================================================================== */
.news {
    padding: 70px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    display: flex;
    overflow: hidden;
}

.date-badge {
    padding: 20px 14px;
    display: flex;
    align-items: center;
    text-align: center;
    line-height: 1.2;
}

.news-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-content h3 {
    margin-bottom: 8px;
}

.news-content p {
    margin-bottom: 12px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact {
    padding-bottom: 60px;
}

.contact-box {
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-text h2 {
    margin-bottom: 8px;
}

.contact-text p {
    max-width: 650px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 35px;
    padding-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-col h4 {
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col p {
    margin-bottom: 10px;
}

.footer-col p i {
    margin-right: 8px;
}

.footer-bottom {
    padding: 18px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ==========================================================================
   BOTÓN FLOTANTE
   ========================================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    padding: 6px 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        justify-content: center;
        text-align: center;
    }
    .contact-info span {
        display: block;
        margin: 3px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .cards-grid {
        margin-top: 20px;
    }
}