@charset "utf-8";
@charset "UTF-8";

/* ==========================================================================
   Base y Tipografía
   ========================================================================== */
@font-face {
    font-family: "ArialLGT";
    src: url('../css/ArialLGT.eot');
    src: url('../css/ArialLGT.eot?#iefix') format('embedded-opentype'),
         url('../css/ArialLGT.woff2') format('woff2'),
         url('../css/ArialLGT.ttf') format('truetype');
}

body {
    font-family: "Arial", Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    font-family: inherit;
    color: inherit;
}

a:hover {
    font-weight: bold;
}

img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* ==========================================================================
   Encabezado y Logo Adaptable
   ========================================================================== */
.header-top-bar {
    background-image: url(../images/back1.jpg);
    background-repeat: repeat-x;
    height: 7px;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 15px 0;
}

.header-info-box {
    display: inline-block;
    text-align: center;
    margin-top: 10px;
}

.header-street {
    background-color: #006633;
    color: #FFF;
    font-size: 12px;
    padding: 3px 20px;
    display: block;
    margin-bottom: 5px;
}

.header-title {
    font-size: 18px;
    font-weight: bold;
    display: block;
}

.header-subtitle {
    font-size: 14px;
    font-weight: bold;
}

.header-divider {
    background-color: #006633;
    height: 5px;
    width: 100%;
}

/* ==========================================================================
   Menú de Navegación (Flexbox)
   ========================================================================== */
.nav-wrapper {
    background: #727377;
    width: 100%;
    position: relative;
    z-index: 999;
}

.toggleMenu {
    display: none;
    background: #5a5b5e;
    padding: 15px;
    color: #fff;
    font-size: 16px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Centrado en escritorio */
    background: #727377;
    font-size: 13px;
}

.nav > li {
    position: relative;
    text-align: center;
}

.nav a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-transform: uppercase;
}

.nav a:hover, .nav > li:hover > a {
    background: #000; /* Color de hover que tenías en menu1 */
    font-weight: normal; 
}

/* Submenús */
.nav ul {
    position: absolute;
    left: 0;
    top: 100%;
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #727377;
    min-width: 180px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.nav li:hover > ul {
    display: block;
}

.nav ul li {
    border-top: 1px solid #5a5b5e;
}

.nav ul li a {
    padding: 10px 15px;
    text-transform: none;
}

.nav ul li:hover > a {
    background: #000;
}

/* Responsivo para el Menú */
@media screen and (max-width: 900px) {
    .toggleMenu {
        display: block; /* Muestra el botón hamburguesa */
    }
    .nav {
        flex-direction: column;
        display: none; /* Oculto por defecto en móvil */
        width: 100%;
    }
    .nav.active {
        display: flex; /* Se muestra cuando tiene la clase active (vía JS) */
    }
    .nav > li {
        text-align: left;
        border-top: 1px solid #5a5b5e;
    }
    .nav ul {
        position: static;
        display: none;
        box-shadow: none;
        background: #5a5b5e;
        padding-left: 15px; /* Indentación visual para submenús */
    }
}

/* ==========================================================================
   Estructura de Contenido y Tarjetas (Optimizado)
   ========================================================================== */
.content-wrapper {
    background-image: url(../images/backindex.jpg);
    background-repeat: repeat-x;
    padding-bottom: 40px;
}

.toolbar {
    text-align: right;
    padding: 10px 15%;
}

.toolbar img {
    cursor: pointer;
    margin-left: 5px;
}

.section-title {
    color: #006633;
    font-size: 20px;
    font-weight: bold;
    padding-left: 15%;
    margin-bottom: 20px;
    display: block;
}

/* Flexbox para los concejales en lugar de inline-block frágil */
.grid-directorio {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 80%;
    margin: 0 auto 40px auto;
}

.tarjeta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 380px; /* Ajuste para mantener proporciones uniformes */
}

.tarjeta-img {
    flex-shrink: 0;
}

.tarjeta-info {
    font-size: 12px;
    text-align: left;
    line-height: 1.4;
}

/* Footer */
.footer-banner {
    width: 100%;
    background-image: url(../images/back4.jpg);
    background-repeat: repeat;
    min-height: 124px;
    display: flex;
    justify-content: flex-end;
}

.footer-logo-text {
    background-image: url(../images/logo2.png);
    background-repeat: no-repeat;
    background-position: right;
    padding: 15px 150px 0 0;
    margin-right: 10%;
    text-align: right;
    height: 104px;
}

.footer-copy {
    width: 100%;
    text-align: center;
    background-image: url(../images/back5.jpg);
    color: #FFF;
    font-size: 12px;
    padding: 10px 0;
}