@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Roboto Condensed", sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Menú Superior Sticky */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0; 
}

.header-top {
    padding: 10px 0; 
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Logo Municipalidad */

.logo-header {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-header:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .header-content {
        justify-content: center;
    }
}

/* Enlaces de Transparencia (Rojos) */
.link-item {
    text-align: left;
    font-size: 0.75em;
    color: red;
    text-decoration: none;
    line-height: 1.2;
    transition: opacity 0.3s;
}

.link-item:hover {
    opacity: 0.7;
}

.link-item strong {
    display: block;
    font-size: 1.1em;
    text-transform: uppercase;
}

/* Redes Sociales (Rojos) */
.social-icons {
    display: flex;
    gap: 10px;
}

.icon-circle {
    width: 30px;
    height: 30px;
    border: 2px solid red;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: red;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.icon-circle:hover {
    background-color: red;
    color: white;
}

/* Menú de Navegación Rojo */
.main-nav {
    background-color: red;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px 0;
    margin: 0;
}

.nav-content {
    max-width: 1000px;
    width: 100%;
    display: flex;
    gap: 30px;
    padding: 0 20px;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}

.nav-item:hover {
    opacity: 0.8;
}

/* Contenedor Principal */
.main-content {
    margin-top: 150px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 90%;
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    max-width: 200px;
    margin-bottom: 30px;
    height: auto;
}

/* Botón de Pago */
.btn-pago {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 18px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.2s;
    margin-bottom: 20px;
}

.btn-pago:hover {
    transform: scale(1.03);
    background-color: #0056b3;
}

/* Mensaje de Renovación */
.mensaje-renovacion {
    margin-top: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 5px solid red;
    color: #555;
    font-style: italic;
    font-size: 0.95em;
    margin-bottom: 20px;
}

/* Contacto Footer */
.contacto-footer {
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Imagen Banners */

.banner-adaptable {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    transition: all 0.3s ease;
}

.banner-adaptable:hover {
    transform: translateY(-5px); 
    box-shadow: 0 12px 20px rgba(0,0,0,0.2); 
    filter: brightness(1.05);
}

/* Contenedor para páginas de contenido extenso como videos */
.main-content-wide {
    margin-top: 160px; /* Ajustado para el sticky header doble */
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 1100px; /* Más ancho para que quepan los videos en filas */
    width: 95%;
    text-align: center;
    margin-bottom: 40px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.video-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

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

.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

.video-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border-radius: 5px;
}