/* =====================================================
   CSS/CONSEJO-MUNICIPAL.CSS
   Estilos específicos para la página del Consejo Municipal
   ===================================================== */

/* =====================================================
   TÍTULOS DE SECCIÓN
   ===================================================== */
.section-title-center {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title-center h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* =====================================================
   INFO SECTION
   ===================================================== */
.info-section {
    margin-bottom: var(--spacing-2xl);
}

/* =====================================================
   ALCALDE DESTACADO
   ===================================================== */
.alcalde-destacado {
    margin-bottom: var(--spacing-2xl);
}

.alcalde-card-principal {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow-md);
    display: grid;
    grid-template-columns: 400px 1fr;
    border: 1px solid var(--border);
}

.alcalde-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 550px;
    overflow: hidden;
}

.alcalde-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alcalde-badge-principal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: rotateStar 3s infinite;
}

.alcalde-badge-principal svg {
    width: 40px;
    height: 40px;
    color: #fbbf24;
}

@keyframes rotateStar {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.alcalde-info-principal {
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cargo-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
    width: fit-content;
}

.alcalde-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.nombre-autoridad {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.periodo {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border);
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
    color: var(--text);
}

.detail-icon {
    font-size: 1.25rem;
}

.bio {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* =====================================================
   GRID DE REGIDORES
   ===================================================== */
.regidores-section {
    margin-bottom: var(--spacing-2xl);
}

.regidores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.regidor-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.regidor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px var(--shadow-md);
}

.regidor-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--bg-alt);
}

.regidor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.regidor-card:hover .regidor-image img {
    transform: scale(1.05);
}

.regidor-numero {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.regidor-info {
    padding: var(--spacing-lg);
}

.regidor-info .cargo-badge {
    background: #0891b2;
    color: white;
}

.regidor-nombre {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.regidor-comision {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: var(--bg-alt);
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
}

.comision-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.regidor-comision span:last-child {
    font-size: 0.9375rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.4;
}

.regidor-bio {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* =====================================================
   SECCIÓN IN MEMORIAM
   ===================================================== */
.memoriam-section {
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 20px;
}

.memoriam-card {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: var(--spacing-xl);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 2px solid #d1d5db;
}

.memoriam-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.memoriam-header svg {
    width: 50px;
    height: 50px;
    color: #6b7280;
    margin-bottom: var(--spacing-sm);
    opacity: 0.7;
}

.memoriam-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.memoriam-divider {
    width: 100px;
    height: 2px;
    background: #9ca3af;
    margin: 0 auto;
}

.memoriam-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--spacing-xl);
}

.memoriam-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.memoriam-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.memoriam-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.memoriam-ribbon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.memoriam-ribbon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.memoriam-info {
    display: flex;
    flex-direction: column;
}

.memoriam-dates {
    font-size: 1.125rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: var(--spacing-xs);
    font-style: italic;
}

.memoriam-nombre {
    font-size: 2rem;
    font-weight: 800;
    color: #374151;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.memoriam-cargo {
    font-size: 1.125rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.memoriam-comision {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: #f3f4f6;
    border-radius: 8px;
    margin-bottom: var(--spacing-lg);
}

.memoriam-texto {
    margin-bottom: var(--spacing-lg);
}

.memoriam-texto p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.memoriam-quote {
    padding: var(--spacing-md);
    background: #f9fafb;
    border-left: 4px solid #6b7280;
    border-radius: 8px;
    position: relative;
}

.memoriam-quote svg {
    width: 30px;
    height: 30px;
    color: #d1d5db;
    margin-bottom: var(--spacing-xs);
}

.memoriam-quote p {
    font-size: 1.125rem;
    font-style: italic;
    color: #374151;
    line-height: 1.7;
    margin-bottom: var(--spacing-xs);
}

.memoriam-quote span {
    font-size: 0.9375rem;
    color: #6b7280;
    font-weight: 600;
}

/* =====================================================
   SESIONES DEL CONSEJO
   ===================================================== */
.sesiones-section {
    margin-bottom: var(--spacing-2xl);
}

.sesiones-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.sesion-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition-normal);
}

.sesion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow-md);
}

.sesion-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.sesion-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
}

.sesion-card p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.sesion-time {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
    .alcalde-card-principal {
        grid-template-columns: 1fr;
    }
    
    .alcalde-image-wrapper {
        min-height: 400px;
    }
    
    .memoriam-content {
        grid-template-columns: 1fr;
    }
    
    .regidores-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-title-center h2 {
        font-size: 2rem;
    }
    
    .alcalde-image-wrapper {
        min-height: 320px;
    }
    
    .alcalde-info-principal {
        padding: var(--spacing-md);
    }
    
    .nombre-autoridad {
        font-size: 1.75rem;
    }
    
    .regidores-grid {
        grid-template-columns: 1fr;
    }
    
    .regidor-image {
        height: 280px;
    }
    
    .memoriam-card {
        padding: var(--spacing-md);
    }
    
    .memoriam-header h2 {
        font-size: 1.625rem;
    }
    
    .memoriam-nombre {
        font-size: 1.625rem;
    }
    
    .memoriam-texto p {
        font-size: 1rem;
    }
    
    .sesiones-info {
        grid-template-columns: 1fr;
    }
}