/* =========================================================
   RESET / FONDO GENERAL
========================================================= */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;

    /* Fondo estilo Tepos */
    background-image: url('/imagenes/fondos_ventanaS/fondoAtractivos.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;

    color: #4a413c;
}


/* =========================================================
   MENÚ SUPERIOR (MISMO DISEÑO QUE SERVICIOS / PAQUETES)
========================================================= */
.menu-superior {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 0;

    display: flex;
    justify-content: center;
    z-index: 999;

    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    backdrop-filter: blur(4px);
}

.menu-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: center;
}

.menu-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.menu-links li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 130px;
    text-align: center;

    color: white;
    text-decoration: none;
    font-size: 16px;

    padding: 6px 10px;
    line-height: 1.2;

    transition: 0.3s;
    position: relative;
}

.menu-links li a:hover {
    color: #ffe6ff;
    transform: translateY(-2px);
}

/* Subrayado degradado */
.menu-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;

    background: linear-gradient(90deg, #a32bbf,#ff6db7,#ffb36d);
    border-radius: 4px;
    transition: .35s ease;
}

.menu-links li a:hover::after {
    width: 100%;
}

/* Activo */
.menu-links li a.activo {
    background-color: #9c7a47;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 25px;
    border: 2px solid #e7b57a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.20);
}

.menu-links li a.activo::after {
    display: none;
}

/* LOGO HOME */
.menu-links .home-icon img {
    height: 100px;
    width: 100px;
    object-fit: contain;
    border-radius: 12px;
    transition: 0.3s;
}

.menu-links .home-icon img:hover {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(3px);
    padding: 6px;
}

/* LOGIN */
.menu-links .login-icon img {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    transition: 0.3s;
}

.menu-links .login-icon img:hover {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(3px);
    padding: 6px;
}


/* =========================================================
   TÍTULO PRINCIPAL MUNICIPIO
========================================================= */
.municipio-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;

    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;

    margin-top: 10px;   /* espacio debajo del menú */
    margin-bottom: 50px;

    text-shadow: 0 4px 16px rgba(0,0,0,0.6);
}


/* =========================================================
   CONTENEDOR GENERAL
========================================================= */
.municipio-section {
    width: calc(100% - 200px);   /* 100px de margen a cada lado */
    max-width: 1400px;

    margin: 0 auto 120px;
    padding: 0 20px 80px;
}


/* =========================================================
   GRID DE CARDS
========================================================= */
.municipio-grid {
    display: grid;
    gap: 45px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}


/* =========================================================
   CARD
========================================================= */
.municipio-card {
    background: rgba(255,255,255,0.9);
    border-radius: 18px;
    overflow: hidden;

    backdrop-filter: blur(6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);

    padding: 26px;
    transition: 0.35s;
}

.municipio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}


/* TÍTULO DE CADA DOCUMENTO */
.municipio-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #7c4c25;
}


/* DESCRIPCIÓN */
.municipio-card p {
    margin: 0 0 18px;
    color: #4a413c;
    font-size: 16px;
    line-height: 1.55;
}


/* METADATOS */
.municipio-meta {
    font-size: 14px;
    color: #6a5e55;
    margin-bottom: 20px;
    line-height: 1.45;
}


/* =========================================================
   BOTÓN
========================================================= */
.btn-ir {
    display: inline-block;
    padding: 12px 30px;

    background: #ffb36d;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 700;

    border-radius: 14px;
    cursor: pointer;

    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: 0.35s ease;
}

.btn-ir:hover {
    background: #a32bbf;
    color: white;
    transform: translateY(-2px) scale(1.05);
}


/* =========================================================
   MENSAJE SIN CONTENIDO
========================================================= */
.no-data {
    text-align: center;
    padding: 100px 0;
    color: white;
    font-size: 22px;
    text-shadow: 0 3px 14px rgba(0,0,0,0.5);
}


/* =========================================================
   RESPONSIVE
========================================================= */
@media(max-width: 900px) {

    .municipio-section {
        width: calc(100% - 40px);
        margin-top: 0;
    }

    .municipio-title {
        font-size: 32px;
        margin-top: 110px;
    }

    .menu-links {
        gap: 16px;
    }

    .menu-links li a {
        min-width: 95px;
        font-size: 14px;
        padding: 4px 6px;
    }
}
/* =========================================================
   MUNICIPIO RESPONSIVE
========================================================= */

@media (max-width:768px){

    body{
        overflow-x:hidden;
    }

    /* =====================
       MENU
    ===================== */

    .menu-superior{
        position: sticky;
        top: 0;
        width: 100%;
        padding: 0;
        z-index: 999;
    }

    .menu-superior::before,
    .menu-superior::after{
        content: "";
        position: absolute;
        top: 0;
        width: 50px;
        height: 100%;
        pointer-events: none;
        z-index: 20;
    }

    .menu-superior::before{
        left: 0;
        background: linear-gradient(
            to left,
            rgba(0,0,0,0),
            rgba(0,0,0,.35)
        );
    }

    .menu-superior::after{
        right: 0;
        background: linear-gradient(
            to right,
            rgba(0,0,0,0),
            rgba(0,0,0,.35)
        );
    }

    .menu-container{
        width:100%;
        max-width:100%;
        padding:0;
        margin:0;
    }

    .menu-links{
        width:100%;
        display:flex;
        flex-wrap:nowrap;
        justify-content:flex-start;
        align-items:center;

        gap:18px;

        overflow-x:auto;
        overflow-y:hidden;

        padding:10px;
        margin:0;

        scrollbar-width:none;
    }

    .menu-links::-webkit-scrollbar{
        display:none;
    }

    .menu-links li{
        flex-shrink:0;
        width:auto;
    }

    .menu-links li a{
        min-width:auto;
        width:auto;
        white-space:nowrap;

        font-size:14px;
        padding:8px 12px;
    }

    /* =====================
       LOGO
    ===================== */

    .home-icon{
        display:block;
        flex-shrink:0;
    }

    .home-icon img{
        width:65px;
        height:65px;
        object-fit:contain;
    }

    /* =====================
       LOGIN
    ===================== */

    .login-icon img{
        width:35px;
        height:35px;
    }

    /* =====================
       TITULO
    ===================== */

    .municipio-title{
        font-size:28px;
        margin-top:20px;
        margin-bottom:25px;
        padding:0 10px;
    }

    /* =====================
       CONTENEDOR
    ===================== */

    .municipio-section{
        width:100%;
        max-width:100%;
        padding:0 10px 40px;
        box-sizing:border-box;
        margin-bottom:40px;
    }

    /* =====================
       GRID
    ===================== */

    .municipio-grid{
        grid-template-columns:1fr;
        gap:30px;
        justify-items:center;
    }

    /* =====================
       CARDS
    ===================== */

    .municipio-card{

        width:100%;
        max-width:320px;

        padding:22px;

        border-radius:20px;

        background:rgba(255,255,255,.95);

        box-shadow:
            0 8px 25px rgba(0,0,0,.25);

        transition:.3s ease;
    }

    .municipio-card h3{
        font-size:20px;
        text-align:center;
        margin-bottom:15px;
    }

    .municipio-card p{
        font-size:14px;
        line-height:1.7;
        text-align:justify;
    }

    .municipio-meta{
        font-size:13px;
        line-height:1.6;
    }

    /* =====================
       BOTON
    ===================== */

    .btn-ir{

        display:block;

        width:90%;
        max-width:260px;

        text-align:center;

        margin:18px auto 0;

        padding:12px;
        font-size:15px;

        border-radius:14px;
    }

    /* =====================
       MENSAJE
    ===================== */

    .no-data{
        font-size:18px;
        padding:60px 15px;
    }

}


/* =========================================================
   CELULARES PEQUEÑOS
========================================================= */

@media (max-width:480px){

    .municipio-title{
        font-size:22px;
    }

    .municipio-card{
        width:95%;
        max-width:380px;
        padding:18px;
    }

    .municipio-card h3{
        font-size:18px;
    }

    .municipio-card p{
        font-size:13px;
    }

    .btn-ir{
        width:90%;
        font-size:14px;
    }

    .home-icon img{
        width:55px;
        height:55px;
    }

    .menu-links li a{
        font-size:12px;
        padding:6px 10px;
    }
}