/* ========================================
   ESTILOS BASE Y GENERALES
======================================== */

/* Importación de fuentes y configuración base */
html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: #1f1f1f;
    /* Patrón de puntos de fondo */
    background-image: 
        radial-gradient(rgba(179, 84, 227, 0.18) 2px, transparent 2px), 
        radial-gradient(rgba(179, 84, 227, 0.18) 2px, transparent 2px);
    background-size: 44px 44px;
    background-position: 0 0, 22px 22px;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}


img,
video {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

/* Tipografía y espaciados consistentes */
h1, h2, h3 {
    font-weight: 700;
    margin: 0 0 16px;
}

p {
    margin: 0 0 14px;
}

.containe, .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-footer-gap {
    padding-bottom: 60px;
    margin-bottom: 30px;
}

.page-footer-gap + #app-footer {
    margin-top: 30px;
    display: block;
}

/* Botones y links: estados hover/focus accesibles */
a, button {
    transition: all 0.2s ease;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(231, 34, 133, 0.6);
    outline-offset: 2px;
}

.boton,
.btn,
button {
    border-radius: 10px;
}

.boton:hover,
.btn:hover {
    filter: brightness(1.05);
}

/* ========================================
   ENCABEZADO (HEADER)
======================================== */

.encabezado {
    width: 100%;
    background: linear-gradient(90deg, rgba(231,34,133,1) 0%, rgba(71,12,157,1) 70%);
    font-weight: 300;
    font-style: normal;
    padding: 0;
}

/* Sección inferior del header con fondo blanco */
header .abajo {
    background: white;
    padding: 15px 20px;
    width: 100%;
    overflow: hidden;
}

/* Contenedor de logos en el header */
.encabezado .grupo-0 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 30px 20px;
    align-items: flex-start;
    justify-items: center;
}

.encabezado .grupo-0 .box-0 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.encabezado .grupo-0 .box-0 figure {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.encabezado .grupo-0 .box-0 figure img {
    width: 130px;
    max-width: 90%;
    height: auto;
    object-fit: contain;
}

/* ========================================
   CARRUSEL DE IMÁGENES (MEJORADO)
======================================== */

.carrusel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.carrusel.carrusel-home {
    max-width: 1400px;
    margin-bottom: 40px;
    border-radius: 10px;
}

.carrusel.carrusel-home > .container {
    max-width: 100%;
    padding: 0;
}

.carousel-item {
    width: 100%;
    height: clamp(260px, 45vw, 480px); /* altura ajustada para hero más equilibrado */
    overflow: hidden;
    position: relative;
}

.carrusel-home .carousel-item {
    height: clamp(320px, 52vw, 620px);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    /* Cambiamos object-fit para mejor visualización */
    object-fit: contain; /* Mantiene toda la imagen visible */
    object-position: center;
    display: block;
    background-color: #f8f9fa; /* Color de fondo por si la imagen no llena todo el espacio */
    
    /* Alternativa: si prefieres que llene todo el espacio aunque se corte un poco */
    /* object-fit: cover; */
}

/* ========================================
   ACCESOS RÁPIDOS
======================================== */

.Accesosrapidos {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-style: normal;
    padding: 0 10px;
}

/* Contenedor de botones de accesos rápidos */
.containerBtn {
    display: grid;
    place-content: center;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

/* Estilos de botones de accesos rápidos */
.containerBtn button,
.containerBtn .btn-purple {
    background-color: white;
    border: 2px solid rgba(185, 32, 185, 0.4);
    border-radius: 14px;
    cursor: pointer;
    padding: 1.4rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--neutral-700);
    transition: all 0.3s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    text-decoration: none;

}

/* Contenedor de iconos dentro de los botones */
.containerBtn .icono {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
    color: rgb(203, 26, 209);
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.3;
    text-align: center;
}

.containerBtn .icono img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Efectos hover para botones */
.containerBtn .btn-purple {
    border-color: rgb(185, 32, 185);
    transition: box-shadow 0.2s ease-in-out;
}

.containerBtn .btn-purple:hover {
    box-shadow: 0 0 40px rgb(185, 32, 185) inset;
    transform: translateY(-2px);
}

.containerBtn .btn-purple:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(185, 32, 185, 0.35);
}

/* Modo oscuro para accesos rápidos */
.dark-mode .containerBtn button,
.dark-mode .containerBtn .btn-purple {
    background: #181a2f;
    border-color: rgba(255,255,255,0.06);
    color: #e8e8ef;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
    text-decoration: none;

}

.dark-mode .containerBtn button::before,
.dark-mode .containerBtn .btn-purple::before {
    background: linear-gradient(90deg, rgba(231,34,133,0.8), rgba(71,12,157,0.8));
}

.dark-mode .containerBtn .icono {
    color: #d9d9f5;
}


.dark-mode .containerBtn .icono img {
    filter: brightness(0) invert(1);
}

.dark-mode .info-card .icon {
    background: linear-gradient(135deg, rgba(231,34,133,0.3), rgba(71,12,157,0.3));
    color: #ffe7ff;
}

/* ========================================
   FOOTER (PIE DE PÁGINA)
======================================== */

.pie-pagina {
    width: 100%;
    background: linear-gradient(90deg, rgba(231,34,133,1) 0%, rgba(71,12,157,1) 70%);
    margin-top: auto;
    border-top: 4px solid rgba(255,255,255,0.1);
}

/* Sección principal del footer */
.pie-pagina .grupo-1 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    align-items: start;
}

.pie-pagina .grupo-1 .box {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pie-pagina .grupo-1 .box figure {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.pie-pagina .grupo-1 .box figure img {
    width: 130px;
    max-width: 90%;
    height: auto;
    object-fit: contain;
}

.pie-pagina .grupo-1 .box h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 20px;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-style: normal;
}

.pie-pagina .grupo-1 .box p {
    color: #efefef;
    margin-bottom: 10px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    font-size: 14px;
}

.pie-pagina .grupo-1 .box .alcaldesa {
    width: 150px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Redes sociales en el footer */
.pie-pagina .grupo-1 .red-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.pie-pagina .grupo-1 .red-social a img {
    width: 28px;
    height: 28px;
    transition: all 300ms ease;
    border-radius: 0;
    object-fit: contain;
}

.pie-pagina .grupo-1 .red-social a:hover img {
    transform: scale(1.1);
}

/* Sección de copyright del footer */
.pie-pagina .grupo-2 {
    background: linear-gradient(90deg, rgba(231,34,133,1) 0%, rgba(71,12,157,1) 70%);
    padding: 15px 20px;
    text-align: center;
    color: #fff;
}

.pie-pagina .grupo-2 small {
    font-size: 15px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
}

/* ========================================
   BOTÓN DE SCROLL HACIA ARRIBA
======================================== */

#scrollBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    border: none;
    outline: none;
    background: linear-gradient(90deg, rgba(231,34,133,1) 0%, rgba(71,12,157,1) 100%);
    cursor: pointer;
    color: #fff;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

#scrollBtn:hover {
    background: linear-gradient(90deg, rgb(160, 24, 92) 0%, rgb(46, 8, 102) 100%);
    transform: translateY(-2px);
}

svg {
    width: 25px;
    height: 25px;
}

/* ========================================
   NOTICIAS
======================================== */

/* Contenedor principal de noticias */
#noti {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
    margin: 20px 0px;
}

/* Tarjetas individuales de noticias */
.noti-box {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.noti-box.noti-collage {
    margin-top: 12px;
}

.noti-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.15);
}

/* Contenedor de imagen de noticia */
.noti-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6fb;
}

.noti-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.noti-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #000000;
    pointer-events: none;
}

.noti-media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eef1f8 0%, #e2e8f0 100%);
}

/* Fecha en esquina de la imagen */
.noti-date {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

/* Contenido de texto de las noticias */
.noti-text {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-style: normal;
    flex: 1;
    align-items: stretch;
    text-align: left;
}

.noti-text span {
    color: gray;
    font-size: 0.9rem;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.noti-text .noti-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #0f0f0f;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-style: normal;
    text-align: center;
    display: block;
    margin-left: 0;
    margin-right: 0;
}

.noti-text .noti-title:hover {
    color: rgba(183, 0, 255, 0.7);
    transition: all ease 0.3s;
}

.noti-text p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 24px 0px 18px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
    text-align: left;
    margin-left: 0;
    padding-left: 0;
    text-indent: 0;
    width: 100%;
}

.noti-text a {
    color: #0f0f0f;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-style: normal;
}

.noti-text a:hover {
    color: rgba(183, 0, 255, 0.7);
    transition: all ease 0.3s;
}

.noticia-detail {
    max-width: 900px;
    margin: 30px auto 0;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.noticia-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin: 0;
}

.noticia-cover-wrap {
    position: relative;
    padding-bottom: 18px;
}

.noticia-fecha-badge {
    position: absolute;
    right: 16px;
    bottom: 0;
    background: rgba(0, 0, 0, 0.78);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    z-index: 2;
}

.noticia-fecha-badge:empty {
    display: none;
}

.noticia-carousel-wrap {
    width: 100%;
}

.noticia-cover,
.noticia-carousel img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    object-position: top center;
    max-height: 560px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.noticia-cover-video {
    display: block;
    width: 100%;
    border-radius: 18px;
    max-height: 560px;
    background: #000000;
    pointer-events: none;
    object-fit: cover;
    object-position: center;
}

.noticia-cover:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
}

.noticia-cover-media {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
}

.noticia-cover-video:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
}

.noticia-cover-media:hover .noticia-cover-video {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
}

.media-video-icon {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}

.media-video-icon i {
    font-size: 18px;
    line-height: 1;
}

.noticia-carousel .carousel-inner {
    border-radius: 18px;
    overflow: hidden;
}

.noticia-carousel .carousel-control-prev,
.noticia-carousel .carousel-control-next {
    width: 46px;
}

.noticia-fecha {
    color: #6b7280;
    margin: 6px 0 0;
}

.noticia-body {
    color: #1f2937;
    line-height: 1.7;
    font-size: 1rem;
}

.noticia-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    background: #ffffff;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.noticia-gallery:empty {
    display: none;
}

.noticia-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    border: 3px solid #e5e7eb;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.noticia-gallery img:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.15);
}

.noticia-media {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 12px;
    border: 3px solid #e5e7eb;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.noticia-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #000000;
    pointer-events: none;
}

.noticia-media:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.15);
}

.noticia-media .media-video-icon {
    right: 10px;
    bottom: 10px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 14px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 16px;
    animation: lightboxFade 0.2s ease;
}

.dark-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.lightbox .lightbox-card {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    padding: 0;
    border-radius: 16px;
    display: grid;
    place-items: center;
    gap: 12px;
}

.lightbox #newsLightboxImage {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.lightbox #newsLightboxVideo {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    background: #000000;
    display: none;
}

.lightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.lightbox .lightbox-nav i {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.lightbox .lightbox-nav.prev { left: -52px; }
.lightbox .lightbox-nav.next { right: -52px; }

.lightbox .close-btn {
    position: absolute;
    top: -32px;
    right: -32px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.lightbox .close-btn img {
    filter: invert(1);
    width: 20px;
    height: 20px;
}

.lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
}

.dark-mode .noticia-gallery {
    background: #1c1726;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.dark-mode .noticia-gallery img {
    border-color: #ffffff;
    background: #1c1726;
}

.dark-mode .noticia-media {
    border-color: #ffffff;
    background: #1c1726;
}

.dark-mode .noticia-detail {
    background: #181a2f;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.dark-mode .noticia-fecha,
.dark-mode .noticia-fecha-badge {
    color: rgba(232, 232, 239, 0.7);
}

.dark-mode .noticia-body {
    color: #e8e8ef;
}

.dark-mode .noticia-back {
    color: #e8e8ef;
}

@keyframes lightboxFade {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 720px) {
    .lightbox .lightbox-nav.prev { left: 8px; }
    .lightbox .lightbox-nav.next { right: 8px; }
    .lightbox .close-btn { top: 8px; right: 8px; }
}

.noticia-body p {
    margin-bottom: 14px;
}

.noticia-back {
    align-self: flex-start;
    text-decoration: none;
    font-weight: 600;
    color: #0f0f0f;
}

.noticia-back:hover {
    color: rgba(183, 0, 255, 0.7);
}

.dark-mode .noti-text .noti-title {
    color: #f5f5f7;
}

.dark-mode .noti-text p {
    color: rgba(232, 232, 239, 0.82);
}

.dark-mode .noti-text a {
    color: #f5f5f7;
}

.dark-mode .noti-date {
    background: rgba(255, 255, 255, 0.9);
    color: #0f0f0f;
}

.noti-readmore {
    margin-top: auto;
    padding-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    align-self: flex-end;
}

.state {
    text-align: center;
    color: #6b7280;
    padding: 16px;
}

#noti .state {
    grid-column: 1 / -1;
}

.noticias-grid-wrap {
    background: #ffffff;
    padding: 24px;
    border-radius: 26px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.noticias-grid-wrap .noti-text,
.noticias-grid-wrap .noti-text p {
    text-align: left;
}

.noticias-grid-wrap .noti-text p {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    align-self: stretch;
}

.dark-mode .noticias-grid-wrap {
    background: #1c1726;
}

.news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 8px;
    flex-wrap: wrap;
}

.news-page-btn {
    border: none;
    background: #ffffff;
    color: #2f0a6d;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-page-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.18);
}

.news-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.news-page-btn.is-active {
    background: linear-gradient(90deg, #e72285 0%, #470c9d 70%);
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(71, 12, 157, 0.25);
}

.dark-mode .news-page-btn {
    background: #1f2137;
    color: #e8e8ef;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.dark-mode .news-page-btn.is-active {
    background: linear-gradient(90deg, rgba(231,34,133,0.9) 0%, rgba(71,12,157,0.9) 70%);
    color: #ffffff;
}

@media (max-width: 1100px) {
    #noti {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    #noti {
        grid-template-columns: 1fr;
    }

    .noti-box.noti-collage {
        margin-top: 0;
    }
}

.home-news {
    margin: 10px 0 30px;
    position: relative;
}

.home-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.home-news-head h1 {
    flex: 1;
    text-align: center;
    margin: 0;
}

.home-news-nav {
    position: absolute;
    top: 50%;
    left: 300px;
    right: 300px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.news-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    color: #2f0a6d;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
}

.news-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 26px rgba(15, 23, 42, 0.18);
}

.home-news-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 40px 18px;
    scroll-snap-type: x mandatory;
}

.noticia-video video {
    width: 100%;
    max-height: 520px;
    border-radius: 16px;
    background: #0f0f0f;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.dark-mode .noticia-video video {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.home-news-cta {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.home-news-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(231,34,133,0.9) 0%, rgba(71,12,157,0.9) 70%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(71, 12, 157, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-news-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(71, 12, 157, 0.28);
}

.home-news-track::-webkit-scrollbar {
    height: 8px;
}

.home-news-track::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 999px;
}

.home-news-track .noti-box {
    flex: 0 0 320px;
    margin: 0;
    scroll-snap-align: start;
}

.home-news-track .noti-img {
    height: 180px;
}

.home-news-track .noti-text {
    padding: 16px 18px 20px;
}

.home-news-track .noti-text .noti-title {
    text-align: left;
    font-size: 1.05rem;
}

.home-news-track .noti-text p {
    -webkit-line-clamp: 2;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 10px 0 12px;
    text-align: left;
}

.home-news-track .noti-readmore {
    align-self: flex-end;
}

.dark-mode .home-page .home-news .containe {
    background: #181a2f;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.dark-mode .news-nav-btn {
    background: #1f2137;
    color: #f5f5f7;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.dark-mode .news-nav-btn:hover {
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.45);
}

.dark-mode .home-news-track::-webkit-scrollbar {
    background: rgba(255, 255, 255, 0.08);
}

.dark-mode .home-news-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.dark-mode .home-news-link {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.home-page .home-news .containe {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.home-page .redes-container {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.home-page .galeria {
    max-width: 1200px;
    margin: 30px auto 10px;
    padding: 10px 0 20px;
}

.home-page .linea {
    height: 4px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(231,34,133,0.7) 0%, rgba(71,12,157,0.7) 100%);
}

.home-page .Accesosrapidos {
    margin: 50px 0 30px;
}

.home-page .mapa {
    border-radius: 22px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.dark-mode .home-page .home-news .containe {
    background: #181a2f;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.dark-mode .home-page .redes-container {
    background: #181a2f;
    border-color: rgba(255, 255, 255, 0.08);
}

/* ========================================
   CONCEJO MUNICIPAL (CARRUSEL DE MIEMBROS)
======================================== */

.concejo-centro {
    min-height: 50vh; /* Altura mínima de la sección */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Espaciado interno */
    overflow: visible;
}

/* Contenedor del slider */
.swiper {
    width: 100%;
    max-width: 1200px; /* Alinea con el ancho del hero */
    padding: 40px 0;
    position: relative;
    overflow: visible;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Contenedor interno de las tarjetas */
.swiper-wrapper {
    /* Swiper maneja el display: flex internamente */
    transition: transform 0.3s ease-in-out;
    align-items: stretch;
}

/* Cada tarjeta deslizable */
.swiper-slide {
    /* No se necesita flex-shrink ni width fijo: Swiper lo gestiona */
    height: auto;
    display: flex;
    justify-content: stretch;
    overflow: visible;
    z-index: 1;
}

.swiper-slide:hover {
    z-index: 2;
}

/* Tarjeta individual */
.concejo-centro .card {
    width: 100%;
    max-width: 100%;
    border-radius: 25px;
    background-color: white;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Efecto al pasar el mouse */
.card:hover {
    transform: translateY(-10px);
}

/* Contenedor de la imagen y fondo degradado */
.image-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 14px 10px;
}

/* Contenido textual de la tarjeta */
.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 14px 50px;
}

/* Fondo degradado decorativo */
.overlay-carrusel {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(231,34,133,1) 0%, rgba(71,12,157,1) 100%);
    border-radius: 25px 25px 0 25px;
}

/* Esquinas decorativas en el degradado */
.overlay-carrusel::before,
.overlay-carrusel::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -40px;
    height: 40px;
    width: 40px;
    background: rgba(71,12,157,1);
}

.overlay-carrusel::after {
    border-radius: 0 25px 0 0;
    background: white;
}
/* Imagen circular del concejal */
.card-image {
    position: relative;
    height: 150px;
    width: 150px;
    border-radius: 50%;
    padding: 3px;
    z-index: 1;
}

.card-image .card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
}

/* Nombre del concejal */
.name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-family: "Poppins", sans-serif;
    text-align: center;
    margin: 10px 0 5px;
}

/* Descripción del concejal */
.description {
    font-size: 14px;
    color: #707070;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    margin: 0;
}

/* Botones de navegación (izquierda y derecha) */
.swiper-button-next,
.swiper-button-prev {
    color: rgba(71,12,157,1);
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-button-prev {
    left: -45px;
}

.swiper-button-next {
    right: -45px;
}

/* Paginación de los puntos inferiores */
.swiper-pagination-bullet {
    background: rgba(71,12,157,0.3);
}

.swiper-pagination-bullet-active {
    background: rgba(71,12,157,1);
}

/* ========================================
   GALERÍA DE IMÁGENES
======================================== */

.galeria h1 {
    text-align: center;
    margin: 20px 0 15px 0;
    font-weight: 300;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-style: normal;
}

.titulo {
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-style: normal;
}

.linea {
    border-top: 5px linear-gradient(90deg, rgba(231,34,133,1) 0%, rgba(71,12,157,1) 100%);
    margin-top: 20px;
}

/* Contenedor principal de la galería */
.contenedor-imagenes {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.contenedor-imagenes .imagen {
    flex: 1 1 250px;
    max-width: 280px;
    position: relative;
    height: 240px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #f0f0f0;
}

/* Overlay para las imágenes de la galería */
.overla {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(231, 34, 132, 0.7) 0%, rgba(70, 12, 157, 0.7) 100%);
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: .5s ease;
}

.overla h2 {
    color: #fff;
    font-weight: 300;
    font-size: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-style: normal;
}

.imagen:hover .overla {
    height: 100%;
    cursor: pointer;
}

/* ========================================
   ÁLBUM DE VETERINARIA
======================================== */

.album1 {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 250px;
    grid-gap: 20px;
    padding: 100px 0;
}

.box1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box1:nth-child(1) {
    grid-column-start: span 2;
}

.box1:nth-child(4) {
    grid-column-start: span 2;
}

/* ========================================
   BOTONES ESPECIALES
======================================== */

.containe h1 {
    text-align: center;
    margin: 20px 0 15px 0;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    font-style: normal;
}

.containe p {
    text-align: center;
    margin: 0 100px 0 100px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Botón con efecto especial */
.boton {
    width: 170px;
    height: 50px;
    text-decoration: none;
    text-align: center;
    position: relative;
    font-size: 1rem;
    margin: 5px;
    color: white;
    border-radius: 40px;
    box-shadow: 0 0 0 0 rgba(145, 64, 248, 0.5), 0 0 0 0 rgba(39, 200, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    overflow: hidden;
}

.boton::after {
    content: "";
    width: 200px;
    height: 200px;
    position: absolute;
    top: -50px;
    left: -10px;
    background: #13ff13;
    background-image: linear-gradient(-225deg, #231557 0%, #44107A 29%, #FF1361 67%, #FFF800 100%);
    z-index: -1;
    transition: transform 0.5s ease;
}

.boton:hover {
    transform: translate(0, -6px);
    box-shadow: 10px -10px 25px 0 rgba(16, 226, 253, 0.5), -10px 10px 25px 0 rgba(183, 0, 255, 0.7);
}

.boton:hover::after {
    transform: rotate(150deg);
}

/* ========================================
   TRÁMITES EN LÍNEA
======================================== */

.cuerpo {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

/* Contenedor de tarjetas de departamentos */
.tarjetasdep {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

/* Tarjetas de departamentos */
.tarjet {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tarjet:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.tarjet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.text_tarjet {
    padding: 25px;
    text-align: center;
    width: 100%;
}

.title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text_tarjet a {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 20px;
    border: 2px solid #667eea;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.text_tarjet a:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

/* ========================================
   MODAL PARA DOCUMENTOS
======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    transform: translateY(-50%) scale(1.2);
    opacity: 0.8;
}

.modal-body {
    padding: 25px;
}


img,
video {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

.dark-mode .modal {
    background-color: rgba(0, 0, 0, 0.6);
}

.dark-mode .modal-content {
    background: #1c1f33;
    color: #e8e8ef;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.dark-mode .modal-header {
    background: linear-gradient(135deg, rgba(231,34,133,0.9), rgba(71,12,157,0.9));
    color: #fff;
}

.dark-mode .modal-body {
    background: #1c1f33;
    color: #e8e8ef;
}


img,
video {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

.dark-mode .close {
    color: #fff;
}

/* Lista de documentos en el modal */
.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.document-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.document-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.document-link:hover {
    color: #764ba2;
}

.document-icon {
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* ========================================
   FORMULARIO SECRETARÍA MUNICIPAL (MODAL)
======================================== */

.secretaria-form {
    margin-top: 10px;
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(231,34,133,0.08) 0%, rgba(71,12,157,0.08) 100%);
    border: 1px solid rgba(71,12,157,0.12);
}

.secretaria-form .secretaria-header h3 {
    margin: 0 0 6px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a0d9d;
}

.secretaria-form .secretaria-header p {
    margin: 0 0 14px 0;
    color: #4f4f4f;
    font-size: 0.95rem;
}

.secretaria-form form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #2f2f2f;
    font-weight: 600;
    font-size: 0.95rem;
}

.secretaria-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.secretaria-form input,
.secretaria-form select,
.secretaria-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(71,12,157,0.25);
    background: #ffffff;
    color: #1b1b1b;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.secretaria-form input:focus,
.secretaria-form select:focus,
.secretaria-form textarea:focus {
    border-color: rgba(231,34,133,0.8);
    box-shadow: 0 0 0 3px rgba(231,34,133,0.12);
}

.secretaria-form select option[disabled][selected] {
    color: #888;
}

.secretaria-form textarea {
    resize: vertical;
}

.step-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

.btn-primary,
.btn-secondary {
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(90deg, rgba(231,34,133,1) 0%, rgba(71,12,157,1) 100%);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f1ecfb;
    color: #4a0d9d;
}

.btn-secondary:hover {
    background: #e8e1f9;
    transform: translateY(-1px);
}

.form-feedback {
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-feedback.sending {
    color: #cf7c00;
}

.form-feedback.success {
    color: #1b8a4a;
}

.form-feedback.error {
    color: #c62828;
}

.dark-mode .secretaria-form {
    background: #1d2036;
    border-color: rgba(255,255,255,0.1);
}

.dark-mode .secretaria-form .secretaria-header h3 {
    color: #e9e6ff;
}

.dark-mode .secretaria-form .secretaria-header p {
    color: #cfd2df;
}

.dark-mode .secretaria-form form label {
    color: #e9e9e9;
}

.dark-mode .secretaria-form input,
.dark-mode .secretaria-form select,
.dark-mode .secretaria-form textarea {
    background: #121429;
    color: #f6f6f6;
    border-color: rgba(255,255,255,0.16);
}

.dark-mode .secretaria-form input:focus,
.dark-mode .secretaria-form select:focus,
.dark-mode .secretaria-form textarea:focus {
    border-color: rgba(231,34,133,0.8);
    box-shadow: 0 0 0 3px rgba(231,34,133,0.2);
}

.dark-mode .btn-secondary {
    background: #272a42;
    color: #f6f6f6;
}
.dark-mode .document-item {
    background: #1f2137;
    border-left-color: rgba(231,34,133,0.8);
}

.dark-mode .document-item:hover {
    background: #242742;
}

.dark-mode .document-link {
    color: #d9d9f5;
}

.dark-mode .document-link:hover {
    color: #ffffff;
}

.dark-mode .document-icon {
    background: rgba(231,34,133,0.85);
    color: #fff;
}

/* ========================================
   GUÍA TELEFÓNICA FLOTANTE
======================================== */

/* Botón flotante para abrir la guía */
.floating-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: clamp(48px, 5vw, 64px);
    height: clamp(48px, 5vw, 64px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.floating-button.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    transform: rotate(45deg);
}

.floating-button.pulse {
    animation: pulse 2s infinite;
}

.floating-icon {
    width: clamp(18px, 2.8vw, 24px);
    height: clamp(18px, 2.8vw, 24px);
    display: block;
    filter: brightness(0) invert(1); /* force white icon */
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.8), 0 0 0 10px rgba(102, 126, 234, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    }
}

/* Overlay para cerrar el directorio */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Barra lateral flotante */
.floating-sidebar {
    position: fixed;
    top: 55px;
    left: 20px;
    width: 350px;
    max-height: calc(100vh - 40px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateX(-400px) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.floating-sidebar.active {
    transform: translateX(0) scale(1);
    opacity: 1;
}

/* Header de la barra lateral */
.sidebar-header {
    padding: 25px 20px 15px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.sidebar-header h2 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Contenido de la barra lateral */
.sidebar-content {
    padding: 20px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* Caja de búsqueda */
.search-box {
    margin-bottom: 20px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

/* Departamentos en la guía telefónica */
.department {
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.department:nth-child(1) { animation-delay: 0.1s; }
.department:nth-child(2) { animation-delay: 0.2s; }
.department:nth-child(3) { animation-delay: 0.3s; }
.department:nth-child(4) { animation-delay: 0.4s; }
.department:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.department-title {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Items de contacto */
.contact-item {
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 10px;
    padding: 15px 18px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: #FFD700;
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-name {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.9;
}

.extension {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.phone-number {
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.phone-number::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url('../img/iconos/telephone.svg') center/contain no-repeat;
    filter: invert(1);
    flex-shrink: 0;
}

.sidebar-header h2 {
    gap: 8px;
}

.sidebar-header h2::before {
    content: "";
    width: 18px;
    height: 18px;
    background: url('../img/iconos/telephone.svg') center/contain no-repeat;
    filter: invert(1);
    display: inline-block;
}

.department-title::before {
    content: "";
    width: 14px;
    height: 14px;
    background: url('../img/iconos/telephone.svg') center/contain no-repeat;
    filter: invert(1);
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.search-box input {
    background-image: url('../img/iconos/telephone.svg');
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 16px;
    padding-left: 42px;
}

/* Scrollbar personalizada */
.sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ========================================
   OTRAS SECCIONES
======================================== */

/* Biografía del alcalde */
.alcalde img {
    width: 300px;
    height: 250px;
    display: flex;
    margin: 20px 15px 15px 100px;
    justify-content: space-around;
    flex-wrap: wrap;
    border: 5px white;
    float: left;
}

.biografia p {
    text-align: justify;
    margin-right: 100px;
    margin-left: 100px;
    font-family: "Poppins", sans-serif;
    font-style: normal;
}

/* Organigrama */
.organigrama {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-style: normal;
    padding: 20px;
}

.organigrama iframe {
    width: min(100%, 1200px);
    height: 650px;
    max-width: 1400px;
}

/* Contenedor general */
.contenedor {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Tablas */
.table a img {
    width: 50px;
}

table tr td a {
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-style: normal;
}

/* Redes sociales en sección principal */
.redes-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto 30px;
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.redes-container iframe {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    max-width: 100%;
    height: 520px;
}

.redes-container .insta {
    flex: 1 1 480px;
    min-width: 320px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: center;
}

.redes-container .facebook {
    flex: 1 1 480px;
    min-width: 320px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.redes-container .facebook iframe {
    width: 100% !important;
    min-width: 100%;
    height: 520px !important;
    border-radius: 12px;
    display: block;
}

.social-strip {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.social-strip .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f8f9ff;
    border: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: 0 10px 24px rgba(15,23,42,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-strip .social-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.social-strip .social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15,23,42,0.16);
}

/* Sección de cuentas */
.cuenta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
    margin: 0 100px 0 100px;
}

.cuenta li {
    padding: 10px 10px 10px 10px;
}

.cuenta a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-family: "Poppins", sans-serif;
    font-style: normal;
}

.cuenta img {
    width: 50px;
    height: 50px;
}

/* Sección de contenido superior */
.cont {
    background: linear-gradient(90deg, rgba(231,34,133,1) 0%, rgba(71,12,157,1) 70%);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 0 12px;
}

.cont a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.cont a.concejo-link .concejo-label {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.cont a img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.cont a:hover img {
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

.cont a img.concejo-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    margin-top: 0;
}

.cont a .gif {
    width: 50px;
}

/* Banner */
/* 🌐 Estilo por defecto: escritorio */
.banner {
  display: flex;
  justify-content: left; /* por si necesitas alineación */
  width: 700px;
  max-width: 100%;
  margin: 0 auto;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 📱 Estilo para pantallas pequeñas */
@media (max-width: 768px) {
  .banner {
    width: 100%;
    padding: 0 10px; /* opcional, para espacio lateral en móvil */
  }

  .banner-img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* ========================================
   MODAL PARA PDF/REAVALÚO
======================================== */

/* Botón para mostrar reavalúo */
#toggleBtn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

/* Overlay para el modal de PDF */
#overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Modal de PDF */
#pdfModal {
    background: white;
    padding: 15px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    height: 80%;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Botón de cerrar del modal PDF */
#closeBtn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    border: none;
    background: none;
    cursor: pointer;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   MODAL PERFIL JUVENTUD
======================================== */

.profile-modal {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-modal.lightbox .lightbox-card {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    padding: 0;
    border-radius: 16px;
    display: grid;
    place-items: center;
}

.profile-modal.lightbox #juventudProfileImage,
.profile-modal.lightbox #discapacidadProfileImage {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.profile-modal.lightbox .close-btn {
    position: absolute;
    top: -32px;
    right: -32px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #ffffff;
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.profile-modal.lightbox .close-btn img {
    filter: invert(1);
}

/* ========================================
   MAPA DE SERVICIOS LOCALES 
======================================== */

.mapa {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    width: 100%;
    height: 600px;
    border: 0;
    display: block;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* ========================================
   ACCESIBILIDAD Y CONTRASTE
======================================== */

#accessibility-toolbar {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.8);
    padding: 8px 12px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
}

#accessibility-toolbar .pill-btn {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

#accessibility-toolbar .pill-btn:hover {
    background: rgba(255,255,255,0.2);
}

#accessibility-toolbar .pill-btn .icon svg,
#accessibility-toolbar .pill-btn .icon img {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
    filter: brightness(0) invert(1);
    transition: filter var(--transition-fast);
}

#accessibility-toolbar .pill-btn:hover .icon.sun img {
    filter: invert(83%) sepia(91%) saturate(743%) hue-rotate(355deg) brightness(102%) contrast(104%);
}

#accessibility-toolbar .pill-btn:hover .icon.moon img {
    filter: brightness(0) invert(1);
}

.high-contrast {
    background-color: black !important;
    color: white !important;
}

.dark-mode {
    background-color: #0f1120;
    color: #f5f5f7;
    --neutral-100: #12142a;
    --neutral-200: #191c32;
    --neutral-700: #e8e8ef;
}

.dark-mode,
.dark-mode p,
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6,
.dark-mode li,
.dark-mode span,
.dark-mode label {
    color: #e8e8ef;
}

.dark-mode a {
    color: #cbd2ff;
}

.dark-mode a:hover,
.dark-mode a:focus {
    color: #ffffff;
}

.dark-mode ::placeholder {
    color: rgba(232, 232, 239, 0.8);
}

.dark-mode body {
    background: radial-gradient(circle at 10% 20%, rgba(231,34,133,0.18), transparent 35%),
                radial-gradient(circle at 90% 10%, rgba(71,12,157,0.2), transparent 38%),
                linear-gradient(135deg, #14172a, #1a1e38);
    color: #e8e8ef;
}


img,
video {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

.dark-mode .info-card,
.dark-mode .hero-alt,
.dark-mode .table-modern th,
.dark-mode .table-modern td,
.dark-mode .navbar,
.dark-mode .navbar.bg-body-tertiary,
.dark-mode header .abajo {
    background: #1b1d30 !important;
    color: #f5f5f7;
    box-shadow: none;
    border-bottom: none;
}

.dark-mode .carrusel {
    background: #1b1d30;
}

.dark-mode .carousel-item img {
    background-color: #1b1d30;
}

.dark-mode .navbar.bg-body-tertiary .container,
.dark-mode .navbar.bg-body-tertiary .container-fluid {
    background: transparent !important;
}

.dark-mode .navbar.navbar-expand-lg.bg-body-tertiary {
    background: #1b1d30 !important;
}

.dark-mode .navbar-nav .nav-link {
    background: transparent;
}

.dark-mode .navbar-nav .nav-link {
    color: #e8e8ef !important;
}

.dark-mode .navbar-nav .nav-link:hover,
.dark-mode .navbar-nav .nav-link:focus {
    background: linear-gradient(135deg, rgba(231,34,133,0.25), rgba(71,12,157,0.25));
    color: #ffffff !important;
}

.dark-mode .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.dark-mode .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.dark-mode .boton,
.dark-mode .btn-primary {
    background: linear-gradient(135deg, rgba(231,34,133,0.9), rgba(71,12,157,0.9));
    color: #fff;
}

.dark-mode .info-card,
.dark-mode .tarjet,
.dark-mode .noti-box,
.dark-mode .table-modern,
.dark-mode .concejo-centro .card {
    background: #181a2f;
    color: #e8e8ef;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.dark-mode .card-content,
.dark-mode .card-image {
    color: #e8e8ef;
}

.dark-mode .card-content {
    background: #181a2f;
}

.dark-mode .overlay-carrusel::after {
    background: #181a2f;
}

.dark-mode .form-control,
.dark-mode input,
.dark-mode select,
.dark-mode textarea {
    background: #1f2137;
    color: #e8e8ef;
    border-color: rgba(255,255,255,0.08);
}

.dark-mode .form-control::placeholder,
.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
    color: rgba(232, 232, 239, 0.7);
}

.dark-mode .form-control:focus,
.dark-mode input:focus,
.dark-mode select:focus,
.dark-mode textarea:focus {
    border-color: rgba(231,34,133,0.5);
    box-shadow: 0 0 0 3px rgba(231,34,133,0.15);
    background: #242742;
    color: #f5f5f7;
}

.dark-mode .btn-outline-success,
.dark-mode .btn-outline-primary {
    color: #e8e8ef;
    border-color: rgba(232, 232, 239, 0.7);
    background: transparent;
}

.dark-mode .btn-outline-success:hover,
.dark-mode .btn-outline-primary:hover {
    color: #111;
    background: #e8e8ef;
    border-color: #e8e8ef;
}

.dark-mode .dropdown-menu {
    background: #1b1d30;
    color: #e8e8ef;
}

.dark-mode .dropdown-item {
    color: #e8e8ef;
}

.dark-mode .dropdown-item:hover,
.dark-mode .dropdown-item:focus {
    background: rgba(231,34,133,0.12);
    color: #fff;
}

.dark-mode .table-modern thead th {
    background: #1f2137;
}

.dark-mode .table-modern tbody tr:nth-child(even) {
    background: #17192b;
}

.dark-mode .Accesosrapidos,
.dark-mode .containerBtn button,
.dark-mode .containerBtn .btn-purple {
    color: #e8e8ef;
    text-decoration: none;

}

.dark-mode .floating-sidebar {
    background: linear-gradient(135deg, #1a1c2f, #0f1020);
}

.dark-mode .floating-sidebar .contact-item {
    background: rgba(255,255,255,0.06);
    border-left-color: #e72285;
}

/* === Navegación y botones === */
.navbar {
    backdrop-filter: blur(8px);
    background-color: rgba(235, 235, 235, 0.95);
    padding: 6px 0;
    margin-top: 0;
}

.navbar.bg-body-tertiary {
    background-color: rgba(235, 235, 235, 0.95) !important;
}

.navbar.navbar-expand-lg.bg-body-tertiary {
    background-color: rgba(235, 235, 235, 0.95) !important;
    padding: 0;
}

.navbar.bg-body-tertiary .container,
.navbar.bg-body-tertiary .container-fluid {
    background-color: transparent !important;
}

header.encabezado + .navbar {
    margin-top: 0;
}

.navbar-nav .nav-link {
    color: #1f1f1f !important;
    font-weight: 400;
    text-transform: uppercase;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(231,34,133,0.85), rgba(71,12,157,0.85));
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(231,34,133,1), rgba(71,12,157,1));
    color: #fff !important;
}

.btn,
.boton,
button {
    border-radius: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    border: none;
}

.btn-primary,
.boton {
    background: linear-gradient(135deg, rgba(231,34,133,1), rgba(71,12,157,1));
    color: #fff;
}

.btn-outline-success,
.btn-outline-primary {
    border: 2px solid rgba(231,34,133,0.7);
    color: rgba(231,34,133,1);
}

.btn-outline-success:hover,
.btn-outline-primary:hover {
    background: linear-gradient(135deg, rgba(231,34,133,0.15), rgba(71,12,157,0.2));
    color: rgba(231,34,133,1);
}

/* Botón de búsqueda en navbar (header-buscar) */
.navbar .btn-outline-success {
    border-color: rgba(231,34,133,0.9);
    color: rgba(231,34,133,1);
}

.navbar .btn-outline-success:hover,
.navbar .btn-outline-success:focus {
    background: linear-gradient(135deg, rgba(231,34,133,0.2), rgba(71,12,157,0.25));
    color: #fff;
    border-color: rgba(231,34,133,0.95);
    box-shadow: 0 0 0 3px rgba(231,34,133,0.2);
}

/* Íconos SVG para tablas y enlaces */
.bi-youtube,
.bi-file-earmark-pdf,
.bi-file-earmark-text {
    display: inline-block;
    width: 22px;
    height: 22px;
    font-size: 0 !important;
    vertical-align: middle;
    line-height: 1;
}

.bi-youtube::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: url('../img/iconos/youtube.svg') center/contain no-repeat;
}

.bi-file-earmark-pdf::before,
.bi-file-earmark-text::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: url('../img/iconos/pdf.svg') center/contain no-repeat;
}

.dark-mode .hero-alt {
    background: radial-gradient(circle at 10% 20%, rgba(236, 41, 139, 0.18), transparent 35%), radial-gradient(circle at 90% 10%, rgba(71,12,157,0.22), transparent 38%), linear-gradient(135deg, rgba(71,12,157,0.9), rgba(35,15,58,0.9));
}

.dark-mode .info-card {
    border-color: rgba(255,255,255,0.08);
    box-shadow: none;
}

.dark-mode .info-card .icon {
    background: linear-gradient(135deg, rgba(231,34,133,0.3), rgba(71,12,157,0.3));
    color: #ffe7ff;
}

.dark-mode .table-modern th {
    background: #1c2031;
    color: #f5f5f7;
}

.dark-mode .table-modern tbody tr:nth-child(even) {
    background: #161a28;
}

.dark-mode .navbar a,
.dark-mode a {
    color: #f5f5f7;
}

.dark-mode .red-social .social-icon svg {
    fill: #fff;
}

/* === Mejora base y componentes adicionales === */
:root {
    --primary: #e72285;
    --secondary: #470c9d;
    --neutral-100: #ffffff;
    --neutral-200: #f5f5f7;
    --neutral-700: #1f1f1f;
    --shadow-sm: 0 6px 20px rgba(0,0,0,0.08);
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition-fast: 0.2s ease;
}

.hero-alt {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 60px 24px;
    margin: 30px auto;
    background: radial-gradient(circle at 10% 20%, rgba(231,34,133,0.18), transparent 35%),
                radial-gradient(circle at 90% 10%, rgba(71,12,157,0.22), transparent 38%),
                linear-gradient(135deg, rgba(231,34,133,0.9), rgba(71,12,157,0.9));
    color: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.hero-alt.hero-juventud {
    text-align: center;
    padding: 60px 24px;
}

.hero-juventud::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(231,34,133,0.85), rgba(71,12,157,0.9));
    opacity: 0.95;
}

.hero-juventud > * {
    position: relative;
    z-index: 1;
}

.hero-juventud .hero-juventud-content {
    max-width: 820px;
    margin: 0 auto;
}

.hero-juventud .hero-juventud-media {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
}

.hero-juventud .hero-juventud-media img {
    width: 140px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.hero-medioambiente .hero-juventud-media img {
    width: 170px;
}

.hero-daem .hero-juventud-media img {
    height: 190px;
    width: auto;
}

.hero-daem .hero-juventud-media {
    right: 2px;
}

.hero-oficina-mujer .hero-juventud-media img {
    height: 140px;
    width: auto;
}

.hero-discapacidad .hero-juventud-media img {
    width: 220px;
    filter: drop-shadow(0 12px 22px rgba(0,0,0,0.25));
}

.hero-discapacidad .hero-juventud-media {
    right: 24px;
}

@media (max-width: 1024px) {
    .hero-oficina-mujer .hero-juventud-media img {
        height: 130px;
    }

    .hero-discapacidad .hero-juventud-media {
        right: 12px;
    }

    .hero-discapacidad .hero-juventud-media img {
        width: 170px;
    }

    .hero-discapacidad .hero-juventud-content {
        padding-right: 160px;
    }

    .hero-discapacidad.hero-alt {
        padding: 48px 24px;
    }
}

@media (max-width: 900px) {
    .hero-alt.hero-juventud {
        padding: 45px 24px;
    }

    .hero-juventud .hero-juventud-media {
        position: static;
        transform: none;
        margin: 16px auto 0;
        display: flex;
        justify-content: center;
    }

    .hero-juventud::before {
        background: linear-gradient(135deg, rgba(231,34,133,0.9), rgba(71,12,157,0.95));
    }

}

.dark-mode .hero-alt {
    background: radial-gradient(circle at 10% 20%, rgba(231,34,133,0.3), transparent 35%),
                radial-gradient(circle at 90% 10%, rgba(71,12,157,0.32), transparent 38%),
                linear-gradient(135deg, rgba(231,34,133,0.95), rgba(71,12,157,0.95)) !important;
    color: #fff !important;
}

.hero-alt .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    font-size: 14px;
    text-transform: uppercase;
}

.hero-alt h1 {
    margin-top: 14px;
    margin-bottom: 12px;
    font-size: clamp(28px, 4vw, 40px);
    color: #fff;
}

.hero-alt p {
    max-width: 820px;
    color: #f5f5f7;
    font-size: 16px;
}

.hero-alt .actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-alt .pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px auto;
}
.info-card {
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    text-align: center;
}

.info-grid.info-grid-left .info-card {
    text-align: left;
    padding-left: 8px;
}

.info-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(231,34,133,0.15), rgba(71,12,157,0.15));
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 20px;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}


.pill-list .pill {
    background: var(--neutral-200);
    color: var(--neutral-700);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.iframe-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--neutral-200);
}

.iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.red-social .social-icon {
    width: 32px;
    height: 32px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.floating-button {
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.floating-button svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    stroke-width: 2;
}

.floating-sidebar .sidebar-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin: 0;
}

.floating-sidebar .sidebar-header svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.6;
}

/* Tablas modernas centradas */
.table-modern th,
.table-modern td {
    text-align: center;
    vertical-align: middle;
}

.table-modern i {
    font-size: 18px;
}

.table-modern thead th {
    background: var(--neutral-200);
    font-weight: 700;
}

.table-modern tbody tr:nth-child(even) {
    background: var(--neutral-200);
}

/* ========================================
   MEJORA BASE / COMPONENTES
======================================== */
:root {
    --primary: #e72285;
    --secondary: #470c9d;
    --neutral-100: #ffffff;
    --neutral-200: #f5f5f7;
    --neutral-700: #1f1f1f;
    --shadow-sm: 0 6px 20px rgba(0,0,0,0.08);
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition-fast: 0.2s ease;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--neutral-700);
}


img,
video {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

h1, h2, h3 {
    font-weight: 700;
    margin: 0 0 16px;
}

p { margin: 0 0 14px; }

.containe, .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a, button { transition: all var(--transition-fast); }
a:focus-visible, button:focus-visible {
    outline: 3px solid rgba(231,34,133,0.6);
    outline-offset: 2px;
}

.boton, .btn, button { border-radius: var(--radius-md); }
.boton:hover, .btn:hover { filter: brightness(1.05); }

/* Footer social icons con SVG */
.red-social .social-icon {
    width: 32px;
    height: 32px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform var(--transition-fast);
}

.red-social .social-icon svg,
.red-social .social-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.red-social .social-icon:hover {
    transform: translateY(-2px) scale(1.05);
}

.yt-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    object-fit: contain;
    filter: invert(17%) sepia(91%) saturate(5950%) hue-rotate(2deg) brightness(95%) contrast(112%);
}

.pdf-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    object-fit: contain;
    filter: invert(24%) sepia(95%) saturate(3038%) hue-rotate(349deg) brightness(94%) contrast(95%);
}

.pdf1-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    margin-left: 6px;
    filter: brightness(0) saturate(100%);
}

.dark-mode .pdf-icon {
    filter: invert(24%) sepia(95%) saturate(3038%) hue-rotate(349deg) brightness(100%) contrast(105%);
}

.dark-mode .pdf1-icon {
    filter: invert(24%) sepia(95%) saturate(3038%) hue-rotate(349deg) brightness(100%) contrast(105%);
}

.dark-mode .bi-file-earmark-pdf,
.dark-mode .bi-file-earmark-text {
    color: #ff4d4d !important;
}

.dark-mode .info-card i.bi-file-earmark-text {
    color: #ff4d4d !important;
}

/* Forzar color rojo en cualquier icono de archivo dentro de concejo en modo oscuro */
.dark-mode i.bi-file-earmark-text {
    color: #ff4d4d !important;
}

.cuenta-icon {
    color: #111;
}

.dark-mode .cuenta-icon {
    color: #f5f5f7;
}

/* Paginación general */
.pagination .page-link {
    color: rgba(231,34,133,1);
    border: 1px solid rgba(231,34,133,0.35);
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, rgba(231,34,133,0.12), rgba(71,12,157,0.12));
    color: rgba(231,34,133,1);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, rgba(231,34,133,0.9), rgba(71,12,157,0.9));
    border-color: rgba(71,12,157,0.8);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: rgba(0,0,0,0.4);
    border-color: rgba(0,0,0,0.1);
    background: transparent;
}

.dark-mode .pagination .page-link {
    color: #e8e8ef;
    border-color: rgba(255,255,255,0.18);
    background: #181a2f;
}

.dark-mode .pagination .page-link:hover {
    background: linear-gradient(135deg, rgba(231,34,133,0.18), rgba(71,12,157,0.2));
    color: #fff;
}

.dark-mode .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, rgba(231,34,133,0.9), rgba(71,12,157,0.9));
    border-color: rgba(231,34,133,0.8);
    color: #fff;
}

.dark-mode .pagination .page-item.disabled .page-link {
    color: rgba(232,232,239,0.4);
    border-color: rgba(255,255,255,0.08);
    background: transparent;
}
/* Colores de marca para cada SVG */
.red-social .social-icon.instagram img {
    filter: invert(26%) sepia(74%) saturate(3726%) hue-rotate(314deg) brightness(93%) contrast(103%);
}

.red-social .social-icon.facebook img {
    filter: invert(33%) sepia(92%) saturate(2014%) hue-rotate(192deg) brightness(95%) contrast(96%);
}

.red-social .social-icon.youtube img {
    filter: invert(17%) sepia(91%) saturate(5950%) hue-rotate(2deg) brightness(95%) contrast(112%);
}

/* Botón flotante (guía telefónica) con icono */
.floating-button {
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.floating-button svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    stroke-width: 2;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
======================================== */

/* Tablets grandes y laptops pequeñas (1024px) */
@media screen and (max-width: 1024px) {
    .page-container {
        min-height: 100vh;
    }
    
    .encabezado .grupo-0 {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 25px;
        padding: 25px 15px;
    }
    
    .encabezado .grupo-0 .box-0 figure img {
        width: 110px;
    }
    
    .carousel-item {
        height: 400px; /* Ajustamos altura para tablets */
    }
    
    .containerBtn {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .containerBtn button,
.containerBtn .btn-purple {
        padding: 1.2rem 0.8rem;
        font-size: 0.85rem;
        min-height: 100px;
    }
    
    .containerBtn .icono img {
        width: 45px;
        height: 45px;
    }
    
    .pie-pagina .grupo-1 {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
        padding: 35px 15px;
    }
    
    .pie-pagina .grupo-1 .box figure img {
        width: 110px;
    }
    
    .pie-pagina .grupo-1 .box h2 {
        font-size: 18px;
    }
    
    .pie-pagina .grupo-1 .box .alcaldesa {
        width: 130px;
    }
    
    /* Trámites en línea - Tablets */
    .tarjetasdep {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    
    /* Concejo - Tablets */
    .concejo-centro .card {
        width: 310px;
        max-width: 310px;
        min-height: 420px;
    }
    
    /* Noticias - Tablets */
    .noti-box {
        width: 300px;
    }
}

/* Tablets (768px) */
@media screen and (max-width: 768px) {
    .page-container {
        min-height: 100vh;
    }
    
    .encabezado .grupo-0 {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        padding: 20px 10px;
    }
    
    .encabezado .grupo-0 .box-0 figure img {
        width: 90px;
    }
    
    header .abajo {
        padding: 10px 15px;
    }
    
    .carousel-item {
        height: 300px; /* Reducimos altura para tablets */
    }
    
    .Accesosrapidos {
        margin: 20px 0;
        padding: 0 5px;
    }
    
    .containerBtn {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
        padding: 0 10px;
    }
    
    .containerBtn button,
.containerBtn .btn-purple {
        padding: 1rem 0.5rem;
        font-size: 0.8rem;
        min-height: 90px;
    }
    
    .containerBtn .icono img {
        width: 40px;
        height: 40px;
    }
    
    .pie-pagina .grupo-1 {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 10px;
        text-align: center;
    }
    
    .pie-pagina .grupo-1 .box figure img {
        width: 90px;
    }
    
    .pie-pagina .grupo-1 .box h2 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .pie-pagina .grupo-1 .box p {
        font-size: 13px;
    }
    
    .pie-pagina .grupo-1 .box .alcaldesa {
        width: 110px;
    }
    
    .pie-pagina .grupo-2 {
        padding: 12px 15px;
    }
    
    .pie-pagina .grupo-2 small {
        font-size: 13px;
    }
    
    /* Trámites en línea - Tablets */
    .tarjetasdep {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 15px;
    }
    
    .title {
        font-size: 1rem;
        min-height: 50px;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    /* Galería responsive */
    .contenedor-imagenes {
        width: 90%;
    }
    
    .contenedor-imagenes .imagen {
        width: 48%;
    }
    
    /* Noticias responsive */
    .noti-box {
        width: 70%;
    }
}

/* Móviles (480px) */
@media screen and (max-width: 480px) {
    .page-container {
        min-height: 100vh;
    }
    
    .encabezado .grupo-0 {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 5px;
    }
    
    .encabezado .grupo-0 .box-0 figure img {
        width: 70px;
    }
    
    .carousel-item {
        height: 250px; /* Altura más pequeña para móviles */
    }
    
    .Accesosrapidos {
        margin: 15px 0;
        padding: 0;
    }
    
    .containerBtn {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 5px;
    }
    
    .containerBtn button,
.containerBtn .btn-purple {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
        min-height: 70px;
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
    }
    
    .containerBtn .icono {
        flex-direction: row;
        gap: 15px;
        align-items: center;
    }
    
    .containerBtn .icono img {
        width: 35px;
        height: 35px;
    }
    
    .pie-pagina .grupo-1 {
        padding: 20px 5px;
        gap: 15px;
    }
    
    .pie-pagina .grupo-1 .box figure img {
        width: 70px;
    }
    
    .pie-pagina .grupo-1 .box h2 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .pie-pagina .grupo-1 .box p {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .pie-pagina .grupo-1 .box .alcaldesa {
        width: 90px;
    }
    
    .pie-pagina .grupo-1 .red-social a img {
        width: 24px;
        height: 24px;
    }
    
    .pie-pagina .grupo-2 {
        padding: 8px 10px;
    }
    
    .pie-pagina .grupo-2 small {
        font-size: 11px;
    }
    
    /* Trámites en línea - Móviles */
    .tarjetasdep {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, 1fr);
        gap: 10px;
    }
    
    .text_tarjet {
        padding: 20px;
    }
    
    /* Concejo - Móviles */
    .concejo-centro .card {
        width: 280px;
        max-width: 280px;
        min-height: 400px;
    }
    
    .concejo-centro {
        padding: 10px;
    }
    
    /* Galería - Móviles */
    .contenedor-imagenes .imagen {
        width: 48%;
    }
    
    /* Noticias - Móviles */
    .noti-box {
        margin: 20px 10px;
        width: 100%;
    }
    
    #noti {
        padding: 20px;
    }
    
    /* Guía telefónica - Móviles */
    .floating-sidebar {
        top: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: calc(100vh - 20px);
    }
    
    .floating-button {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Móviles muy pequeños (320px) */
@media screen and (max-width: 320px) {
    .page-container {
        min-height: 100vh;
    }
    
    .encabezado .grupo-0 .box-0 figure img {
        width: 60px;
    }
    
    .carousel-item {
        height: 200px; /* Altura mínima para móviles muy pequeños */
    }
    
    .containerBtn button,
.containerBtn .btn-purple {
        min-height: 60px;
        padding: 0.6rem 0.3rem;
    }
    
    .containerBtn .icono img {
        width: 30px;
        height: 30px;
    }
    
    .pie-pagina .grupo-1 .box figure img {
        width: 60px;
    }
    
    .pie-pagina .grupo-1 .box .alcaldesa {
        width: 80px;
    }
    
    .pie-pagina .grupo-1 .red-social a img {
        width: 22px;
        height: 22px;
    }
}

/* Responsive adicionales para elementos específicos */
@media (max-width: 1250px) {
    .noti-box {
        width: 300px;
    }
}

@media (max-width: 1100px) {
    .noti-box {
        width: 70%;
    }
    
    .album1 {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .album1 {
        padding: 30px;
        grid-template-columns: repeat(1, 1fr);
    }
    
    .box1:nth-child(1) {
        grid-column-start: span 1;
    }
    
    .box1:nth-child(4) {
        grid-column-start: span 1;
    }
}

@media (max-width: 950px) {
    .concejo-centro .card {
        width: 310px;
        max-width: 310px;
    }
}

@media screen and (max-width: 700px) {
    .contenedor-imagenes {
        width: 90%;
    }
    
    .contenedor-imagenes .imagen {
        width: 48%;
    }
}

@media (max-width: 550px) {
    .noti-box {
        margin: 20px 10px;
        width: 100%;
    }
    
    #noti {
        padding: 20px;
    }
}

@media screen and (max-width: 450px) {
    .contenedor-imagenes {
        width: 90%;
    }
    
    .contenedor-imagenes .imagen {
        width: 48%;
    }
}

@media (max-width: 520px) {
    .card {
        width: 260px;
        max-width: 260px;
    }
    
    .concejo-centro {
        padding: 10px;
    }
}

/* Ajustes responsivos adicionales para redes sociales */
@media (max-width: 768px) {
    .redes-container iframe {
        height: 460px;
    }
}

@media (max-width: 790px) {
    .encabezado .grupo-0 .buttons {
        width: 100%;
        align-items: center;
    }

    .encabezado .grupo-0 .buttons .boton {
        width: 100%;
        max-width: 300px;
        min-height: 44px;
        padding: 8px 12px;
        font-size: 0.78rem;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
    }
}

@media (max-width: 720px) {
    .encabezado .grupo-0 {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
        padding: 12px 8px;
    }

    .cont {
        gap: 8px;
        padding: 4px 8px;
    }

    .cont a {
        font-size: 0.75rem;
    }

    .cont a.concejo-link .concejo-label {
        font-size: 0.75rem;
    }

    .cont a img {
        height: 34px;
    }

    .cont a img.concejo-logo {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .redes-container iframe {
        height: 420px;
    }
}

/* Ajuste ícono de cierre */
.close-btn img {
    width: 14px;
    height: 14px;
    max-width: 14px;
    max-height: 14px;
    object-fit: contain;
    display: block;
}
/* DAEM collage grid */
.media-grid.daem-collage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: 240px;
    gap: 16px;
    grid-auto-flow: dense;
    margin-top: 32px;
    background: linear-gradient(145deg, #f7f9ff, #eef2ff);
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

.media-grid.daem-collage figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.media-grid.daem-collage img,
.media-grid.daem-collage iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

.media-grid.daem-collage iframe {
    border-radius: 12px;
    background: #ffffff;
}

.media-grid.daem-collage figure:nth-child(3n) {
    grid-column: span 2;
}

.media-grid.daem-collage figure:nth-child(5n) {
    grid-row: span 2;
    aspect-ratio: 4 / 5;
}

@media (max-width: 640px) {
    .media-grid.daem-collage {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        grid-auto-rows: 180px;
        padding: 12px;
        gap: 12px;
    }

    .media-grid.daem-collage figure:nth-child(3n),
    .media-grid.daem-collage figure:nth-child(5n) {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: auto;
    }
}

/* DAEM layout */
.panel {
    background: linear-gradient(135deg, #ffffff, #f8f9ff);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    padding: 26px;
    margin: 28px 0;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

.panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.panel-header .eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e0b3ff;
    margin-bottom: 6px;
}

.panel-header h3 {
    color: #0f172a;
    margin: 0;
}

.panel-body {
    color: #1f2937;
}


img,
video {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

.daem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.daem-card {
    background: linear-gradient(145deg, #ffffff, #f4f6ff);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.daem-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    background: linear-gradient(135deg, rgba(231,34,133,0.15), rgba(71,12,157,0.15));
    color: var(--secondary);
    font-size: 1.2rem;
}

.daem-card h4 {
    color: #111827;
    margin-top: 0;
    margin-bottom: 10px;
}

.panel-acciones-discapacidad {
    background: linear-gradient(135deg, #ffffff 0%, #f5f0ff 60%, #f8f9ff 100%);
}

.panel-acciones-discapacidad .panel-header .eyebrow {
    color: rgba(111, 38, 191, 0.75);
}

.panel-acciones-discapacidad .daem-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.panel-acciones-discapacidad .acciones-card {
    position: relative;
    padding: 20px 20px 24px;
    overflow: hidden;
}

.panel-acciones-discapacidad .acciones-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(231,34,133,0.7), rgba(71,12,157,0.7));
}

.panel-acciones-discapacidad .acciones-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    margin: 0 0 12px;
    background: linear-gradient(135deg, rgba(231,34,133,0.16), rgba(71,12,157,0.16));
}

.panel-acciones-discapacidad .acciones-card h4 {
    font-size: 1.05rem;
}

.panel-acciones-discapacidad .acciones-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.daem-card .styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.daem-card .styled-list li {
    position: relative;
    padding-left: 18px;
    line-height: 1.55;
    color: #1f2937;
}

.daem-card .styled-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e72285, #5f3cf8);
    position: absolute;
    left: 0;
    top: 10px;
}

.juventud-cta,
.juventud-profile {
    position: relative;
    overflow: hidden;
}

.juventud-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(231,34,133,0.08), rgba(71,12,157,0.08));
    border: 1px solid rgba(231,34,133,0.2);
}

.juventud-cta h4 {
    align-self: center;
    text-align: center;
}

.juventud-cta .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(231,34,133,0.25), rgba(71,12,157,0.25));
    color: #4a0d9d;
    font-size: 1.4rem;
}

.juventud-cta p {
    color: #4b5563;
}

.juventud-cta .btn {
    align-self: center;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
}

.juventud-cta::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(231,34,133,0.08);
}

.juventud-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    background: linear-gradient(135deg, #ffffff, #f6f3ff);
    border: 1px solid rgba(71,12,157,0.15);
}

.juventud-profile .profile-link {
    display: inline-flex;
    text-decoration: none;
}

.juventud-profile .profile-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(231,34,133,0.3), rgba(71,12,157,0.3));
    border: 4px solid #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.juventud-profile h4 {
    margin-bottom: 4px;
}

.juventud-profile p {
    color: #5b6475;
    font-weight: 500;
}

.dark-mode .juventud-cta {
    background: linear-gradient(135deg, rgba(231,34,133,0.15), rgba(71,12,157,0.18));
    border-color: rgba(231,34,133,0.3);
}

.dark-mode .juventud-cta p {
    color: #cfd2df;
}

.dark-mode .juventud-profile {
    background: linear-gradient(135deg, rgba(20, 23, 40, 0.95), rgba(28, 32, 58, 0.9));
    border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .juventud-profile .profile-avatar {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

@media (max-width: 700px) {
    .panel {
        padding: 20px;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* DAEM dark mode */
.dark-mode .panel {
    background: linear-gradient(135deg, rgba(13, 19, 35, 0.95), rgba(12, 16, 30, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.dark-mode .panel-header h3 {
    color: #f8f9ff;
}

.dark-mode .panel-body {
    color: #dbe2f2;
}


img,
video {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

.dark-mode .daem-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.dark-mode .daem-card .icon {
    background: linear-gradient(135deg, rgba(231,34,133,0.3), rgba(95,60,248,0.3));
    color: #ffe7ff;
}

/* Salud: títulos centrados, textos alineados a la izquierda */
.salud-align .daem-card h4 {
    text-align: center;
}

.salud-align .daem-card p,
.salud-align .daem-card ul {
    text-align: left;
}

/* Imagen destacada Salud */
.salud-hero-image {
    max-width: 960px;
    margin: 10px auto 32px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(17, 24, 39, 0.06);
}

.salud-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.dark-mode .daem-card h4 {
    color: #f5f7ff;
}


.dideco-offices .daem-grid {
    gap: 22px;
}

.dideco-offices .office-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f7f5ff);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dideco-offices .office-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(231, 34, 133, 0.7), rgba(71, 12, 157, 0.7));
}

.dideco-offices .office-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.dideco-offices .office-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: 6px auto 12px;
    font-size: 1.3rem;
    background: linear-gradient(135deg, rgba(231, 34, 133, 0.18), rgba(71, 12, 157, 0.18));
}

.dideco-offices .office-card h4 {
    margin-bottom: 8px;
}

.dideco-offices .office-card p {
    color: #4b5563;
    margin-bottom: 16px;
}

.dideco-offices .office-card .btn {
    margin-top: auto;
}

.dark-mode .dideco-offices .office-card {
    background: linear-gradient(180deg, #1b1f2b, #202538);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-mode .dideco-offices .office-card p {
    color: #cbd5f5;
}.dark-mode .daem-card .styled-list li {
    color: #d1daec;
}

.dark-mode .media-grid.daem-collage {
    background: #0b1221;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* ========================================
   RESPONSIVE OVERRIDES
======================================== */

@media (max-width: 991px) {
    .navbar .container,
    .navbar .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar .navbar-collapse {
        padding: 10px 0 14px;
    }

    .navbar .navbar-nav {
        gap: 6px;
    }

    .navbar .navbar-nav .nav-link {
        padding: 8px 10px;
    }

    .navbar .d-flex {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .navbar .form-control,
    .navbar .btn-outline-success {
        width: 100%;
    }

    .contenedor {
        width: 92%;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    html,
    body {
        overflow-x: hidden;
    }

    .container,
    .containe,
    .contenedor,
    .redes-container,
    .concejo-centro {
        max-width: 100%;
        width: 100%;
    }

    .swiper {
        max-width: 100%;
        width: 100%;
        padding: 24px 0;
    }

    .swiper-wrapper {
        overflow: visible;
    }

    .table-responsive {
        width: 100%;
    }

    .navbar .navbar-nav {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 6px;
        width: 100%;
        align-items: center;
    }

    .navbar .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding: 4px 8px;
    }

    .navbar .navbar-brand {
        font-size: 0.85rem;
        padding: 4px 8px;
        display: flex;
        align-items: center;
        line-height: 1;
    }

    .navbar .d-flex {
        min-width: 220px;
    }

    .navbar .form-control {
        min-width: 160px;
    }

    .carrusel {
        margin: 0 auto 20px;
    }

    .concejo-centro {
        min-height: auto;
        padding: 12px 16px;
    }

    .swiper {
        padding: 18px 0;
    }

    .galeria {
        margin-top: 10px;
    }

    .Accesosrapidos {
        margin: 24px 0;
    }

    #noti {
        margin: 16px 0;
    }

    .mapa {
        margin-top: 16px;
    }
}

@media (max-width: 920px) {
    .encabezado .grupo-0 {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 18px;
        padding: 20px 12px;
    }

    .encabezado .grupo-0 .box-0 figure img {
        width: 100px;
    }

    .cont {
        gap: 12px;
        padding: 8px 12px;
    }

    .cont a img {
        height: 42px;
    }

    .cont a img.concejo-logo {
        height: 36px;
    }

    .navbar .navbar-nav .nav-link {
        font-size: 0.82rem;
    }

    .navbar .form-control {
        min-width: 140px;
    }
}

@media (max-width: 870px) {
    .info-grid,
    .media-grid,
    .daem-grid,
    .album1,
    .tarjetasdep {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .album1 {
        grid-template-rows: auto;
    }

    .banner,
    .banner-img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: clamp(220px, 55vw, 320px);
    }

    .encabezado .grupo-0 {
        align-items: center;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
        padding: 16px 10px;
    }

    .cont {
        gap: 10px;
        padding: 6px 10px;
    }

    .cont a img {
        height: 40px;
    }

    .cont a img.concejo-logo {
        height: 36px;
    }

    .buttons {
        width: 100%;
    }

    .buttons .boton {
        width: 100%;
        max-width: 240px;
    }

    .redes-container {
        padding: 16px;
    }

    .redes-container .insta,
    .redes-container .facebook {
        min-width: 100%;
    }

    .containe,
    .container {
        padding: 0 12px;
    }

    #noti {
        margin: 16px 0;
    }

    .noti-box {
        width: min(100%, 320px);
        margin: 16px auto;
    }

    .noti-text {
        padding: 20px;
    }
}

@media (max-width: 720px) {
    .info-grid,
    .media-grid,
    .daem-grid,
    .album1,
    .tarjetasdep {
        grid-template-columns: 1fr;
    }

    .hero-alt {
        padding: 40px 18px;
    }

    .hero-alt h1 {
        font-size: clamp(24px, 6vw, 32px);
    }

    .hero-alt p {
        font-size: 0.95rem;
    }

    .hero-discapacidad {
        text-align: center;
    }

    .hero-discapacidad .hero-juventud-content {
        max-width: 100%;
        padding-right: 150px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-discapacidad .hero-juventud-media {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .hero-discapacidad .hero-juventud-media img {
        width: 140px;
        max-width: 100%;
    }

    .containe p {
        margin: 0 16px;
    }
}

@media (max-width: 600px) {
    .hero-alt {
        padding: 36px 18px;
    }

    .panel {
        padding: 20px;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .daem-grid {
        grid-template-columns: 1fr;
    }

    .navbar .navbar-nav .nav-link {
        font-size: 0.8rem;
    }

    .organigrama iframe {
        height: 420px;
    }

    .redes-container {
        gap: 16px;
    }
}

@media (max-width: 544px) {
    .cont {
        gap: 8px;
    }

    .cont a img {
        height: 36px;
    }

    .navbar .navbar-brand {
        font-size: 0.85rem;
    }

    .containerBtn {
        grid-template-columns: 1fr;
    }

    .containerBtn button {
        min-height: 80px;
    }

    .pagination {
        gap: 4px;
    }

    .pagination .page-link {
        min-width: 32px;
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        height: clamp(200px, 62vw, 260px);
    }

    .encabezado .grupo-0 {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 8px;
        text-align: center;
    }

    .encabezado .grupo-0 .box-0 {
        width: 100%;
    }

    .encabezado .grupo-0 .banner {
        width: 100%;
        justify-content: center;
    }

    .encabezado .grupo-0 .banner img {
        max-width: 260px;
        width: 100%;
    }

    .encabezado .grupo-0 .buttons {
        align-items: center;
        gap: 8px;
    }

    .encabezado .grupo-0 .buttons .boton {
        width: 100%;
        max-width: 260px;
        font-size: 0.78rem;
        padding: 10px 12px;
    }

    #accessibility-toolbar {
        top: 8px;
        right: 8px;
        padding: 6px;
        gap: 6px;
    }

    #noti {
        margin: 12px 0;
    }

    .noti-box {
        width: 100%;
        margin: 12px 0;
    }

    .noti-text {
        padding: 16px;
    }

    .cont {
        gap: 8px;
        padding: 6px 8px;
    }

    .cont a img {
        height: 34px;
    }

    .cont a img.concejo-logo {
        height: 30px;
    }

    .navbar .navbar-brand {
        font-size: 0.9rem;
    }

    .hero-discapacidad {
        text-align: center;
    }

    .hero-discapacidad .hero-juventud-content {
        padding-right: 0;
        margin: 0 auto;
        text-align: center;
    }

    .hero-discapacidad .hero-juventud-media {
        position: static;
        transform: none;
        margin-top: 14px;
        display: flex;
        justify-content: center;
    }

    .hero-discapacidad .hero-juventud-media img {
        width: 150px;
    }

    .contenedor-imagenes .imagen {
        width: 100%;
        max-width: 100%;
        height: 220px;
    }

    .overla h2 {
        font-size: 22px;
    }

    .concejo-centro .swiper-slide {
        display: flex;
        justify-content: center;
    }

    .concejo-centro .card {
        margin: 0 auto;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-modern {
        min-width: 640px;
        font-size: 0.85rem;
    }

    .table-modern th,
    .table-modern td {
        padding: 8px 10px;
        white-space: nowrap;
    }

    .table-modern td:last-child {
        white-space: normal;
        min-width: 180px;
    }

    .table-modern td:nth-child(1) { min-width: 120px; }
    .table-modern td:nth-child(2) { min-width: 60px; }
    .table-modern td:nth-child(3) { min-width: 90px; }
    .table-modern td:nth-child(4) { min-width: 110px; }
    .table-modern td:nth-child(5) { min-width: 170px; }

    .pagination {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        padding: 0 6px;
    }

    .pagination .page-link {
        padding: 6px 10px;
        font-size: 0.85rem;
        min-width: 36px;
        text-align: center;
        margin: 0;
    }
}

@media (max-width: 390px) {
    .cont {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 6px;
    }

    .cont a img {
        height: 30px;
        width: auto;
    }

    .cont a img.concejo-logo {
        height: 26px;
    }

    .encabezado .grupo-0 {
        gap: 10px;
        padding: 10px 6px;
    }

    .encabezado .grupo-0 .box-0 figure img {
        width: 64px;
    }

    .encabezado .grupo-0 .banner img {
        max-width: 220px;
    }

    .encabezado .grupo-0 .buttons .boton {
        height: 40px;
        font-size: 0.7rem;
        padding: 8px 10px;
    }

    #accessibility-toolbar {
        top: 6px;
        right: 6px;
        padding: 4px 6px;
        gap: 4px;
    }

    #accessibility-toolbar .pill-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .navbar .navbar-brand {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .hero-alt {
        padding: 30px 14px;
    }

    .organigrama iframe {
        height: 320px;
    }
}



