/* Contenedor principal */
.municipios {
    max-width: 1024px;
    margin: 0 auto;
    padding: 1em;
}

.municipios h1 {
    text-align: center;
    font-size: 1.1em;
    text-transform: uppercase;
    margin: 4px;
}

.municipios h2 {
    font-size: 1.1em;
    color: #2b2a2b;
    text-align: center;
    margin-bottom: 0;
}

.img-bandera {
    max-width: 90px;
    float: left;
    margin: 10px;
}

p {
    text-align: justify;
    padding: 10px;
}

.img-mapa {
    max-width: 100%;
    margin: 2em;
}

.img-pueblo {
    max-width: 99%;
    border: 1px inset white;
    border-radius: 4px;
    width: 100%;
}

.img-escudo {
    height: 110px;
    float: right;
    margin: -1.6em 10px 10px 10px;
}

.ul-datos-interes {
    padding: 1em 2em;
    background-color: #eadfc7;
    margin: 1em;
    line-height: 1.6em;
    border-radius: 8px;
}

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

.video-responsive iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}



.listado-municipios {
    text-align: center;
    max-width: 1040px;
    margin: 0 auto;
    padding: 10px;
    border-bottom: 1px inset;
}

.listado-municipios h1 {
    margin: 4px 0 0 0;
    text-align: left;
    font-size: 1.1em;
    padding: 4px 7%;
    color: #047b00;
}

.listado-municipios a {
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 4px 0.8%;
    font-size: 0.9em;
}

.listado-municipios a:active {
    color: #c0392b !important;
    transform: translateY(1px);
}

.listado-municipios a:visited {
    color: rgb(170, 170, 170);
}

.clean {
    clear: both;
}


/* Estilos para el listado con imágenes */
.municipios-con-imagenes {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.municipios-con-imagenes li {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
    font-size: 0.9em;
    border-radius: 4px;
}

.municipios-con-imagenes li:hover {
    transform: translateY(-5px);
}

.municipios-con-imagenes a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    height: 100%;
}

.imagen-municipio {
    width: auto;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.municipios-con-imagenes li a {
    padding: 4px;
    /*! text-align: center; */
    font-weight: bold;
    text-transform: uppercase;
    /*! font-size: 0.9em; */
}

.btn-volver {
    padding: 12px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    border-radius: 4px;
    color: #271801;
    text-align: center;
    border: 1px solid;
    font-size: 1em;
    display: block;
    background: wheat;
    z-index: 1000;
    position: relative;
    width: 94%;
    margin: 0 auto;
    font-weight: bold;
}

.btn-volver:hover {
    color: green;
    font-size: 1.2em;
}