* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* ============================================
   MARQUESINA
   ============================================ */
.marquee-container {
    background: #009dff;
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 20s linear infinite;
    white-space: nowrap;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ============================================
   HEADER CON LOGO Y MENÚ
   ============================================ */
header {
    background-color: white;
    padding: 15px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.municipality-name {
    display: flex;
    flex-direction: column;
}

.municipality-name h1 {
    font-size: 22px;
    color: #009dff;
    margin: 0;
}
nav a:last-child {
    border-right: none;
}

.municipality-name p {
    font-size: 11px;
    color: #009dff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 2px 0 0 0;
}

.nav {
    display: flex;
    gap: 0px;
}

nav a {
    border-right: 3px solid #fff;
    background-clip: padding-box;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    background: #009dff;
    color: #fff !important;
    border-radius: 10px;
    padding: 14px 28px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
nav a:hover {
    background: #009dff;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
/*    text-transform: uppercase; */
    letter-spacing: 0.5px;
}

/* ============================================
   SUBMENÚ DESPLEGABLE
   ============================================ */
.menu-item {
    position: relative;
    display: inline-block;
}

.menu-item > a {
    color: #fff !important;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    background: #009dff;
    border-radius: 10px;
    padding: 14px 28px;
    margin: 0;
    transition: background 0.2s, color 0.2s; 
    display: inline-block;
/*    text-transform: uppercase; */
}

.menu-item > a:hover {
    color: #009dff;
}

.submenu {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    background-color: #009dff;
    border: 1px solid #44444400;
    border-radius: 4px;
    box-shadow: 0 4px 12px #000000;
    display: none;
    flex-direction: column;
    min-width: 200px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.menu-item:hover .submenu {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    margin-top: 0;
}

.submenu a {
    padding: 12px 20px;
    color: #009dff;
    text-decoration: none;
    font-size: 18px;
    background: #009dff;
    border-radius: 0;
    padding: 12px 20px;
    margin: 0;
    transition: background 0.2s, color 0.2s;
    display: block;
    font-weight: 500;
/*    text-transform: uppercase; */
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.submenu a:first-child {
    border-radius: 4px 4px 0 0;
}

.submenu a:last-child {
    border-radius: 0 0 4px 4px;
}

.submenu a:hover {
    background-color: #76caff;
    color: #009dff;
}

/* ============================================
   SLIDER
   ============================================ */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 40px auto;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider {
    position: relative;
    width: 100%;
    height: 720px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #00000000;
    color: #00000070;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-button:hover {
    background-color: #00000080;
}

.slider-button.prev {
    left: 20px;
}

.slider-button.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

/* ============================================
   SECCIÓN DE SERVICIOS/ICONOS
   ============================================ */
.services-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: auto;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.service-icon img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.service-card h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.service-button {
    display: inline-block;
    background: linear-gradient(90deg, #009dff, #009dff);
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.service-button:hover {
    background: #009dff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px #003f67;
}

.service-button:active {
    transform: scale(0.98);
}

/* ============================================
   BOTONES PERSONALIZADOS
   ============================================ */
.custom-button {
    display: inline-block;
    background: #009dff;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 5px;
    margin: 10px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.custom-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px #003f67;
}

.custom-button:active {
    transform: scale(0.98);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .slider {
        height: 200px;
    }

    .marquee-text {
        font-size: 12px;
    }

    .municipality-name h1 {
        font-size: 18px;
    }

    nav a {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 20px;
    }

    nav {
        gap: 5px;
    }

    nav a {
        font-size: 10px;
    }

    .logo {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .municipality-name h1 {
        font-size: 16px;
    }

    .services-container {
        padding: 0 20px;
    }

    .slider-button {
        padding: 12px 16px;
        font-size: 20px;
    }
}

/* ============================================
   INDEX
   ============================================ */

.footer-social {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}
.footer-social a img {
    width: 32px;
    height: 32px;
    display: block;
}
.footer {
    background: #009dff;
    color: white;
    padding: 60px 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}
.footer-section {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}
.footer-section h4 {
    font-weight: 300;
    margin-bottom: 15px;
}
.footer-section p, .footer-section a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}
.footer-logo {
    text-align: center;
}
.footer-logo img {
    width: 80%;
    max-width: 200px;
}
.footer-social a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
}
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: center;
        padding: 30px 2%;
    }
    .footer-section {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .footer-logo img {
        max-width: 150px;
    }
}

/* ============================================
   Departamento Ejecutivo
   ============================================ */

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
}
.header-banner-DEM {
    width: 100%;
    height: 400px;
    background: url('../imagen/Capilla-del-monte-Municipalidad.jpg') center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.header-banner-DEM::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}
.header-banner-DEM h1 {
    color: white;
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.nav-back {
    background: #009dff;
    padding: 15px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
}
.nav-back a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nav-back a:hover {
    text-decoration: underline;
}
.linea-decorativa {
    text-align: center;
    margin: -20px 0 60px;
}
.linea-decorativa img {
    width: 50%;
    max-width: 600px;
}
.team-section {
    padding: 0 5% 40px;
}
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}
.team-member {
    text-align: center;
    width: 210px;
    transition: transform 0.3s ease;
}
.team-member:hover {
    transform: scale(1.1);
}
.team-member img {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #009dff;
}
.team-member h3 {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin: 15px 0 5px;
    text-transform: uppercase;
}
.team-member p {
    color: #666;
    font-size: 14px;
    margin: 0;
}
.team-member .social-icons {
    margin-top: 10px;
}
.team-member .social-icons a {
    color: #009dff;
    font-size: 18px;
    margin: 0 5px;
    text-decoration: none;
}
.team-member .social-icons a:hover {
    color: #4AA168;
}
@media (max-width: 768px) {
    .header-banner {
        height: 250px;
    }
    .header-banner-DEM h1 {
        font-size: 24px;
        padding: 0 20px;
    }
    .team-grid {
        gap: 20px;
    }
    .team-member {
        width: 150px;
    }
    .team-member img {
        width: 150px;
        height: 150px;
    }
}

/* ============================================
   Concejo Deliberante
   ============================================ */

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
}
.header-banner-CD {
    width: 100%;
    height: 400px;
    background: url('../imagen/Capilla-del-monte-DiqueElCajon-1024x320-1.jpg') center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.header-banner-CD::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}
.header-banner-CD h1 {
    color: white;
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.nav-back {
                background: #009dff;
                padding: 15px;
                text-align: center;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                z-index: 1000;
    background: #009dff;
    padding: 15px;
    text-align: center;
}
.nav-back a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nav-back a:hover {
    text-decoration: underline;
}
.linea-decorativa {
    text-align: center;
    margin: -20px 0 60px;
}
.linea-decorativa img {
    width: 50%;
    max-width: 600px;
}
.content-section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.content-section h2 {
    color: #009dff;
    text-align: center;
    margin-bottom: 30px;
}
.content-section p {
    text-align: center;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}
.info-box {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    margin: 50px 0;
    text-align: center;
}
.info-box h3 {
    color: #009dff;
    margin-bottom: 15px;
}
/* Estilos para la tabla de concejales */
.concejales-container {
    max-width: 900px;
    margin: 0 auto 40px;
}
.concejal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}
.concejal-row:nth-child(odd) {
    background: #f9f9f9;
}
.concejal-row:first-child {
    background: #009dff;
    color: white;
    font-weight: 600;
    border-radius: 10px 10px 0 0;
}
.concejal-row:last-child {
    border-radius: 0 0 10px 10px;
    border-bottom: none;
}
.concejal-cargo {
    flex: 1;
    font-weight: 500;
    color: #333;
}
.concejal-nombre {
    flex: 1.5;
    text-align: center;
    color: #444;
}
.concejal-bloque {
    flex: 1;
    text-align: right;
    color: #666;
    font-size: 14px;
}
.concejal-row:first-child .concejal-cargo,
.concejal-row:first-child .concejal-nombre,
.concejal-row:first-child .concejal-bloque {
    color: white;
}
.secretarios-section {
    background: #e8f4fc;
    padding: 25px;
    border-radius: 10px;
    margin: 30px auto;
    max-width: 600px;
    text-align: center;
}
.secretarios-section h3 {
    color: #009dff;
    margin-bottom: 15px;
}
.secretarios-section p {
    margin: 10px 0;
    color: #444;
}
.bloques-legend {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}
.bloques-legend strong {
    color: #009dff;
}
@media (max-width: 768px) {
    .header-banner-CD {
        height: 250px;
    }
    .header-banner-CD h1 {
        font-size: 24px;
        padding: 0 20px;
    }
    .concejal-row {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    .concejal-cargo, .concejal-nombre, .concejal-bloque {
        text-align: center !important;
    }
}


/* ============================================
   Tribunal de cuentas
   ============================================ */

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
}
.header-banner-TC {
    width: 100%;
    height: 400px;
    background: url('../imagen/Capilla-del-monte-uritorco.jpg') center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.header-banner-TC::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}
.header-banner-TC h1 {
    color: white;
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.nav-back {
    background: #009dff;
    padding: 15px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #009dff;
    padding: 15px;
    text-align: center;
}
.nav-back a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nav-back a:hover {
    text-decoration: underline;
}
.linea-decorativa {
    text-align: center;
    margin: -20px 0 60px;
}
.linea-decorativa img {
    width: 50%;
    max-width: 600px;
}
.content-section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.content-section h2 {
    color: #009dff;
    text-align: center;
    margin-bottom: 30px;
}
.content-section p {
    text-align: center;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}
.info-box {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    margin: 50px 0;
    text-align: center;
}
.info-box h3 {
    color: #009dff;
    margin-bottom: 15px;
}
.footer {
    background: #009dff;
    color: white;
    padding: 60px 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}
@media (max-width: 768px) {
    .header-banner {
        height: 250px;
    }
    .header-banner h1 {
        font-size: 24px;
        padding: 0 20px;
    }
}

/* ============================================
   Hospital Municipal
   ============================================ */

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
}
.header-banner-HOSPITAL {
    width: 100%;
    height: 400px;
    background: url('../imagen/hospital-capilla-del-monte.jpg') center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.header-banner-HOSPITAL::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}
.header-banner-HOSPITAL h1 {
    color: white;
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.nav-back {
    background: #009dff;
    padding: 15px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #009dff;
    padding: 15px;
    text-align: center;
}
.nav-back a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nav-back a:hover {
    text-decoration: underline;
}
.linea-decorativa {
    text-align: center;
    margin: -20px 0 60px;
}
.linea-decorativa img {
    width: 50%;
    max-width: 600px;
}
.content-section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.content-section h2 {
    color: #009dff;
    text-align: center;
    margin-bottom: 30px;
}
.content-section p {
    text-align: center;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}
.info-box {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    margin: 50px 0;
    text-align: center;
}
.info-box h3 {
    color: #009dff;
    margin-bottom: 15px;
}
.info-box p {
    margin: 10px 0;
}
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.servicio-card {
    background: #e8f4fc;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}
.servicio-card:hover {
    transform: translateY(-5px);
}
.servicio-card i {
    font-size: 40px;
    color: #009dff;
    margin-bottom: 15px;
}
.servicio-card h4 {
    color: #333;
    margin-bottom: 10px;
}
.servicio-card p {
    color: #666;
    font-size: 14px;
}
.emergencia-box {
    background: #dc3545;
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 50px 0;
}
.emergencia-box h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 24px;
}
.emergencia-box .telefono {
    font-size: 36px;
    font-weight: bold;
    margin: 15px 0;
}
.emergencia-box p {
    color: white;
}
.horarios-table {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-collapse: collapse;
}
.horarios-table th, .horarios-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.horarios-table th {
    background: #009dff;
    color: white;
}
.horarios-table tr:nth-child(even) {
    background: #f9f9f9;
}

@media (max-width: 768px) {
    .header-banner-HOSPITAL {
        height: 250px;
    }
    .header-banner-HOSPITAL h1 {
        font-size: 24px;
        padding: 0 20px;
    }
    .emergencia-box .telefono {
        font-size: 28px;
    }
}

/* ============================================
   Sección Subastas
   ============================================ */
.header-subastas {
    width: 100%;
    height: 400px;
    color:#009dff
/*      background: url('../imagen/Capilla-del-monte-Municipalidad.jpg') center center no-repeat; */
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}