/* ============================================
   PRAMEG.css - Estilos Específicos de PRAMEG
   ============================================ */

:root {
    --color-primary: #0052B8;
    --color-accent: #FF6B35;
    --color-dark: #1a1a1a;
    --color-light: #f5f5f5;
    --color-gray: #7a7a7a;
    --color-border: #e0e0e0;
    --color-accent-rgb: 255, 107, 53;
    
    /* Tipografía */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Espaciado */
    --spacing-unit: 1rem;
    
    /* Z-index */
    --z-backdrop: 10;
    --z-content: 20;
}

* {
    font-family: var(--font-main);
}

/* ============================================
   1. HERO SECTION
   ============================================ */

.hero-prameg {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

.hero-prameg .absolute-backdrop {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 82, 184, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-prameg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 107, 53, 0.05), transparent);
    pointer-events: none;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--color-dark);
    letter-spacing: -0.5px;
    text-align: center;
    
}

.hero-title .text-highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-support {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    margin-top: 2.5rem;
}

.cta-buttons .btn {
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-buttons .btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.cta-buttons .btn-primary:hover {
    background-color: #003d8a;
    border-color: #003d8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 82, 184, 0.3);
}

.cta-buttons .btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.cta-buttons .btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: var(--color-accent);
    animation: bounce 2s infinite;
    
    /* Mejoras de grosor y visibilidad */
    font-weight: 900; 
    -webkit-text-stroke: 1px var(--color-accent);
    text-shadow: 0px 2px 10px rgba(0,0,0,0.2); 
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

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

/* ============================================
   2. SECCIÓN VALOR (PILARES)
   ============================================ */

.section-valor {
    background-color: var(--color-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.section-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.card-pillar {
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--color-primary);
    position: relative;
}

.card-pillar:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1) !important;
    border-top-color: var(--color-accent);
}

.icon-pillar {
    font-size: 3rem;
    height: 80px;
    display: flex;
    align-items: flex-start;
}

.icon-pillar i {
    transition: all 0.3s ease;
}

.card-pillar:hover .icon-pillar i {
    color: var(--color-accent) !important;
    transform: scale(1.1);
}

.card-pillar h3 {
    color: var(--color-dark);
    font-weight: var(--font-weight-bold);
}

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

/* ============================================
   3. TRAYECTORIA REGIONAL
   ============================================ */

.mapa-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.paises-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.pais-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pais-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.pais-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 82, 184, 0.15);
    transform: translateY(-4px);
}

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

.pais-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.pais-header h3 {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin: 0;
}

.pais-header .badge {
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    padding: 6px 12px;
}

.pais-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.pais-content.hidden {
    display: none;
}

.pais-content.show {
    max-height: 500px;
    display: block;
}

.timeline-años {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.año-item {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.año-item .año {
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    min-width: 50px;
}

.año-item .municipios {
    color: var(--color-gray);
    line-height: 1.4;
    flex: 1;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    justify-items: center;
    text-align: center;
}

.stat-item {
    width: 100%;
    max-width: 240px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}


@media (max-width: 992px) {
    .paises-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .stats-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .stats-bar .row {
        width: auto;
        max-width: 360px;
        margin: 0 auto;
        justify-content: center;
    }

    .stats-bar .col-md-3 {
        flex: 0 0 auto;
        width: 100%;
        max-width: 360px;
        justify-content: center;
    }
}

/* Municipio Button Styling */
/* Ensure buttons inside flex items work well */
.municipio-btn {
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.municipio-btn:hover {
    background: rgba(255, 107, 53, 0.25) !important;
    transform: translateY(-1px);
}

/* Featured municipio (has case study) */
.municipio-featured {
    color: #FF6B35 !important;           /* Strong accent color */
    font-weight: 700 !important;
    
    padding: 0.2rem 0.5rem !important;
    
    transition: all 0.3s ease;
}

.municipio-featured:hover {
    background: rgba(var(--color-accent-rgb), 0.2);
    text-decoration: underline;
}

/* Case Detail Viewer */
.case-detail-viewer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 480px;                    /* Better fixed width on desktop */
    max-width: 92vw;                 /* Responsive */
    height: 100vh;
    background: white;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
    z-index: 1050;
    overflow-y: auto;
    transition: right 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}

.case-detail-viewer:not(.hidden) {
    right: 0;
}


.case-detail-viewer:not(.hidden)::before {
    opacity: 1;
    pointer-events: auto;
}

.case-detail-wrapper {
    padding: 2rem;
    position: relative;
    height: auto;
    min-height: 100vh;
}

.btn-close-detail {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1100;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-muted);
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-detail:hover {
    color: var(--color-dark);
}

.case-detail-content {
    margin-top: 2rem;
}

.case-detail-content .case-header {
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.case-detail-content .case-header h3 {
    color: var(--color-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-detail-content .case-header h4 {
    color: var(--color-gray);
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.case-detail-content .case-description {
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.case-detail-content .case-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .case-detail-viewer {
        max-width: 100%;
    }
}





/* ============================================
   5. RECONOCIMIENTO EN LA REGIÓN
   ============================================ */

.section-menciones {
    background: var(--color-light);
    position: relative;
}

.section-menciones .section-title {
    color: var(--color-dark);
    font-weight: var(--font-weight-bold);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-unit);
}

.section-menciones .section-lead {
    color: var(--color-gray);
    font-size: 1.1rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
}


.menciones-ribbon {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.8rem !important;
    padding: 2.5rem 0 !important;
    width: 100%;
}

.mencion-card {
    flex: 0 1 340px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.8rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.mencion-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 82, 184, 0.15);
    border-color: #0052B8;
}

.mencion-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #0052B8, #FF6B35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mencion-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
}

.mencion-source {
    color: #666;
    font-size: 0.9rem;
}

/* Desktop */
@media (min-width: 992px) {
    .mencion-card {
        flex: 0 1 320px;
    }
}



/* Responsive */
@media (max-width: 1199.98px) {
    .menciones-ribbon {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .menciones-ribbon {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .mencion-card {
        width: 100%;
    }
    
    .section-menciones .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .menciones-ribbon {
        grid-template-columns: 1fr;
    }
    
    .section-menciones .section-title {
        font-size: 1.75rem;
    }
    
    .mencion-card {
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .mencion-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .mencion-title {
        font-size: 0.9rem;
    }
    
    .mencion-source {
        font-size: 0.8rem;
    }
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   6. CTA SECTION
   ============================================ */

.section-cta {
    background: linear-gradient(135deg, var(--color-dark) 0%, #2a2a2a 100%);
    position: relative;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-cta .btn-light {
    color: var(--color-dark);
    background-color: white;
    border-color: white;
    transition: all 0.3s ease;
}

.section-cta .btn-light:hover {
    background-color: var(--color-light);
    border-color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.section-cta .btn-outline-light:hover {
    background-color: white;
    color: var(--color-dark);
}


/* ============================================
   7. UTILIDADES Y RESPONSIVE
   ============================================ */

.rounded-lg {
    border-radius: 8px;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.fw-600 {
    font-weight: var(--font-weight-semibold);
}

.fw-700 {
    font-weight: var(--font-weight-bold);
}

.text-muted {
    color: var(--color-gray) !important;
}

.bg-light {
    background-color: var(--color-light) !important;
}

.border-top {
    border-top: 1px solid var(--color-border) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .paises-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;  /* Increase gap from 1rem to 2rem */
}

    .stat-item {
    padding: 2rem 1.5rem;  /* Add padding for breathing room */
}
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}

/* Animaciones de entrada */
[data-aos] {
    opacity: 0;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 1000;
}