/* Portal Venustiano Carranza - Municipio Pages */
/* Self-contained styles for the municipio section */

body.preset-institucional {
    --color-primary: #0a63b6;
    --color-primary-dark: #084c8a;
    --color-primary-light: #5aa8e6;
    --color-secondary: #0f9d8a;
    --color-accent: #0f9d8a;
}

/* ========================================
   PAGE HERO BANNER (mirrors gobierno)
======================================== */
.page-hero {
    background: linear-gradient(135deg, #0f3e66 0%, #0d2f4f 55%, #0a2a45 100%);
    padding: 7rem 0 3rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10,99,182,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15,157,138,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.page-hero .breadcrumb a:hover {
    color: #fff;
}

.page-hero .breadcrumb i {
    font-size: 0.7rem;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   PROFILE SECTION & CARD
======================================== */
.profile-section {
    padding: 3rem 0;
    background: var(--color-gray-50);
}

.profile-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 420px 1fr;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.profile-photo {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f3e66 0%, #0d2f4f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.profile-photo-zoom-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.profile-photo:hover .profile-photo-zoom-hint {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: rgba(10, 99, 182, 0.8);
}

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

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

.profile-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(13,47,79,0.95));
    color: #fff;
}

.profile-photo-overlay h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.profile-photo-overlay span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

.profile-info {
    padding: 2.5rem;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(10,99,182,0.1);
    color: var(--color-primary);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.profile-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.3rem;
}

.profile-info .profile-title {
    font-size: 1.05rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-info .profile-bio {
    color: var(--color-gray-600);
    line-height: 1.8;
    font-size: 0.95rem;
}

.profile-info .profile-bio p {
    margin-bottom: 1rem;
}

/* ========================================
   CONTACT BAR
======================================== */
.contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray-200);
}

.contact-bar-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

.contact-bar-item i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* ========================================
   INFO CARDS GRID
======================================== */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.info-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.info-card-icon.blue {
    background: rgba(10,99,182,0.1);
    color: var(--color-primary);
}

.info-card-icon.green {
    background: rgba(15,157,138,0.1);
    color: #0f9d8a;
}

.info-card-icon.purple {
    background: rgba(139,92,246,0.1);
    color: #8b5cf6;
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-gray-900);
}

.info-card p,
.info-card ul {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.7;
}

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

.info-card ul li {
    padding: 0.35rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.info-card ul li i {
    color: var(--color-primary);
    margin-top: 3px;
    flex-shrink: 0;
}

/* ========================================
   MUNICIPIO DUAL GRID (Economy + Fiestas)
======================================== */
.municipio-dual-grid {
    grid-template-columns: repeat(2, 1fr);
}

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

.info-card-wide {
    display: flex;
    flex-direction: column;
}

/* ========================================
   FIESTAS COMPACT LIST
======================================== */
.fiestas-compact {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fiesta-item {
    display: grid;
    grid-template-columns: 75px 1fr auto;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-gray-100, #f1f5f9);
    font-size: 0.88rem;
    align-items: center;
}

.fiesta-item:last-child {
    border-bottom: none;
}

.fiesta-date {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.8rem;
    background: rgba(10, 99, 182, 0.08);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-align: center;
    white-space: nowrap;
}

.fiesta-name {
    color: var(--color-gray-800, #1e293b);
    font-weight: 500;
}

.fiesta-lugar {
    color: var(--color-gray-500, #64748b);
    font-size: 0.8rem;
    text-align: right;
    white-space: nowrap;
}

/* ========================================
   SONG COMPACT
======================================== */
.song-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.song-title-compact {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gray-900, #0f172a);
}

.song-lyrics-compact {
    font-style: italic;
    color: var(--color-gray-600, #475569);
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 1rem;
    background: var(--color-gray-50, #f8fafc);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 0.75rem 0.75rem 0;
    max-height: 180px;
    overflow-y: auto;
}

.song-lyrics-compact p {
    margin-bottom: 0.75rem;
}

.song-lyrics-compact p:last-child {
    margin-bottom: 0;
}

.video-container-compact {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-container-compact video {
    width: 100%;
    display: block;
    max-height: 250px;
    object-fit: cover;
}

/* ========================================
   GALLERY COMPACT GRID
======================================== */
.gallery-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.gallery-grid-compact img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.gallery-grid-compact img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.gallery-glifo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200, #e2e8f0);
}

.gallery-glifo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 0.5rem;
}

.gallery-glifo span {
    font-size: 0.85rem;
    color: var(--color-gray-500, #64748b);
    font-style: italic;
}

/* ========================================
   ECONOMY PROGRESS BARS
======================================== */
.economy-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-item .progress-label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-gray-800, #1e293b);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.progress-wrapper {
    height: 10px;
    background: var(--color-gray-200, #e2e8f0);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    transition: width 1s ease-in-out;
}

.progress-item:nth-child(2) .progress-bar-fill {
    background: linear-gradient(90deg, #0f9d8a 0%, #20c9b0 100%);
}

.progress-item:nth-child(3) .progress-bar-fill {
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
}

/* ========================================
   VISIT BAR
======================================== */
.municipio-visit-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.visit-bar-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.visit-bar-item > i {
    font-size: 1.5rem;
    color: var(--color-primary);
    line-height: 1;
    margin-top: 2px;
}

.visit-bar-item div strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gray-900, #0f172a);
    margin-bottom: 0.2rem;
}

.visit-bar-item div span {
    font-size: 0.85rem;
    color: var(--color-gray-600, #475569);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 991px) {
    .profile-card {
        grid-template-columns: 1fr;
    }

    .profile-photo {
        min-height: 300px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .municipio-dual-grid,
    .municipio-media-grid {
        grid-template-columns: 1fr;
    }

    .municipio-visit-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .page-hero {
        padding: 6rem 0 2rem;
    }

    .page-hero h1 {
        font-size: 1.6rem;
    }

    .profile-card {
        margin-top: -2rem;
    }

    .profile-info {
        padding: 1.5rem;
    }

    .profile-info h2 {
        font-size: 1.4rem;
    }

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

    .municipio-visit-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .fiesta-item {
        grid-template-columns: 60px 1fr;
        gap: 0.5rem;
    }

    .fiesta-lugar {
        display: none;
    }
}

@media (max-width: 480px) {
    .profile-photo {
        min-height: 250px;
    }
}
