/* ==========================================
   PAGE SHARED — Hero compacto, glass sections,
   divisores, contadores globales
   ========================================== */

/* Body dark global */
.page-dark {
    background: var(--fv-dark);
    color: var(--fv-text-on-dark-body);
}

/* Compensación navbar fixed */
.page-dark main {
    padding-top: 90px;
}
/* Home: la imagen del hero llega hasta arriba, navbar transparente overlay */
.has-home-footer main {
    padding-top: 0;
}

/* ===== PAGE HERO (compacto, secundarias) ===== */
.page-hero {
    position: relative;
    width: 100%;
    height: 320px;
    min-height: 280px;
    max-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -90px;
    color: #fff;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: url('assets/img/flags.jpg') center / cover no-repeat;
    z-index: 1;
    will-change: transform;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(10, 17, 40, 0.30) 0%,
        rgba(10, 17, 40, 0.60) 60%,
        rgba(10, 17, 40, 0.85) 100%
    );
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.40);
    margin-bottom: 8px;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.30);
}

/* ===== SECTION GLASS ===== */
.section-glass {
    background: var(--fv-glass-dark-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--fv-border-dark);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--fv-glass-dark-shadow);
}

.section-glass--light {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
}

/* ===== GRADIENT DIVIDER ===== */
.section-divider--gradient {
    width: 80px;
    height: 3px;
    border: 0;
    border-radius: 2px;
    background: var(--fv-gradient-brand);
    margin: 32px auto;
}

/* ===== COUNT-UP STATS ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 24px 16px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--fv-gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--fv-text-on-dark-body);
    margin-top: 6px;
    opacity: 0.8;
}

/* ===== SECTION TITLE DARK ===== */
.section-title-dark {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle-dark {
    font-size: 1rem;
    color: var(--fv-text-on-dark-body);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ===== TRANSPARENT CTA ===== */
.btn-ghost-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
    text-decoration: none;
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.40);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-hero {
        height: 240px;
        min-height: 220px;
        max-height: 280px;
    }
    .page-hero h1 {
        font-size: 2rem;
    }
    .page-hero p {
        font-size: 0.95rem;
    }
    .section-glass {
        padding: 24px 16px;
        border-radius: 16px;
    }
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .stat-number {
        font-size: 2.2rem;
    }
}
