:root {
    --color-primary: #e92526;
    --color-secondary: #fec600;
    --color-white: #fff;
    --color-dark: #333;
    --color-gray: #666;
    --color-light-gray: #ddd;
    --color-primary-rgb: 233, 37, 38;
    --color-secondary-rgb: 254, 198, 0;

    --bg-color: rgba(255, 255, 255, 0.3);
    --primary-color: #000;
    --accent-color: #333;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Bold.woff2') format('woff2'),
    url('fonts/Montserrat-Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-Medium.woff2') format('woff2'),
    url('fonts/PlayfairDisplay-Medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair Display Regular';
    src: url('fonts/PlayfairDisplay-Regular.woff2') format('woff2'),
    url('fonts/PlayfairDisplay-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Merriweather';
    src: url('fonts/Merriweather-Light.woff2') format('woff2'),
    url('fonts/Merriweather-Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

h1 {
    font-family: 'Playfair Display', 'serif';
}
h2 {
    font-family: 'Playfair Display Regular', 'serif';
}
h3{
    font-family: 'Playfair Display', 'serif';
}
p{
    font-family: 'Merriweather', 'serif';
}
span{
    font-family: 'Merriweather', 'serif';
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

nav ul li {
    display: inline-block;
    position: relative;
    z-index: 101;
}

/* Ocultar submenús por defecto */
nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    text-align: left;
    z-index: 102;
}

/* Mostrar submenús al hacer hover */
nav ul li:hover>ul {
    display: block;
}

/* Estilo para los elementos del submenú */
nav ul ul li {
    display: block;
    width: 100%;
}

/* Estilo básico para los enlaces */
nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-secondary);
}

/* boton subir*/
.button-gow-up {
    position: fixed;
    bottom: 90px;
    right: 20px;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.button-whatssapp {
    position: fixed;
    bottom: 30px;
    right: 20px;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.button-gow-up-btn {
    background-color: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button-gow-up-btn svg {
    transition: height 0.4s ease;
}

.button-gow-up-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

.button-gow-up-btn svg:hover{
    width: 26px;
    height: 26px;
}

/* Reproducto*/

.music-player {
    position: fixed;
    bottom: 150px;
    right: 20px;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.music-player-btn {
    background-color: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.2s ease;
}

.music-player-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

.volume-container {
    display: flex;
    align-items: center;
}

.volume-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 10px;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.volume-btn:hover {
    color: var(--accent-color);
}

.volume-slider {
    width: 100px;
    -webkit-appearance: none;
    background: rgba(0,0,0,0.1);
    height: 5px;
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

@media (max-width: 600px) {
    .music-player {
        bottom: 150px;
        right: 10px;
        padding: 8px 12px;
    }

    .button-gow-up{
        bottom: 70px;
        right: 10px;
        padding: 8px 12px;
    }

    .button-whatssapp{
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
    }

    .music-player-btn {
        width: 35px;
        height: 35px;
    }

    .volume-slider {
        width: 80px;
    }
}

.hidden {
    display: none;
}
/*fin reproductor*/

/*division hero video y alcalde*/
.division {
    width: 100%;
    height: 5px;
    background: linear-gradient(
        45deg,
        var(--color-primary),
        var(--color-secondary)
    );
}
/*fin division hero vide y alcaldo*/

.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    align-items: center;
    gap: 8px;
    color: var(--color-white);
}

.menu-toggle i {
    font-size: 24px;
}

.menu-text {
    font-family: 'Montserrat', 'serif';
    font-size: 16px;
    font-weight: 500;
}

.social-bar {
    background-color: var(--color-secondary);
    padding: 8px 0;
    position: relative;
    z-index: 1001;
}

.social-bar ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    text-align: right;
    max-width: 1200px;
}

.social-bar ul li {
    display: inline-block;
    margin-right: 15px;
}

.social-bar ul li:last-child {
    margin-right: 20px;
}

.social-bar ul li a {
    color: var(--color-dark);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.social-bar ul li a:hover {
    color: var(--color-primary);
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    background-color: var(--color-primary);
    padding: 10px 0;
    transition: all 0.5s ease;
}

.main-nav.scrolled {
    padding: 5px 0;
    background-color: rgba(233, 37, 38, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
}

.logo-container {
    text-align: center;
    padding: 20px 0;
    background-color: var(--color-primary);
}

.main-logo {
    max-width: 500px;
    height: auto;
}

.search-container {
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 200px;
    padding: 8px 35px 8px 15px;
    border: 2px solid var(--color-light-gray);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    background-color: #fff;
    color: #333;
}

.search-input:focus {
    width: 250px;
    border-color: var(--color-secondary);
    box-shadow: 0 0 5px rgba(254, 198, 0, 0.3);
}

.search-button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--color-gray);
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: var(--color-primary);
}

/* Animaciones para el menú */
.nav-links {
    font-family: 'Montserrat', serif;
    font-size: 1.2rem;
    transition: all 0.3s ease-in-out;
}

@media screen and (max-width: 768px) {
    .main-nav {
        text-align: left;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .search-form {
        width: 100%;
    }

    .main-logo {
        max-width: 150px;
    }

    .nav-links {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        max-height: 0;
        overflow: hidden;
        font-size: 1rem;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: 1000px; /* Altura máxima para la animación */
    }

    /* Animación para los items del menú */
    nav ul li {
        transform: translateX(-10px);
        transition: all 0.3s ease-in-out;
        opacity: 0;
    }

    .nav-links.active li {
        transform: translateX(0);
        opacity: 1;
    }

    /* Aplicar delays progresivos a cada item */
    nav ul li:nth-child(1) { transition-delay: 0.1s; }
    nav ul li:nth-child(2) { transition-delay: 0.2s; }
    nav ul li:nth-child(3) { transition-delay: 0.3s; }
    nav ul li:nth-child(4) { transition-delay: 0.4s; }
    nav ul li:nth-child(5) { transition-delay: 0.5s; }

    .search-container {
        display: block;
        margin: 5px 0;
        padding: 0 10px;
    }

    .search-input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .search-form {
        width: 100%;
    }

    .search-input:focus {
        width: 100%;
    }

    nav ul li {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul ul {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #f91f20; /* Version más clara del primary */
    }

    nav ul li:hover>ul {
        display: block;
    }

    .social-bar ul {
        text-align: center;
    }

    .social-bar ul li:last-child {
        margin-right: 15px;
    }
}

/* Hero Video Section */
.hero-video-container {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(var(--color-primary-rgb), 0.4),
        rgba(var(--color-secondary-rgb), 0.1)
    );
    z-index: 2;
}

.hero-content-principal {
    position: relative;
    padding: 20px;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: var(--color-white);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 15px 40px;
    background-color: var(--color-secondary);
    color: var(--color-dark);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--color-white);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 1s;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-white);
    border-radius: 15px;
    margin: 0 auto 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-white);
    border-radius: 2px;
    margin: 4px auto;
    animation: scroll 1.5s infinite;
}

.arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-white);
    border-bottom: 2px solid var(--color-white);
    transform: rotate(45deg);
    animation: arrowDown 1.5s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

@keyframes arrowDown {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-video-container {
        height: 70vh;
        min-height: 500px;
    }
}

/* Sección de Pilares */
.pillars-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Encabezado de la sección */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.title-decoration {
    width: 80px;
    height: 3px;
    background: var(--color-primary);
    margin: 0 auto 15px;
    position: relative;
}

.title-decoration::before,
.title-decoration::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--color-secondary);
    top: -6px;
}

.title-decoration::before {
    left: 15px;
}

.title-decoration::after {
    right: 15px;
}

/* Para títulos en secciones con fondo oscuro */
.section-header.light .section-title {
    color: var(--color-white);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Contenedor de pilares */
.pillars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Tarjetas de pilares */
.pillar-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;

    background: var(--color-white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 2rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.pillar-card:hover .pillar-icon {
    background: var(--color-secondary);
    transform: rotateY(360deg);
}

.pillar-card h3 {
    color: var(--color-dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.pillar-card p {
    color: var(--color-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.pillar-hover {
    position: absolute;
    inset: 0;
    /* Esto reemplaza top, left, width y height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.95), rgba(var(--color-secondary-rgb), 0.95));
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.hover-text {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 600;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}


/* Clase que se añadirá cuando sea visible */
.pillar-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays para cuando sean visibles */
.pillar-card:nth-child(1).visible { transition-delay: 0.1s; }
.pillar-card:nth-child(2).visible { transition-delay: 0.1s; }
.pillar-card:nth-child(3).visible { transition-delay: 0.1s; }
.pillar-card:nth-child(4).visible { transition-delay: 0.1s; }
.pillar-card:nth-child(5).visible { transition-delay: 0.2s; }
.pillar-card:nth-child(6).visible { transition-delay: 0.2s; }
.pillar-card:nth-child(7).visible { transition-delay: 0.2s; }
.pillar-card:nth-child(8).visible { transition-delay: 0.2s; }

/* Responsive */
@media screen and (max-width: 768px) {
    .pillars-section {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .pillars-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pillar-card {
        padding: 30px 20px;
    }
}

/* Sección Misión, Visión y Valores */
.mission-values-section {
    position: relative;
    z-index: 1;
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 80px 0;
}

.mission-values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-image: url('fondo_nuestra_esencia.png');*/
    animation: cambioFondo 25s infinite;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: -1;
    transition: opacity 1s ease-in-out;
}

@keyframes cambioFondo {
    0%   { background-image: url('fondo1.jpg'); }
    25%  { background-image: url('fondo2.jpg'); }
    50%  { background-image: url('fondo3.jpg'); }
    75%  { background-image: url('fondo4.jpg'); }
    100%   { background-image: url('fondo1.jpg'); }
}

/* Mejorar contraste de los textos */
.mission-values-section .info-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card p {
    text-align: justify;
}

.mission-values-section .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.mission-values-section .value-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-values-section .value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mission-values-section .section-title {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mission-values-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

/* Columna izquierda */
.left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.info-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--color-dark);
    transition: all 0.3s ease;
}

.info-card:hover .card-icon {
    transform: rotateY(180deg);
}

.info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.info-card p, .info-card ul {
    font-size: 1rem;
    line-height: 1.6;
}

.info-card ul {
    padding-left: 20px;
}

.info-card ul li {
    margin-bottom: 10px;
    font-family: 'Merriweather', 'serif';
}

/* Columna derecha - Valores */
.right-column {
    flex: 1;
}

.values-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    height: 100%;
}

.value-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(30px);
}

.value-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.value-icon {
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 20px;
    color: var(--color-dark);
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: rotateY(180deg);
}

.value-card h4 {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive */
@media screen and (max-width: 968px) {
    .mission-values-container {
        flex-direction: column;
    }

    .values-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .values-container {
        grid-template-columns: 1fr;
    }

    .info-card, .value-card {
        padding: 20px;
    }
}

/* Sección de Servicios en Línea */
.online-services {
    padding: 100px 20px;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.service-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

/* Nuevo overlay para construcción */
.construction-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.construction-overlay i {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
    animation: constructionBounce 1s ease-in-out infinite alternate;
}

.construction-overlay span {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    padding: 0 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

/* Modificar el hover existente */
.service-card:hover .construction-overlay {
    opacity: 1;
}

.service-card:hover .construction-overlay span {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

/* Mantener efectos existentes */
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Animación para el ícono de construcción */
@keyframes constructionBounce {
    from {
        transform: translateY(0) rotate(0deg);
    }
    to {
        transform: translateY(-10px) rotate(10deg);
    }
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-image {
    position: relative;
    padding-top: 66.67%; /* Proporción 3:2 */
    overflow: hidden;
}

.service-image img {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0) 100%);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: var(--color-white);
    text-align: center;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-content {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: translateY(-5px) scale(1.1);
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.service-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .online-services {
        padding: 60px 15px;
    }

    .services-grid {
        gap: 20px;
        padding: 10px;
    }

    .service-content {
        padding: 15px;
    }

    .service-icon {
        font-size: 1.5rem;
    }

    .service-content h3 {
        font-size: 1.2rem;
    }
}

/* Footer Styles */
.main-footer {
    position: relative;
    background: var(--color-dark);
    color: var(--color-white);
    overflow: hidden;
}

/* Waves Animation */
.footer-waves {
    position: relative;
    width: 100%;
    height: 100px;
}

.waves {
    position: relative;
    width: 100%;
    height: 100px;
    margin-bottom: -7px;
}

.wave-parallax > use {
    animation: wave-move 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.wave-parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.wave-parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.wave-parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.wave-parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes wave-move {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* Footer Content */
.footer-content {
    position: relative;
    padding: 80px 20px;
    background: var(--color-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Footer Sections */
.footer-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.2s; }
.footer-section:nth-child(2) { animation-delay: 0.4s; }
.footer-section:nth-child(3) { animation-delay: 0.6s; }
.footer-section:nth-child(4) { animation-delay: 0.8s; }

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.contact-details .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.contact-item i {
    color: var(--color-secondary);
    font-size: 1.2rem;
}

/* Quick Links & Services */
.footer-section h3 {
    color: var(--color-secondary);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--color-primary);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer-section ul li a i {
    color: var(--color-secondary);
    margin-right: 10px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

.footer-section ul li a:hover i {
    transform: translateX(5px);
}

/* Newsletter */
.newsletter-form .input-group {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px 0 0 25px;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.newsletter-form button {
    padding: 12px 25px;
    border: none;
    background: var(--color-secondary);
    color: var(--color-dark);
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-secondary);
    color: var(--color-dark);
    transform: translateY(-5px);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--color-secondary);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .footer-content {
        padding: 60px 20px;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

/* Sección de Noticias */
.news-section {
    padding: 100px 20px;
    background: #f8f9fa;
}

/* Buscador de noticias */
.news-search {
    max-width: 600px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 50px;
    overflow: hidden;
    background: var(--color-white);
}

.search-wrapper input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-btn {
    padding: 15px 25px;
    border: none;
    background: var(--color-primary);
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--color-secondary);
}

/* Contenedor de noticias */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Tarjeta de noticia */
.news-card {
    position: relative;
    display: flex;
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(20px);
    max-height: 400px;
}

.news-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Imagen de la noticia */
.news-image {
    flex: 0 0 500px;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* Fecha */
.news-date {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-primary);
    color: white;
    padding: 10px 15px;
    border-radius: 0 0 0 10px;
    text-align: center;
    line-height: 1.2;
    min-width: 65px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.news-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    color: white;
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
    margin-top: 4px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 600;
    color: white;
}

/* Contenido de la noticia */
.news-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}


.news-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.news-content p {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--color-secondary);
    gap: 15px;
}

/* Paginación */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination-btn {
    background: var(--color-white);
    border: 2px solid var(--color-light-gray);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    font-weight: 500;
}

.pagination-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.pagination-btn:not(:disabled):hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.pagination-ellipsis {
    padding: 8px;
    color: var(--color-gray);
    font-weight: bold;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--color-light-gray);
}

.current-page {
    font-weight: 600;
    color: var(--color-dark);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .news-card {
        flex-direction: column;
        max-height: none;
    }

    .news-date {
        width: 100%;
        border-radius: unset;
        text-align: center;
    }

    .news-image {
        flex: 0 0 200px;
    }

    .news-image img {
        width: 100%;
        height: 100%;
    }

    .news-content {
        padding: 20px;
    }

    .news-content h3 {
        font-size: 1.2rem;
    }
}

/* Estilos para la página de noticia individual */
.single-news {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    color: var(--color-gray);
}


.news-title {
    font-size: 2.5rem;
    color: var(--color-dark);
    line-height: 1.3;
    max-width: 900px;
    margin: 0 auto;
}

.news-featured-image {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.news-featured-image:hover img {
    transform: scale(1.02);
}

.news-content {
    max-width: 800px;
    margin: 0 auto;
}

.news-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-dark);
}

/* Estilos para el contenido enriquecido de CKEditor */
.news-body h2 {
    font-size: 1.8rem;
    color: var(--color-dark);
    margin: 40px 0 20px;
}

.news-body h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin: 30px 0 15px;
}

.news-body p {
    margin-bottom: 20px;
}

.news-body ul, .news-body ol {
    margin: 20px 0;
    padding-left: 20px;
}

.news-body li {
    margin-bottom: 10px;
}

.news-body blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 20px;
    margin: 30px 0;
    background: rgba(var(--color-primary-rgb), 0.05);
    font-style: italic;
}

.image-wrapper {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.content-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-wrapper:hover .content-image {
    transform: scale(1.02);
}

/* Sección de compartir */
.news-share {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-light-gray);
    text-align: center;
}

.news-share h4 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 30px;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.twitter {
    background-color: #1d1b1b;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.tiktok {
    background-color: #0e0e0e;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .single-news {
        margin: 20px auto;
    }

    .news-title {
        font-size: 1.8rem;
    }

    .news-meta {
        flex-direction: column;
        gap: 15px;
    }

    .news-body {
        font-size: 1rem;
    }

    .share-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .share-btn {
        justify-content: center;
    }
}

/* Estilos para la página de la Alcaldesa */
.mayor-hero {
    position: relative;
    height: 110vh;
    overflow: hidden;
}

.mayor-image-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.mayor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 10s ease;
}

.mayor-hero:hover .mayor-image {
    transform: scale(1.1);
}

.mayor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2),
        rgba(var(--color-primary-rgb), 0.6)
    );
}

.mayor-title {
    position: absolute;
    bottom: 10%;
    left: 10%;
    color: var(--color-white);
    animation: fadeInUp 1s ease;
}

.mayor-title h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mayor-position {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.mayor-period {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Sección de cita */
.quote-section {
    background-color: var(--color-primary);
    padding: 60px 0;
    color: var(--color-white);
}

.quote-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.quote-icon {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInDown 1s ease forwards;
}

.quote-container blockquote {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
    font-family: 'Merriweather', 'serif';
}

.quote-author {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-secondary);
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

/* Sección de biografía */
.biography-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.biography-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.biography-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 50px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

/* Tarjetas de logros */
.achievement-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.achievement-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.achievement-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
    width: 70px;
    height: 70px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.achievement-icon i {
    font-size: 30px;
    color: var(--color-white);
}

.achievement-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.achievement-card ul {
    list-style: none;
    padding: 0;
}

.achievement-card ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--color-gray);
}

.achievement-card ul li:before {
    content: "•";
    color: var(--color-primary);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Sección de visión */
.vision-section {
    margin-top: 80px;
    text-align: center;
}

.vision-section h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--color-dark);
}

.vision-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.vision-pillar {
    padding: 30px;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.vision-pillar.visible {
    opacity: 1;
    transform: translateY(0);
}

.vision-pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.vision-pillar i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.vision-pillar h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.vision-pillar p {
    color: var(--color-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .vision-pillars {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .mayor-title h1 {
        font-size: 2.5rem;
    }

    .mayor-position {
        font-size: 1.3rem;
    }

    .quote-container blockquote {
        font-size: 1.5rem;
    }

    .achievement-cards {
        grid-template-columns: 1fr;
    }

    .vision-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .vision-pillars {
        grid-template-columns: 1fr;
    }
}

.news-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 30px;
    color: var(--color-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-category i {
    font-size: 0.9em;
}

.news-category:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.2);
}

/* Si hay múltiples etiquetas, puedes separarlas */
.news-category span {
    position: relative;
    font-size: 0.95em;
}

.news-category span:not(:last-child)::after {
    content: ',';
    margin-right: 5px;
}

.news-tickets {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.news-tickets{
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-tickets i, .news-date i {
    color: var(--color-primary);
}

/* Estilos para la sección de próximos pagos en línea */
.payment-info-card {
    padding: 15px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.payment-info-card .card-icon {
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
}

.payment-info-card .card-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.3;
    transform: scale(1.2);
    animation: pulse 2s infinite;
}

.payment-info-card .card-icon i {
    font-size: 32px;
    color: var(--color-white);
}

.payment-info-card h3 {
    color: var(--color-dark);
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.payment-info-card p {
    color: var(--color-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.progress-bar {
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    animation: progressMove 2s ease-in-out infinite;
}

.status-text {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards 0.5s;
}

@keyframes pulse {
    0% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

@keyframes progressMove {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .payment-info-card {
        padding: 15px 25px;
    }

    .payment-info-card h3 {
        font-size: 1.4rem;
    }

    .payment-info-card p {
        font-size: 1rem;
    }

    .payment-info-card .card-icon {
        width: 60px;
        height: 60px;
    }

    .payment-info-card .card-icon i {
        font-size: 24px;
    }
}

/* Banner de servicio */
.service-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.service-banner:hover .banner-image {
    transform: scale(1);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(var(--color-primary-rgb), 0.5),
        rgba(var(--color-primary-rgb), 0.3)
    );
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-white);
    width: 100%;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .service-banner {
        height: 150px;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .banner-content p {
        font-size: 1rem;
    }
}

/* Breadcrumb styles */
.breadcrumb-container {
    background: var(--color-white);
    padding: 15px 0;
    position: relative;
    overflow: hidden;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    position: relative;
}

.breadcrumb-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-gray);
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}

.breadcrumb-item a:hover .separator {
    color: var(--color-primary);
    transform: translateX(2px);
}

.breadcrumb-item .separator {
    display: flex;
    align-items: center;
    margin: 0 10px;
    color: var(--color-light-gray);
    transition: all 0.3s ease;
}

.breadcrumb-item .separator i {
    font-size: 0.8rem;
}

.breadcrumb-item.active .text {
    color: var(--color-primary);
    font-weight: 500;
}

/* Animación del gradiente */
@keyframes gradientSlide {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .breadcrumb-container {
        padding: 12px 0;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
    }

    .breadcrumb-item .separator {
        margin: 0 8px;
    }
}

.check-fines {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #c41e1f 100%);
    overflow: hidden;
}

.fines-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.fines-text {
    flex: 1;
}

.fines-text h2 {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fines-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
}

.fines-button {
    text-decoration: none;
    background: var(--color-secondary);
    padding: 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.fines-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.button-content {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--color-secondary);
    padding: 20px 30px;
    border-radius: 15px;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--color-dark);
}

.text-wrapper {
    display: flex;
    flex-direction: column;
}

.main-text {
    color: var(--color-dark);
    font-size: 1.4rem;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.sub-text {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.9rem;
}

.arrow {
    font-size: 1.2rem;
    color: var(--color-dark);
    transition: transform 0.3s ease;
}

.fines-button:hover .arrow {
    transform: translateX(5px);
}

/* Efectos de decoración */
.fines-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    top: -250px;
    right: -250px;
    animation: pulse 4s ease-in-out infinite;
}

.decoration-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.5;
}

@media screen and (max-width: 968px) {
    .fines-content {
        flex-direction: column;
        text-align: center;
    }

    .fines-text h2 {
        font-size: 2.8rem;
    }

    .fines-text p {
        margin: 0 auto;
    }
}

@media screen and (max-width: 576px) {
    .fines-text h2 {
        font-size: 2.2rem;
    }

    .button-content {
        padding: 15px 20px;
    }

    .icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .icon-wrapper i {
        font-size: 1.5rem;
    }

    .main-text {
        font-size: 1.2rem;
    }
}

/* Modal personalizado para consulta de multas */
body.modal-open {
    overflow: hidden;
}

.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80%;
    max-height: 90vh;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1051;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.custom-modal.solicitud {
    width: 500px;
    height: 480px;
}

.custom-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.custom-modal.closing {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
}

.custom-modal-backdrop.closing {
    opacity: 0;
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
    background: linear-gradient(to right, rgba(var(--color-primary-rgb), 0.05), transparent);
}

.custom-modal-header h3 {
    margin: 0;
    color: var(--color-dark);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(var(--color-primary-rgb), 0.1);
}

.modal-close i {
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--color-primary);
    transform: rotate(90deg);
}

.modal-close:hover i {
    color: var(--color-white);
}

.custom-modal-body {
    position: relative;
    overflow: auto;
    height: calc(90vh - 81px);
}

.custom-modal-body img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.custom-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 1;
    background: transparent;
}

.modal-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.modal-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(var(--color-primary-rgb), 0.1);
    border-left-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.modal-loader p {
    color: var(--color-gray);
    font-size: 1.1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .custom-modal-header {
        padding: 15px 20px;
    }

    .custom-modal-header h3 {
        font-size: 1.2rem;
    }

    .custom-modal-body {
        height: calc(90vh - 71px);
    }

    .modal-close {
        width: 36px;
        height: 36px;
    }

    .modal-loader p {
        font-size: 0.9rem;
    }

    .spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .custom-modal.solicitud {
        width: 95%;
        max-height: 460px;
    }
}

/* Sección de Enlaces Institucionales */
.institutional-links-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-white) 0%, rgba(var(--color-primary-rgb), 0.05) 100%);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.institutional-links-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.institutional-links-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.03) 0%, transparent 80%);
    animation: rotate 60s linear infinite;
    z-index: 0;
}

.institutional-links-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.institutional-link-card {
    height: 240px;
    perspective: 1000px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.institutional-link-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.institutional-link-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.institutional-link-card:hover .card-front,
.institutional-link-card:hover .card-back {
    box-shadow: 0 15px 40px rgba(var(--color-primary-rgb), 0.2);
}

.card-front {
    background-color: var(--color-white);
}

.card-back {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.link-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.link-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s ease;
}

.institutional-link-card:hover .link-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
}

.link-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
}

.link-title h3 {
    color: var(--color-white);
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.institutional-link-card:hover .link-title h3 {
    transform: translateY(-5px);
}

.back-content {
    text-align: center;
}

.back-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.back-icon i {
    font-size: 28px;
    color: var(--color-white);
}

.back-content h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.back-content p {
    margin: 0 0 20px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.link-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.link-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Animaciones */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media screen and (max-width: 1400px) {
    .institutional-links-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 991px) {
    .institutional-links-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .institutional-links-container {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .institutional-links-section {
        padding: 60px 0;
    }
}

/* Estilos para la imagen del botón en check-fines */
.button-icon-image {
    width: 62px;
    height: 62px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.fines-button:hover .button-icon-image {
    transform: scale(1.1);
}

/* Ajuste para el contenedor del icono si es necesario */
.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para la página de Concejo Municipal */

/* Hero Section */
.council-hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5),
        rgba(var(--color-primary-rgb), 0.6)
    );
}

.hero-content {
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--color-white);
    padding: 0 20px;
    animation: fadeInUp 1s ease;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.council-intro {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-white) 0%, rgba(var(--color-primary-rgb), 0.05) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    box-shadow: 0 10px 30px rgba(var(--color-primary-rgb), 0.3);
}

.intro-icon i {
    font-size: 36px;
}

.intro-content h2 {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.intro-content p {
    font-size: 1.2rem;
    color: var(--color-gray);
    line-height: 1.8;
}

/* Members Section */
.council-members {
    padding: 80px 0;
    background-color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.title-decoration {
    height: 4px;
    width: 80px;
    background: var(--color-primary);
    margin: 0 auto;
    position: relative;
}

.title-decoration::before,
.title-decoration::after {
    content: '';
    position: absolute;
    height: 4px;
    width: 40px;
    background: var(--color-secondary);
}

.title-decoration::before {
    left: -30px;
}

.title-decoration::after {
    right: -30px;
}

/* Members Section - Modificación para la distribución en 2 filas de 5 */
.members-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Destacar la tarjeta de la alcaldesa ocupando todo el ancho */
.member-card.mayor {
    grid-column: span 5;
    max-width: 600px;
    margin: 0 auto 40px;
}

.member-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.member-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(var(--color-primary-rgb), 0.2);
}

.member-card-inner {
    position: relative;
    background: var(--color-white);
}

.member-photo {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.member-card.mayor .member-photo {
    height: 400px;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-card:hover .member-photo img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        transparent 100%
    );
}

.member-info {
    padding: 25px;
    text-align: center;
    position: relative;
}

.member-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-dark);
}

.member-card.mayor .member-name {
    font-size: 1.8rem;
}

.member-position {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 1rem;
}

.member-card.mayor .member-position {
    font-size: 1.2rem;
}

.member-decoration {
    height: 3px;
    width: 40px;
    background: var(--color-primary);
    margin: 15px auto 0;
    position: relative;
}

.member-decoration::before,
.member-decoration::after {
    content: '';
    position: absolute;
    height: 3px;
    width: 15px;
    background: var(--color-secondary);
    top: 0;
}

.member-decoration::before {
    left: -10px;
}

.member-decoration::after {
    right: -10px;
}

/* Frase final */
.council-oath {
    padding: 80px 0;
    background: linear-gradient(135deg,
        var(--color-primary) 0%,
        var(--color-secondary) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.council-oath::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
}

.oath-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.oath-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-icon {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.oath-content blockquote {
    font-size: 1.8rem;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .member-card.mayor {
        grid-column: span 3;
    }
}

@media screen and (max-width: 768px) {
    .council-hero {
        height: 50vh;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .intro-content h2 {
        font-size: 2rem;
    }

    .intro-content p {
        font-size: 1.1rem;
    }

    .oath-content blockquote {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .members-grid {
        grid-template-columns: 1fr;
    }

    .member-card.mayor {
        grid-column: span 1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .member-photo {
        height: 250px;
    }

    .member-card.mayor .member-photo {
        height: 300px;
    }
}

/*APARTADO PARA FORMULARIO DE SOLICITUD DE SERVICIOS*/
/* From Uiverse.io by Yaya12085 */
.container-document {
    height: 300px;
    width: 300px;
    border-radius: 10px;
    box-shadow: 4px 4px 30px rgba(0, 0, 0, .2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    gap: 5px;
    background-color: rgba(0, 110, 255, 0.041);
}

.header-document {
    flex: 1;
    width: 100%;
    border: 2px dashed royalblue;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.header-document svg {
    height: 100px;
}

.header-document p {
    text-align: center;
    color: black;
}

.footer-document {
    background-color: rgba(0, 110, 255, 0.075);
    width: 100%;
    height: 40px;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: black;
    border: none;
}

.footer-document svg {
    height: 130%;
    fill: royalblue;
    background-color: rgba(70, 66, 66, 0.103);
    border-radius: 50%;
    padding: 2px;
    cursor: pointer;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.205);
}

.footer-document p {
    flex: 1;
    text-align: center;
}

#file-dpi {
    display: none;
}

/* From Uiverse.io by HoseinParvaresh */
.container-solicitid {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-solicitid {
    width: 95%;
    padding-bottom: 20px;
    background-image: linear-gradient(to bottom, var(--color-secondary), var(--color-primary));
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 0.5rem;
}

.title-solicitid {
    color: wheat;
    margin: 3rem 0;
    font-size: 2rem;
}

.input-solicitid {
    margin: 0.5rem 0;
    padding: 1rem 0.5rem;
    width: 20rem;
    background-color: inherit;
    color: var();
    border: none;
    outline: none;
    border-bottom: 1px solid wheat;
    transition: all 400ms;
}

.input-solicitid:hover {
    background-color: var(--color-white);
    border: none;
    border-radius: 0.5rem;
}

.btn-solicitid {
    height: 3rem;
    width: 20rem;
    margin-top: 3rem;
    background-color: wheat;
    border-radius: 0.5rem;
    border: none;
    font-size: 1.2rem;
    transition: all 400ms;
    cursor: pointer;
    box-shadow:
        0 0 10px antiquewhite,
        0 0 10px antiquewhite;
}

.btn-solicitid:hover {
    background-color: antiquewhite;
    box-shadow: none;
}

/*TARJETA DE CLICK REGISTRAR SOLICITUD SERVICIOS*/

/* From Uiverse.io by eslam-hany */
.card-solicitud {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
}

.card-solicitud::before,
.card-solicitud::after {
    position: absolute;
    content: "";
    width: 20%;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: bold;
    background-color: var(--color-primary);
    transition: all 0.5s;
}

.card-solicitud::before {
    top: 0;
    right: 0;
    border-radius: 0 15px 0 100%;
}

.card-solicitud::after {
    bottom: 0;
    left: 0;
    border-radius: 0 100% 0 15px;
}

.card-solicitud:hover::before,
.card-solicitud:hover:after {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    transition: all 0.5s;
}

.card-solicitud:hover:after {
    content: "REGISTRARME";
}

.services-search-section {
    padding: 20px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    text-align: center;
}

.regresar-servicios-municipales {
    text-align: left;
}

.boton-regresar-servicios-municipales {
    background: var(--color-primary);
    color: white;
    padding: 10px;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.boton-regresar-servicios-municipales:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-header {
    margin-bottom: 30px;
}

.search-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.search-header p {
    font-size: 1.1rem;
    color: #6c757d;
}

.search-form-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.services-search-form .input-group {
    display: flex;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.services-search-input {
    flex-grow: 1;
    padding: 18px 25px;
    border: none;
    font-size: 1.1rem;
    color: #2c3e50;
    border-radius: 50px 0 0 50px;
    transition: all 0.3s ease;
}

.services-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(41, 128, 185, 0.3);
}

.services-search-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0 30px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    transition: all 0.3s ease;
}

.services-search-btn:hover {
    background-color: var(--color-secondary);
    color: #0c0c0c;
}

.departments-section {
    padding: 80px 0;
    background: white;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 55px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.department-card {
    position: relative;
    height: 200px;
    perspective: 1000px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translateY(30px);
    opacity: 0;
    cursor: pointer;
}

.department-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.department-front, .department-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.titulo-departamentos {
    display: grid;
    grid-column: 1;
    gap: 15px;
}

@keyframes rebotar {
    0%, 100% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-15px);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.titulo-departamentos i {
    font-size: 2rem;
    animation: rebotar 0.8s ease-in-out infinite;
}

.department-front {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: black;
    z-index: 2;
    transform: rotateY(0deg);
}

.department-front h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.department-back {
    background: white;
    padding: 20px;
    transform: rotateY(180deg);
    overflow-y: auto;
    z-index: 1;
}

.department-card:hover .department-front {
    transform: rotateY(180deg);
}

.department-card:hover .department-back {
    transform: rotateY(0deg);
}

@media (max-width: 767px) {
    .department-card {
        height: auto;
        min-height: 180px;
    }

    .department-front h3 {
        font-size: 1.3rem;
    }
}

.back-content {
    height: 100%;
}

.back-content h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px;
}

.department-details {
    font-size: 0.9rem;
    color: #555;
}

.detail-description {
    margin-bottom: 15px;
    line-height: 1.4;
}

.detail-address {
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.detail-staff, .detail-contact {
    margin-bottom: 15px;
}

.detail-contact ul {
    padding: 10px;
}

.detail-staff h5, .detail-contact h5 {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    margin: 10px 0 8px;
}

.detail-staff ul, .detail-contact ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.detail-staff ul li, .detail-contact ul li {
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.detail-contact ul li i {
    color: #3498db;
    margin-right: 5px;
    width: 15px;
    text-align: center;
}

.extension {
    color: #e74c3c;
    font-weight: 600;
    margin: 0 5px;
}

@media screen and (max-width: 992px) {
    .departments-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 30px;
        padding-right: 10px;
        margin: 0 auto;
    }

    .department-card {
        margin-top: 30px;
    }

    .search-header h2 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    .services-search-section {
        padding: 40px 0;
    }

    .departments-section {
        padding-right: 35px;
    }

    .departments-grid {
        gap: 20px;
        padding: 5px;
        margin: 0 auto;
    }

    .search-header h2 {
        font-size: 1.8rem;
    }

    .services-search-input {
        padding: 15px 20px;
    }

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

    .department-card {
        height: auto;
        min-height: 180px;
        margin-right: 30px;
    }
}

/* Estilos para Top Servicios Municipales */
.top-services-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.top-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233490dc' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.top-services-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 40px;
}

.top-services-title {
    font-size: 2.2rem;
    color: black;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.top-services-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.top-services-description {
    font-size: 1.1rem;
    color: #5a6268;
    max-width: 700px;
    margin: 0 auto;
}

.top-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.top-service-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.top-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.top-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.top-service-card:hover::before {
    transform: scaleX(1);
}

.top-service-card-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.top-service-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.top-service-title {
    font-size: 1.3rem;
    color: #2a3f54;
    margin-bottom: 5px;
    font-weight: 600;
    transition: color 0.3s ease;
    overflow-wrap: break-word;
}

.top-service-card:hover .top-service-title {
    color: #590303;
}

.top-service-area {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.top-service-area i {
    margin-right: 5px;
    color: var(--color-primary);
    font-size: 0.85rem;
}

.top-service-card-body {
    padding: 20px 25px;
    flex-grow: 1;
}

.top-service-description {
    color: #5a6268;
    line-height: 1.6;
    margin-bottom: 0;
    overflow-wrap: break-word;
}

.top-service-card-footer {
    padding: 15px 25px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-service-searches {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.85rem;
}

.top-service-searches i {
    margin-right: 5px;
    color: #dc3545;
}

.top-service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #500404;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.top-service-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.top-service-card:hover .top-service-btn i {
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .top-services-section {
        padding: 40px 0;
    }

    .top-services-title {
        font-size: 1.8rem;
    }

    .top-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .top-service-card {
        margin-bottom: 0;
    }
}

/* Paginacion de departamentos municipales */
.pagination-container {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.pagination-wrapper {
    text-align: center;
}

.pagination-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: inline-block;
}

.pagination-item {
    display: inline-block;
    margin: 0 3px;
}

.pagination-item a,
.pagination-item span {
    display: inline-block;
    padding: 8px 12px;
    min-width: 30px;
    height: 25px;
    line-height: 10px;
    /* Ajustado para centrar verticalmente */
    text-align: center;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #3490dc;
    text-decoration: none;
    transition: all 0.2s;
    vertical-align: middle;
}

.pagination-item.active span {
    background-color: #3490dc;
    color: white;
    border-color: #3490dc;
}

.pagination-item.disabled span {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination-item a:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination-item-prev,
.pagination-item-next {
    margin: 0 5px;
}

.pagination-info {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    .pagination-container {
        margin-top: 40px;
        overflow: visible;
    }

    .pagination-list {
        white-space: normal;
        margin-bottom: 10px;
    }

    .pagination-item {
        margin: 0 2px 5px;
    }

    .pagination-item a,
    .pagination-item span {
        font-size: 14px;
        padding: 6px 10px;
        min-width: 20px;
        height: 20px;
        line-height: 10px;
    }

    .pagination-info {
        font-size: 0.8rem;
        margin-top: 5px;
    }
}

/* ESTILOS PARA CUENTA REGRESIVA */

.countdown-container {
    background: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(231, 76, 60, 0.4);
    max-width: 900px;
    margin: 2rem auto;
    text-align: center;
    font-family: 'Arial', sans-serif;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown-title {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.countdown-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.time-unit {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 1.8rem 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.time-unit:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.25);
}

.time-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.time-unit:hover::before {
    left: 100%;
}

.time-number {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
}

.time-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-message {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.glow-effect {
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow:
            inset 8px 8px 16px #c5c5c5,
            inset -8px -8px 16px #ffffff,
            0 0 20px rgba(233, 37, 38, 0.3);
    }
    to {
        box-shadow:
            inset 8px 8px 16px #c5c5c5,
            inset -8px -8px 16px #ffffff,
            0 0 30px rgba(233, 37, 38, 0.6);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-container {
        padding: 2rem;
        margin: 1rem;
        border-radius: 25px;
    }

    .countdown-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .countdown-display {
        gap: 0.8rem;
    }

    .time-unit {
        padding: 1.5rem 0.8rem;
        border-radius: 20px;
    }

    .time-number {
        font-size: 2.2rem;
    }

    .time-label {
        font-size: 0.8rem;
    }

    .countdown-message {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .countdown-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .time-unit {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    .time-number {
        font-size: 2.2rem;
    }

    .countdown-container {
        padding: 1.5rem;
        border-radius: 25px;
    }
}

/* Estados especiales */
.countdown-expired {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.countdown-expired .time-unit {
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    color: white;
}

.countdown-expired .time-number {
    color: white;
}

.countdown-expired .time-label {
    color: rgba(255,255,255,0.8);
}

/* FIN ESTILOS PARA CUENTA REGRESIVA */
