/* ============================================
   ANIMACIÓN DE ENTRADA PARA EL MAIN
   ============================================ */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-animation {
    animation: fadeInDown 0.8s ease-out;
}

/* ============================================
   Estilos para la página del Alcalde
   ============================================ */

/* Sección principal del contenido */
main {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sección del perfil del alcalde */
.alcalde-profile-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 3rem;
}

.alcalde-profile-header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    padding: 2rem;
    text-align: center;
    color: white;
}

.alcalde-profile-header h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.alcalde-profile-header p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
}

/* Grid para el contenido del perfil */
.alcalde-profile-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    padding: 2rem;
}

.alcalde-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.alcalde-image {
    width: 100%;
    max-width: 540px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.alcalde-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.alcalde-info h2 {
    font-size: 1.8rem;
    color: #1e40af;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.alcalde-position {
    font-size: 1.1rem;
    color: #dc2626;
    margin-bottom: 1rem;
    font-weight: 600;
}

.alcalde-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1.5rem;
}

.alcalde-contact-info {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alcalde-contact-info h3 {
    font-size: 1rem;
    color: #1e40af;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #374151;
}

.contact-item i {
    width: 20px;
    margin-right: 0.75rem;
    color: #dc2626;
    font-size: 1.1rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

/* Redes sociales del alcalde */
.alcalde-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.alcalde-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #1e40af;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.alcalde-social-links a:hover {
    background-color: #1e40af;
    transform: translateY(-3px);
   /* box-shadow: 0 6px 12px rgba(220, 38, 38, 0.3);*/
}

/* Sección de logros y gestión */
.alcalde-achievements {
    padding: 2rem;
    background-color: white;
    border-top: 3px solid #1e40af;
}

.alcalde-achievements h2 {
    font-size: 1.8rem;
    color: #1e40af;
    margin: 0 0 1.5rem 0;
    text-align: center;
    font-weight: 700;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1e40af;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(30, 64, 175, 0.15);
}

.achievement-card i {
    font-size: 2rem;
    color: #dc2626;
    margin-bottom: 0.75rem;
}

/* Colores específicos para cada icono según su tipo */
.achievement-card:nth-child(1) i {
    color: #3d58df; /* Infraestructura - Naranja */
}

.achievement-card:nth-child(2) i {
    color: #6344ab; /* Seguridad - Rojo */
}

.achievement-card:nth-child(3) i {
    color: #e06e17; /* Educación - Azul */
}

.achievement-card:nth-child(4) i {
    color: #cb855a; /* Programas Sociales - Verde */
}

.achievement-card:nth-child(5) i {
    color: #10b981; /* Sostenibilidad - Verde claro */
}

.achievement-card:nth-child(6) i {
    color: #7c3aed; /* Transparencia - Púrpura */
}

.achievement-card h3 {
    font-size: 1.1rem;
    color: #1e40af;
    margin: 0.5rem 0;
    font-weight: 700;
}

.achievement-card p {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
    .alcalde-profile-header h1 {
        font-size: 1.8rem;
    }

    .alcalde-profile-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .alcalde-image {
        max-width: 250px;
    }

    .alcalde-achievements h2 {
        font-size: 1.5rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .alcalde-social-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .alcalde-profile-header h1 {
        font-size: 1.5rem;
    }

    .alcalde-profile-content {
        padding: 1rem;
        gap: 1rem;
    }

    .alcalde-image {
        max-width: 200px;
    }

    .alcalde-info h2 {
        font-size: 1.4rem;
    }

    .alcalde-description {
        font-size: 0.95rem;
    }

    .achievement-card {
        padding: 1rem;
    }

    .achievement-card i {
        font-size: 1.5rem;
    }
}

/* ============================= */
/* ESTILOS DEL LIGHTBOX */
/* ============================= */

/* Contenedor del modal del lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    animation: fadeInLightbox 0.3s ease;
    overflow: hidden;
}

/* Mostrar el lightbox */
.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor de la imagen ampliada */
.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomInLightbox 0.3s ease;
}

/* Imagen ampliada en el lightbox */
.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Botón de cerrar */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    padding: 0;
}

.lightbox-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Botones de navegación (anterior/siguiente) */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Cursor de zoom para la imagen */
.alcalde-image {
    cursor: pointer;
}

.alcalde-image:hover {
    opacity: 0.9;
}

/* Animaciones */
@keyframes fadeInLightbox {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomInLightbox {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .lightbox-nav {
        font-size: 1.5rem;
        padding: 8px 12px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Responsive - Móvil */
@media (max-width: 480px) {
    .lightbox-close {
        top: 5px;
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-nav {
        font-size: 1.2rem;
        padding: 5px 8px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }
}


