/* =========================================
   COVERAGE & MAP SECTION
   ========================================= */

.coverage-section {
    background-color: var(--white);
    padding: 6rem 2rem;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.coverage-container {
    display: flex;
    align-items: center; /* Centra verticalmente el texto con el mapa */
    justify-content: center; /* Centra todo el bloque en el ancho de la pantalla */
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem; 
    padding: 0 2rem; /* Espacio de seguridad a los lados */
}
/* --- TEXTOS (Izquierda) --- */
.coverage-text {
    flex: 1;
}

.coverage-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.coverage-title span {
    color: var(--primary-color);
}

.coverage-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* --- LISTA DE PAÍSES --- */
.country-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.country-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.country-item.active {
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.1);
}

.country-item.upcoming {
    opacity: 0.6;
    border-style: dashed;
}

.flag {
    margin: 0 12px;
    font-size: 1.2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.upcoming-dot {
    background-color: var(--text-muted);
    box-shadow: none;
}

/* --- MAPA (Derecha) --- */
.coverage-map {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-wrapper {
    position: relative;
    display: inline-block;
}

.map-base-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: grayscale(1) opacity(0.3); /* Efecto técnico/elegante */
}

/* --- POSICIONAMIENTO DE LOS PUNTOS --- */
.pulse-point {
    position: absolute;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%); /* Centra el punto exactamente */
}

/* Coordenadas para el mapa de Wikipedia (South America location map) */
.northern-chile { top: 45%; left: 32%; }
.central-chile  { top: 62%; left: 28%; }
.southern-chile { top: 82%; left: 29%; }

.pulse-core {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: radar 2s infinite;
    top: -11px; /* Ajuste para centrar respecto al core de 8px */
    left: -11px;
    z-index: 1;
}

@keyframes radar {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Responsive */
@media (max-width: 968px) {
    .coverage-container {
        flex-direction: column;
        text-align: center;
    }
    .country-list {
        align-items: center;
    }
}

/* Stil pentru noua hartă tip glob */
.map-base-img.globe-view {
    width: 100%;
    max-width: 500px; /* Poate fi puțin mai mare fiindcă e circulară */
    filter: grayscale(1) brightness(0.9) opacity(0.4);
    transition: all 0.5s ease;
}

/* Recalibrarea punctelor pentru proiecția ortografică */
/* Aceste valori sunt aproximate pentru acest SVG specific */
.northern-chile-globe { 
    top: 62%; 
    left: 45%; 
}

.central-chile-globe { 
    top: 75%; 
    left: 44%; 
}

.southern-chile-globe { 
    top: 88%; 
    left: 46%; 
}

/* Efect de hover pe hartă (opțional, pentru un plus de stil) */
.map-wrapper:hover .map-base-img.globe-view {
    filter: grayscale(0.5) brightness(1) opacity(0.6);
    transform: scale(1.02);
}

/* --- POSICIONAMIENTO RECALIBRADO (PARA EL GLOBOSVG) --- */

/* Chile: Al borde izquierdo del cono sur */
.chile-norte { 
    top: 68%; 
    left: 54.5%; 
}

.chile-centro { 
    top: 78%; 
    left: 52%; 
}

/* Argentina: Al centro del cono sur, a la derecha de Chile */
.argentina-bsas { 
    top: 72%; 
    left: 58%; 
}

/* Perú: En la costa, arriba de Chile hacia el noroeste */
.peru-lima { 
    top: 55%; 
    left: 51%; 
}

/* --- ESTILOS PARA PUNTOS "UPCOMING" --- */
.pulse-core.gray {
    background-color: #94a3b8; /* Slate 400 */
    box-shadow: none;
}

.pulse-ring.gray {
    border-color: #94a3b8;
    animation: radar 3s infinite; /* Más lento para que no distraiga tanto */
}

/* Asegurar que el contenedor del mapa no corte los anillos */
.map-wrapper {
    position: relative;
    display: inline-block;
    padding: 20px; /* Espacio extra para los anillos del radar */
}

.map-base-img.globe-view {
    width: 100%;
    max-width: 480px;
    filter: grayscale(1) brightness(0.8) opacity(0.3);
    /* Sombras sutiles para que el globo parezca flotar */
    box-shadow: inset 0 0 50px rgba(0,0,0,0.1);
    border-radius: 50%;
}