* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    overflow-y: scroll; 
    min-height: 100vh;
    color: #ffffff;
    
    /* Configuración del fondo unificada */
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    transition: background-image 0.5s ease-in-out;

    /* Por defecto en COMPUTADORAS */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                      url('assets/desktop/c807background.jpg');
}


/* Estilos para Desktop (Fuera del media query de móviles) */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;    
    text-align: center;      
    padding: 20px;
    width: 100%;
    max-width: 650px;
    margin-left: auto;      
    margin-right: auto;

    /* 💻 Margen perfecto para Desktop (Baja el bloque sin causar scroll) */
    margin-top: 32vh;       
}

/* Barra de Navegación Superior */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    width: 100%;
    position: relative;
    z-index: 1005;
}

.logo-container img {
    height: 45px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
    position: relative;
    z-index: 1010;
}
nav a:hover {
    color: #8cc63f;
}


h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.description {
    font-size: 16px;
    max-width: 700px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.search-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 650px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.search-icon {
    margin-left: 15px;
    margin-right: 10px;
    opacity: 0.7;
}

.search-container input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 16px;
    width: 100%;
    padding: 10px 5px;
}

.search-container input::placeholder { color: rgba(255, 255, 255, 0.7); }

.btn-buscar {
    background-color: #00713d;
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.3s;
}
.btn-buscar:hover { background-color: #00542d; }

.suggestions-box {
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: none;
    z-index: 100;
    transform: translateZ(0);
}

.suggestion-item {
    padding: 15px 25px;
    color: #2b2b2b;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-item:hover { background-color: #f7f9f8; }

.muni-info { display: flex; flex-direction: column; }
.muni-label-text { font-size: 12px; color: #00713d; font-weight: 700; text-transform: uppercase; margin-bottom: -2px; }
.muni-name { font-weight: 700; font-size: 16px; color: #111111; }
.dept-name { font-size: 11px; color: #666; text-transform: uppercase; margin-top: 2px; }

.badge-dias {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}
.badge-diario { background-color: #eaf7ec; color: #2ecc71; }
.badge-especial { background-color: #e8f4fd; color: #3498db; }

/* Pop-up (Modal) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #ffffff;
    color: #2b2b2b;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
    border-top: 8px solid #8cc63f;
}

.modal-overlay.active .modal-card { transform: scale(1); }
.modal-icon { font-size: 45px; margin-bottom: 5px; }

.modal-muni-prefix { font-size: 13px; font-weight: 700; color: #00713d; text-transform: uppercase; letter-spacing: 0.5px; }
.modal-muni { font-size: 26px; font-weight: 700; color: #111111; line-height: 1.2; margin-bottom: 2px; }
.modal-dept { font-size: 12px; color: #666; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }

.modal-info-box {
    background-color: #f7f9f8;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 15px;
}
.modal-info-box strong { display: block; font-size: 18px; margin-top: 5px; }

.text-diario { color: #2ecc71; }
.text-especial { color: #3498db; }

.btn-cerrar {
    background-color: #2b2b2b;
    color: #ffffff;
    border: none;
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}
.btn-cerrar:hover { background-color: #111111; }

/* Estilos Completamente Responsivos */
@media (max-width: 768px) {
    header { padding: 15px 20px; }
    .logo-container img { height: 35px; }
    nav a { font-size: 13px; }
    .main-content { 
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px; 
        width: 100%;
        
        /* Forzamos a que baje un 20% del alto del celular para esquivar las letras */
        margin-top: 30vh !important; 
    }
    h1 { font-size: 28px; }
    .description { font-size: 14px; margin-bottom: 25px; }
    .search-container { border-radius: 30px; padding: 8px 10px; }
    .search-icon { margin-left: 5px; margin-right: 5px; width: 18px; height: 18px; }
    .search-container input { font-size: 14px; padding: 6px 2px; }
    .btn-buscar { padding: 10px 20px; font-size: 14px; border-radius: 22px; }
    .suggestions-box { top: 52px; max-height: 220px; border-radius: 12px; }
    .suggestion-item { padding: 12px 15px; }
    .muni-name { font-size: 14px; }
    .badge-dias { font-size: 11px; padding: 4px 10px; }
    .modal-card { padding: 25px 20px; }
    .modal-muni { font-size: 22px; }

    /* fondo en movil */
    body {
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                          url('assets/mobile/movil.jpg');
    }
} /* Esta es la llave de cierre final de tu media query */