/**
 * Estilos Modernos para Landing Page
 * Asociación María Reina de la Paz
 * 
 * @package Asomaria
 */

/* ==========================================================================
   Header Moderno con Glassmorphism
   ========================================================================== */

.site-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-logo {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-normal);
}

.site-logo:hover {
    transform: scale(1.05);
}

.main-navigation a {
    font-weight: 600 !important;
    padding: var(--spacing-xs) var(--spacing-md) !important;
    border-radius: var(--border-radius-lg) !important;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-hero);
    transition: width var(--transition-normal);
}

.main-navigation a:hover::after,
.main-navigation a.current-menu-item::after {
    width: 80%;
}

.main-navigation a:hover,
.main-navigation a.current-menu-item {
    background-color: transparent !important;
    color: var(--color-primary) !important;
}

/* ==========================================================================
   Hero Section Moderno con Animaciones
   ========================================================================== */

/* ==========================================================================
   Hero Section Moderno con Animaciones
   ========================================================================== */

.hero-section {
    background: var(--gradient-hero) !important;
    padding: clamp(4rem, 12vh, 8rem) 0 !important;
    position: relative;
    overflow: hidden;
}

/* ... existing hero background styles ... */

/* Stats Bar Separation */
/* ============================================
   HERO STATS BAR - DISEÑO PREMIUM v2
   ============================================ */
.hero-stats-bar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 60px;

    /* Sombra Multicapa Premium */
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 -2px 0 0 rgba(212, 160, 23, 0.3) inset;
    /* Línea dorada inferior interior */

    position: relative;
    z-index: 10;
    margin-top: 0;
    border: none;
    transform: translateY(40px);

    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;

    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

/* Efecto Hover en toda la barra */
.hero-stats-bar:hover {
    transform: translateY(35px);
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 1) inset,
        0 -3px 0 0 rgba(212, 160, 23, 0.5) inset;
}

/* Items Individuales */
.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 15px 30px;
    flex: 1;
    text-align: center;
    transition: transform 0.3s ease;
}

.hero-stat-item:hover {
    transform: translateY(-5px);
}

/* Separadores Verticales Elegantes */
.hero-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(212, 160, 23, 0.3) 50%,
            transparent 100%);
}

/* Iconos con Fondo Circular */
.hero-stat-icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 15px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.1) 0%, rgba(212, 160, 23, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(212, 160, 23, 0.15);
    transition: all 0.3s ease;
}

.hero-stat-item:hover .hero-stat-icon {
    background: linear-gradient(135deg, var(--gold) 0%, #f1c40f 100%);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(212, 160, 23, 0.3);
}

/* Números con Estilo Bold */
.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--navy) 0%, #4a6fa5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Etiquetas Refinadas */
.hero-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ... existing styles ... */

.stat-card {
    padding: var(--spacing-xl) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.stat-card:last-child {
    border-right: none;
}


.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-xl) !important;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-heading) !important;
}

/* ==========================================================================
   Tarjetas de Contenido Modernas
   ========================================================================== */

.content-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal) !important;
}

.content-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: var(--shadow-xl) !important;
}

.content-card-title {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Botones - LOS ESTILOS SE MANEJAN EN style.css (Clean Professional)
   ========================================================================== */
/* Estilos de botones movidos a style.css para evitar conflictos */

/* ==========================================================================
   Títulos de Sección Modernos
   ========================================================================== */

.section-title {
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-hero);
    border-radius: 2px;
}

/* ==========================================================================
   Footer Moderno
   ========================================================================== */

.site-footer {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-black) 100%) !important;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.02"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.5;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Animaciones de Scroll
   ========================================================================== */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ==========================================================================
   Efectos de Hover Adicionales
   ========================================================================== */

.content-section {
    position: relative;
}

.content-section:nth-child(even) {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-light-gray) 50%, var(--color-white) 100%);
}

/* ==========================================================================
   Responsive Mejorado
   ========================================================================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 !important;
    }

    .stat-card {
        padding: var(--spacing-lg) !important;
    }

    .section-title::after {
        width: 40px;
    }
}

/* ==========================================================================
   Utilidades Modernas
   ========================================================================== */

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Sección de Mapa de Presencia (Referencia Style)
   ========================================================================== */

.presence-map-section {
    padding: 120px 0;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    /* Ensure relative positioning for contained elements */
}

.map-title-lg {
    font-size: 2.5rem;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 20px;
    font-weight: 700;
}

.highlight-number {
    font-size: 5rem;
    font-weight: 800;
    color: #4a5568;
    /* Dark grey like reference */
    line-height: 1;
    display: inline-block;
    margin-right: 10px;
}

.map-subtitle {
    font-size: 1.1rem;
    color: #718096;
    line-height: 1.6;
    max-width: 400px;
}

/* Map Container & SVG */
.map-visual-container {
    position: relative;
    width: 100%;
    height: 600px;
    /* Taller to fit the vertical shape of Paraguay */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    /* CRITICAL: Allow map to spill out if needed */
}

.dotted-map-svg {
    width: 100%;
    height: 100%;
    max-width: none;
    /* Remove restriction */
    overflow: visible;
    /* SVG overflow visible */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Markers need to be positioned absolute relative to the container, 
   but since the SVG scales, we rely on % positions which is standard for responsive maps. 
   We keep the previous % positions as they are good approximations. */

/* Marker Groups */
.map-marker-group {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Dots */
.map-dot {
    width: 14px;
    height: 14px;
    background-color: #2d3748;
    /* Dark dot */
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8);
    /* Halo */
}

/* Pill Labels */
.map-pill-label {
    position: absolute;
    display: flex;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    /* Let clicks pass through if needed */
    white-space: nowrap;
}

/* Standard: Label to Left of Dot */
.map-pill-label {
    right: 20px;
    /* Position to the left of the dot */
    flex-direction: row;
}

.pill-text {
    background-color: #2d3748;
    /* Dark pill bg */
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pill-line {
    width: 30px;
    height: 1px;
    background-color: #a0aec0;
    /* Grey line */
    margin-left: -5px;
    /* Overlap slightly with text */
    margin-right: -5px;
    /* Overlap slightly with dot halo */
}

/* Label Variations */

/* Label on Right */
.map-pill-label.label-right {
    right: auto;
    left: 20px;
    flex-direction: row-reverse;
}

/* Label on Top (Vertical Line) */
.map-pill-label.label-top {
    flex-direction: column-reverse;
    top: auto;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
}

.map-pill-label.label-top .pill-line.vertical {
    width: 1px;
    height: 30px;
    margin: 0;
}


/* Specific Locations (Percentages for layout - Split Map v2) */
/* Asuncion: Junction point */
.pos-asuncion {
    top: 55%;
    left: 45%;
}

/* Misiones: South */
.pos-misiones {
    top: 75%;
    left: 60%;
}

/* Caaguazú: East Center */
.pos-caaguazu {
    top: 60%;
    left: 70%;
}

/* Concepcion: North East */
.pos-concepcion {
    top: 45%;
    left: 60%;
}

/* Alto Parana: Far East */
.pos-alto-parana {
    top: 65%;
    left: 80%;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .map-visual-container {
        height: 400px;
    }

    .dotted-map-svg {
        height: 100%;
        max-width: 100%;
    }

    .map-title-lg {
        font-size: 2rem;
    }

    .highlight-number {
        font-size: 3.5rem;
    }

    .pill-text {
        font-size: 0.6rem;
        padding: 4px 10px;
    }

    /* Adjust marker positions slightly for mobile interaction/visibility if needed, 
       but % usually scales well. */
}

/* Tooltip */
.map-tooltip {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 220px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border-left: 4px solid var(--navy);
}

.map-marker:hover .map-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.map-tooltip h5 {
    font-size: 0.9rem;
    margin: 0 0 5px;
    color: var(--navy);
}

.map-tooltip span {
    font-size: 0.8rem;
    color: #666;
    display: block;
    line-height: 1.3;
}