/* ============================================
   HEADER.CSS - ESTILOS PARA EL ENCABEZADO MUNICIPAL
   ============================================
   Colores oficiales sugeridos:
   - Azul municipal: #0056b3
   - Blanco: #ffffff
   - Gris claro: #f8f9fa
   - Gris oscuro: #343a40
   ============================================ */

/* RESET Y ESTILOS BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Open Sans', sans-serif;
    font-weight: 400;
    background-color: #ffffff;
    color: #333;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER SUPERIOR (Logo + 5 botones)
   ============================================ */
.header-top {
    background-color: #ffffff;
    border-bottom: 2px solid #0056b3;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* ESTILOS DEL LOGO (izquierda) */
.logo-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #0056b3;
}

.logo-img {
    height: 110px; /* Aumentado de 60px a 70px */
    width: auto;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centra horizontalmente los elementos */
    text-align: center; /* Centra el texto dentro de cada elemento */
}

.logo-text h1 {
    font-size: 0.95rem; /* Reducido de 1.1rem a 1.0rem */
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.95rem;
    color: #1f1e1e;
    font-weight: bold; /* Palabra clave en lugar de número */
    line-height: 1.3;
}

/* ESTILOS DE LOS 5 BOTONES - COMPACTOS SIN BORDES */
.header-buttons {
    display: flex;
    gap: 4px; /* Espaciado muy compacto */
    align-items: center;
    justify-content: flex-end; /* Alinea a la derecha */
    flex: 1; /* Ocupa el espacio restante */
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px; /* Más compacto */
    min-width: 130px; /* Más compacto horizontalmente */
    max-width: 145px; /* Más compacto */
    padding: 0 5px; /* Padding reducido */
    border-radius: 0; /* Sin bordes redondeados */
    overflow: hidden;
    transition: all 0.2s ease;
    background-color: transparent; /* Totalmente transparente */
    text-decoration: none;
    position: relative;
    border: none !important; /* Elimina bordes completamente */
    box-shadow: none !important; /* Elimina sombras por defecto */
    outline: none !important; /* Elimina contornos de foco */
}

/* Elimina cualquier línea o separador */
.header-btn:not(:last-child)::after {
    display: none; /* Elimina separadores */
}

/* Efecto hover muy sutil - solo ligero cambio de opacidad */
.header-btn:hover {
    transform: translateY(0); /* Sin movimiento */
    background-color: transparent; /* Mantiene transparente */
    box-shadow: none !important; /* Sin sombras en hover */
}

/* Estilos para logos/banners dentro de los botones */
.header-btn img {
    width: 100%; /* Ocupa todo el ancho disponible */
    height: auto;
    max-height: 30px; /* Control de altura máxima */
    object-fit: contain;
    transition: opacity 0.2s ease;
    filter: brightness(1); /* Asegura que no haya efectos de borde */
}

/* Efecto hover solo en la imagen */
.header-btn:hover img {
    opacity: 0.85; /* Ligera reducción de opacidad al hover */
    transform: none; /* Sin transformaciones */
}

/* Versión para banners compactos */
.header-btn.banner-compacto img {
    height: 26px; /* Más compacto */
    width: 100%;
    object-fit: contain;
    padding: 2px 0; /* Pequeño padding interno */
}

/* Elimina cualquier borde residual de imágenes */
.header-btn img,
.header-btn:hover img {
    border: none;
    outline: none;
}

/* Estilos para estado activo/focus - sin bordes */
.header-btn:focus,
.header-btn:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Responsive: ajuste para pantallas más pequeñas */
@media (max-width: 1200px) {
    .header-btn {
        min-width: 115px;
        max-width: 130px;
        height: 36px;
    }
    
    .header-btn.banner-compacto img {
        height: 24px;
    }
}

@media (max-width: 992px) {
    .header-top-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-container {
        width: 100%;
        justify-content: center;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .logo-text h1 {
        font-size: 0.95rem; /* Ajuste responsive */
    }
    
    .header-buttons {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    
    .header-btn {
        min-width: 110px;
        max-width: 125px;
        height: 35px;
    }
    
    .header-btn.banner-compacto img {
        height: 22px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 65px; /* Ajuste responsive para logo */
    }
    
    .logo-text h1 {
        font-size: 0.9rem; /* Más pequeño en móviles */
    }
    
    .logo-text p {
        font-size: 0.7rem; /* Más pequeño en móviles */
    }
    
    .header-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .header-btn {
        min-width: 100px;
        max-width: 115px;
        height: 32px;
        flex: 0 1 auto; /* No se expande */
    }
    
    .header-btn.banner-compacto img {
        height: 20px;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 60px; /* Ajuste para pantallas muy pequeñas */
    }
    
    .logo-text h1 {
        font-size: 0.85rem; /* Aún más pequeño */
    }
    
    .logo-text p {
        font-size: 0.65rem; /* Aún más pequeño */
    }
    
    .header-buttons {
        gap: 4px;
    }
    
    .header-btn {
        min-width: 90px;
        max-width: 100px;
        height: 30px;
    }
    
    .header-btn.banner-compacto img {
        height: 18px;
    }
}

/* ESTILOS DE LOS 5 BOTONES - COMPACTOS SIN BORDES */
.header-buttons {
    display: flex;
    gap: 4px; /* Espaciado muy compacto */
    align-items: center;
    justify-content: flex-end; /* Alinea a la derecha */
    flex: 1; /* Ocupa el espacio restante */
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px; /* Más compacto */
    min-width: 130px; /* Más compacto horizontalmente */
    max-width: 145px; /* Más compacto */
    padding: 0 5px; /* Padding reducido */
    border-radius: 0; /* Sin bordes redondeados */
    overflow: hidden;
    transition: all 0.2s ease;
    background-color: transparent; /* Totalmente transparente */
    text-decoration: none;
    position: relative;
    border: none !important; /* Elimina bordes completamente */
    box-shadow: none !important; /* Elimina sombras por defecto */
    outline: none !important; /* Elimina contornos de foco */
}

/* Elimina cualquier línea o separador */
.header-btn:not(:last-child)::after {
    display: none; /* Elimina separadores */
}

/* Efecto hover muy sutil - solo ligero cambio de opacidad */
.header-btn:hover {
    transform: translateY(0); /* Sin movimiento */
    background-color: transparent; /* Mantiene transparente */
    box-shadow: none !important; /* Sin sombras en hover */
}

/* Estilos para logos/banners dentro de los botones */
.header-btn img {
    width: 100%; /* Ocupa todo el ancho disponible */
    height: auto;
    max-height: 30px; /* Control de altura máxima */
    object-fit: contain;
    transition: opacity 0.2s ease;
    filter: brightness(1); /* Asegura que no haya efectos de borde */
}

/* Efecto hover solo en la imagen */
.header-btn:hover img {
    opacity: 0.85; /* Ligera reducción de opacidad al hover */
    transform: none; /* Sin transformaciones */
}

/* Versión para banners compactos */
.header-btn.banner-compacto img {
    height: 26px; /* Más compacto */
    width: 100%;
    object-fit: contain;
    padding: 2px 0; /* Pequeño padding interno */
}

/* Elimina cualquier borde residual de imágenes */
.header-btn img,
.header-btn:hover img {
    border: none;
    outline: none;
}

/* Estilos para estado activo/focus - sin bordes */
.header-btn:focus,
.header-btn:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Responsive: ajuste para pantallas más pequeñas */
@media (max-width: 1200px) {
    .header-btn {
        min-width: 115px;
        max-width: 130px;
        height: 36px;
    }
    
    .header-btn.banner-compacto img {
        height: 24px;
    }
}

@media (max-width: 992px) {
    .header-top-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-container {
        width: 100%;
        justify-content: center;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .header-buttons {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    
    .header-btn {
        min-width: 110px;
        max-width: 125px;
        height: 35px;
    }
    
    .header-btn.banner-compacto img {
        height: 22px;
    }
}

@media (max-width: 768px) {
    .header-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .header-btn {
        min-width: 100px;
        max-width: 115px;
        height: 32px;
        flex: 0 1 auto; /* No se expande */
    }
    
    .header-btn.banner-compacto img {
        height: 20px;
    }
    
    .logo-img {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .header-buttons {
        gap: 4px;
    }
    
    .header-btn {
        min-width: 90px;
        max-width: 100px;
        height: 30px;
    }
    
    .header-btn.banner-compacto img {
        height: 18px;
    }
    
    .logo-text h1 {
        font-size: 0.9rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }
}

/* ============================================
   MENÚ PRINCIPAL (7 opciones + desplegables)
   ============================================ */
.main-nav {
    background-color: #0056b3;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: space-between;
}

.nav-item {
    position: relative;
    flex: 1;
    text-align: center;
}

.nav-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 8px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Roboto Condensed', sans-serif; /* ← AÑADE ESTA LÍNEA */
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 1.3;
}

.nav-item:last-child .nav-link {
    border-right: none;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ESTILOS PARA LOS DESPLEGABLES */
.dropdown {
    position: relative;
}

.dropdown-toggle .arrow {
    font-size: 0.7em;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.25s ease;
}

.dropdown:hover .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 6px 6px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    list-style: none;
    border-top: 3px solid #0056b3;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 11px 18px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
    text-transform: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #0056b3;
    padding-left: 22px;
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */
.main-content {
    min-height: calc(100vh - 170px);
    padding: 10px 0;
    background-color: #f8f9fa;
}

/* ============================================
   RESPONSIVE DESIGN - COMPLETO
   ============================================ */

/* TABLETS (768px - 992px) */
@media (max-width: 992px) {
    .header-top-content {
        flex-direction: column;
        text-align: center;
        padding: 12px 0;
        gap: 15px;
    }
    
    .logo-container {
        margin-bottom: 0;
        justify-content: center;
        width: 100%;
        flex-direction: column;
        text-align: center;
    }
    
    .logo-img {
        margin-right: 0;
        margin-bottom: 10px;
        height: 60px;
    }
    
    .logo-text {
        text-align: center;
    }
    
    .logo-text h1 {
        font-size: 1.15rem;
    }
    
    .logo-text p {
        font-size: 0.82rem;
    }
    
    /* Menú para tablets - ya no será visible como hamburguesa */
    .nav-menu {
        display: none;
    }
    
    /* Botones en tablets */
    .header-buttons {
        justify-content: center;
        margin-top: 0;
        gap: 10px;
    }
    
    .header-btn {
        width: 42px;
        height: 34px;
    }
}

/* MÓVILES (menos de 768px) */
@media (max-width: 768px) {
    /* HEADER SUPERIOR */
    .header-top {
        padding: 8px 0;
    }
    
    .header-top-content {
        padding: 8px 0;
        flex-direction: column;
        gap: 12px;
    }
    
    .logo-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        text-align: left;
    }
    
    .logo-img {
        height: 55px;
        margin-right: 12px;
        margin-bottom: 0;
    }
    
    .logo-text h1 {
        font-size: 1.05rem;
        text-align: left;
    }
    
    .logo-text p {
        font-size: 0.78rem;
        text-align: left;
    }
    
    /* CONTENEDOR PARA LOGO Y HAMBURGUESA */
    .mobile-header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 12px;
    }
    
    /* BOTÓN HAMBURGUESA */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: #0056b3;
        border: none;
        border-radius: 5px;
        width: 42px;
        height: 42px;
        cursor: pointer;
        position: relative;
        z-index: 1001;
        transition: all 0.25s ease;
        padding: 0;
    }
    
    .menu-toggle:hover {
        background-color: #004494;
    }
    
    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2.5px;
        background-color: white;
        margin: 2.5px 0;
        border-radius: 1px;
        transition: all 0.25s ease;
    }
    
    .menu-toggle.active {
        background-color: #004494;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -5px);
    }
    
    /* MENÚ MÓVIL */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: #0056b3;
        background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
        flex-direction: column;
        padding: 70px 0 20px;
        transition: left 0.3s ease-out;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
        display: flex !important;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        opacity: 0;
        transform: translateX(-15px);
        transition: all 0.25s ease;
    }
    
    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Retrasos para animación escalonada */
    .nav-menu.active .nav-item {
        transition-delay: calc(var(--item-index, 0) * 0.08s);
    }
    
    .nav-link {
        padding: 16px 20px;
        border-right: none;
        font-size: 0.95rem;
        color: white;
        justify-content: flex-start;
        align-items: center;
        display: flex;
        text-align: left;
        font-weight: 600;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Flecha para dropdowns en móvil */
    .dropdown-toggle::after {
        content: "›";
        font-size: 1.2rem;
        margin-left: auto;
        transform: rotate(90deg);
        transition: transform 0.25s ease;
    }
    
    .dropdown.active .dropdown-toggle::after {
        transform: rotate(-90deg);
    }
    
    /* DROPDOWN EN MÓVIL */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: rgba(0, 0, 0, 0.15);
        border-left: 3px solid rgba(255, 255, 255, 0.2);
        margin: 0;
        padding: 0;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .dropdown-menu a {
        padding: 14px 20px 14px 30px;
        color: rgba(255, 255, 255, 0.95);
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.15);
        color: white;
        padding-left: 35px;
    }
    
    /* OVERLAY PARA CERRAR MENÚ */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* BOTONES EN MÓVIL */
    .header-buttons {
        justify-content: center;
        margin-top: 0;
        gap: 8px;
        width: 100%;
        padding: 0 12px;
    }
    
    .header-btn {
        width: 38px;
        height: 32px;
        border-radius: 5px;
    }
    
    /* ANIMACIONES */
    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 500px;
        }
    }
}

/* MÓVILES PEQUEÑOS (menos de 576px) */
@media (max-width: 576px) {
    .mobile-header-container {
        padding: 0 10px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 0.95rem;
    }
    
    .logo-text p {
        font-size: 0.75rem;
    }
    
    .nav-menu {
        width: 90%;
        max-width: 280px;
    }
    
    .nav-link {
        padding: 14px 18px;
        font-size: 0.9rem;
    }
    
    .menu-toggle {
        width: 38px;
        height: 38px;
    }
    
    .menu-toggle span {
        width: 20px;
        height: 2px;
    }
    
    .header-buttons {
        gap: 6px;
    }
    
    .header-btn {
        width: 36px;
        height: 30px;
    }
}

/* ORIENTACIÓN HORIZONTAL EN MÓVILES */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-menu {
        width: 65%;
        max-width: 350px;
        padding-top: 60px;
    }
    
    .nav-item {
        padding: 10px 0;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 0.88rem;
    }
}

/* VISTA ESCRITORIO - Asegurar que el menú sea visible */
@media (min-width: 769px) {
    .menu-toggle,
    .menu-overlay {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        background: none;
        padding: 0;
        box-shadow: none;
        flex-direction: row;
    }
    
    .nav-item {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   ESTILOS MEJORADOS PARA EL PIE DE PÁGINA
   ============================================ */

.main-footer {
    background: linear-gradient(135deg, #00415a 0%, #005073 50%, #006188 100%);
    color: #ffffff;
    padding: 0;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    font-family: 'Times New Roman', Times, serif;
    margin-top: 60px;
    overflow: hidden;
    min-height: auto;
}

/* Línea decorativa superior */
.footer-top-border {
    height: 6px;
    background: linear-gradient(90deg, #9fc5d4, #d0e8f2, #9fc5d4);
    width: 100%;
    position: relative;
}

.footer-top-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 30px;
    width: 100%;
    position: relative;
}

/* Patrón de fondo sutil */
.footer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(159, 197, 212, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 20%, rgba(159, 197, 212, 0.05) 0%, transparent 20%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-column {
    margin-bottom: 30px;
    position: relative;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.footer-column:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 40px;
    background: #9fc5d4;
    border-radius: 0 4px 4px 0;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(159, 197, 212, 0.5);
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #9fc5d4;
}

/* Columna 1: Información del Municipio */
.footer-info .logo-municipal {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info .logo-municipal i {
    color: #9fc5d4;
    font-size: 32px;
}

.footer-info p {
    color: #e6f7ff;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 25px;
    text-align: justify;
    opacity: 0.9;
}

.footer-contact {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    color: #e6f7ff;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    color: #9fc5d4;
    font-size: 1.2rem;
    min-width: 25px;
    background: rgba(159, 197, 212, 0.1);
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    background: #9fc5d4;
    color: #005073;
    transform: scale(1.1);
}

/* Columna 2: Enlaces rápidos */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
    transition: all 0.3s ease;
}

.footer-links ul li:hover {
    transform: translateX(5px);
}

.footer-links ul li::before {
    content: '→';
    color: #9fc5d4;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.footer-links ul li:hover::before {
    transform: translateX(5px);
    color: #ffffff;
}

.footer-links ul li a {
    color: #e6f7ff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: block;
    padding: 5px 0;
    border-bottom: 1px solid transparent;
}

.footer-links ul li a:hover {
    color: #ffffff;
    border-bottom: 1px solid #9fc5d4;
    padding-left: 5px;
}

/* Columna 3: Horarios de atención */
.footer-hours {
    position: relative;
}

.hours-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: #9fc5d4;
    font-size: 0.9rem;
}

.hours-header i {
    font-size: 1.3rem;
}

.footer-hours .hours-item {
    margin-bottom: 18px;
    color: #e6f7ff;
    font-size: 1rem;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.footer-hours .hours-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid #9fc5d4;
    transform: translateX(5px);
}

.hours-item .day {
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.hours-item .day::before {
    content: '⏰';
    font-size: 0.9rem;
}

.hours-item .time {
    color: #9fc5d4;
    font-size: 0.95rem;
    padding-left: 25px;
}

.hours-note {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(159, 197, 212, 0.1), rgba(208, 232, 242, 0.05));
    border-left: 4px solid #9fc5d4;
    font-size: 0.9rem;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hours-note::before {
    content: 'ℹ️';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
}

/* Columna 4: Redes Sociales */
.footer-social h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.footer-social h3 i {
    color: #9fc5d4;
    font-size: 1.3rem;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-btn:hover::before {
    left: 100%;
}

.social-icon {
    font-size: 1.3rem;
    width: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.social-btn:hover .social-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Colores específicos para redes sociales con gradientes */
.social-btn.fb { 
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1), transparent);
    border-color: rgba(24, 119, 242, 0.3);
}
.social-btn.fb .social-icon { color: #1877f2; }
.social-btn.fb:hover { 
    background: linear-gradient(135deg, #1877f2, #0d5fd0);
    border-color: #1877f2;
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4);
}

.social-btn.tw { 
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.1), transparent);
    border-color: rgba(29, 161, 242, 0.3);
}
.social-btn.tw .social-icon { color: #1da1f2; }
.social-btn.tw:hover { 
    background: linear-gradient(135deg, #1da1f2, #0c8bda);
    border-color: #1da1f2;
    box-shadow: 0 10px 25px rgba(29, 161, 242, 0.4);
}

.social-btn.ig { 
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), transparent);
    border-color: rgba(225, 48, 108, 0.3);
}
.social-btn.ig .social-icon { color: #e1306c; }
.social-btn.ig:hover { 
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(225, 48, 108, 0.4);
}

.social-btn.yt { 
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), transparent);
    border-color: rgba(255, 0, 0, 0.3);
}
.social-btn.yt .social-icon { color: #ff0000; }
.social-btn.yt:hover { 
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-color: #ff0000;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.02);
    color: #ffffff !important;
}

/* Pie inferior del footer */
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.95rem;
    color: #9fc5d4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #9fc5d4, transparent);
}

.footer-copyright {
    color: #e6f7ff;
    font-style: italic;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-copyright i {
    color: #9fc5d4;
    font-size: 1.1rem;
}

.footer-legal-links {
    display: flex;
    gap: 30px;
}

.footer-legal-links a {
    color: #e6f7ff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.footer-legal-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #9fc5d4;
    transition: width 0.3s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

.footer-legal-links a:hover::after {
    width: 100%;
}

/* Sello municipal decorativo */
.footer-seal {
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0.05;
    font-size: 80px;
    color: #ffffff;
    pointer-events: none;
}

/* ============================================
   MEDIA QUERIES PARA RESPONSIVE DEL FOOTER
   ============================================ */

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-column {
        padding: 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-footer {
        margin-top: 40px;
        padding: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-container {
        padding: 40px 20px 20px;
    }
    
    .footer-bottom {
        gap: 20px;
        margin-top: 40px;
    }
    
    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-column {
        padding: 15px;
    }
    
    .footer-info p {
        max-width: 100%;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-links ul li {
        padding-left: 0;
    }
    
    .footer-links ul li::before {
        display: none;
    }
    
    .social-icons {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .footer-column {
        padding: 15px 10px;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-btn {
        padding: 14px 15px;
        font-size: 0.95rem;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
}

/* ============================================
   MEDIA QUERIES GENERALES PARA RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .page-header h1,
    .page-header p {
        padding: 0 15px;
    }
    
    .page-content {
        padding: 20px 15px;
        margin: 0 15px;
        width: calc(100% - 30px);
    }
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 25px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-section {
        padding: 20px;
    }
    
    .page-header {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .welcome-section {
        padding: 20px;
    }
    
    .page-content {
        padding: 15px;
        margin: 0 10px;
        width: calc(100% - 20px);
    }
}
/* ============================================
   MENÚ HAMBURGUESA - SOLO PARA MÓVIL
   ============================================ */

/* Botón hamburguesa - solo visible en móvil */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
    background: #004aad;
    color: white;
    border: none;
    border-radius: 5px;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Menú móvil */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 1003;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-nav.active {
    right: 0;
}

/* Header del menú móvil */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #004aad;
    color: white;
    border-bottom: 3px solid #ffcc00;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.mobile-logo span {
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Menú móvil */
.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-item {
    border-bottom: 1px solid #eee;
}

.mobile-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.mobile-link:hover {
    background: #f5f5f5;
    color: #004aad;
}

.mobile-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #004aad;
}

.mobile-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s;
}

.mobile-dropdown.active .mobile-arrow {
    transform: rotate(180deg);
}

/* Submenú móvil */
.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f9f9f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 40px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.mobile-submenu li a:hover {
    background: #eef5ff;
    color: #004aad;
}

.mobile-submenu li a i {
    font-size: 14px;
    color: #666;
}

/* Botones del header en versión móvil */
.mobile-header-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.mobile-header-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.mobile-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.mobile-header-btn img {
    width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

/* Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MEDIA QUERIES - RESPONSIVE
   ============================================ */

/* Ocultar menú principal en móvil */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .hamburger-btn {
        display: block;
    }
}

/* Mostrar menú principal en desktop */
@media (min-width: 769px) {
    .mobile-menu-container {
        display: none;
    }
    
    .mobile-overlay {
        display: none;
    }
}

/* Ajustes para tablets pequeñas */
@media (max-width: 480px) {
    .mobile-nav {
        width: 100%;
    }
    
    .hamburger-btn {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .mobile-header-buttons {
        grid-template-columns: 1fr;
    }
}