/* #cobertura — Titular a todo el ancho; debajo, lista de rieles y mapa punteado con cifras */
#cobertura { overflow: clip; }
#cobertura .cob-cab { position: relative; }
#cobertura .cob-aviso {
  margin-top: 16px; max-width: 62ch; color: var(--texto-2);
  font-size: var(--t-desc, 1.0625rem); line-height: var(--lh-desc, 1.47);
}

#cobertura .cob-lista { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hilo); }
#cobertura .cob-lista li { border-bottom: 1px solid var(--hilo); }
#cobertura .cob-riel {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 44px; padding: 6px 0;
  background: none; border: 0; text-align: left; cursor: pointer;
  transition: background-color .2s;
}
#cobertura .cob-riel:active { background: var(--ivory); }
#cobertura .cob-riel::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--oro); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .7s var(--expo);
}
#cobertura .cob-riel.es-on::after { transform: scaleX(1); }
#cobertura .cob-riel__pais { color: var(--tinta); font-size: var(--t-h4); font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
#cobertura .cob-riel__nombre { flex: none; color: var(--texto-3); font-size: var(--t-meta); transition: color .3s; }
#cobertura .cob-riel.es-on .cob-riel__nombre { color: var(--oro-texto); }

#cobertura .cob-cifras { display: grid; margin: 0; padding: 0; list-style: none; }
#cobertura .cob-cifra { min-width: 0; }
#cobertura .cob-cifra__valor {
  display: block; color: var(--tinta); font-size: var(--t-h2); font-weight: 600;
  letter-spacing: -.035em; line-height: 1;
}
#cobertura .cob-cifra__etiqueta {
  display: block; margin-top: 4px; color: var(--texto-2);
  font-size: var(--t-meta); line-height: 1.35; text-wrap: balance;
}

#cobertura .cob-mapa { position: relative; margin: 0; min-width: 0; }
#cobertura .cob-capa { display: block; width: 100%; height: auto; overflow: visible; }
#cobertura .cob-svg { pointer-events: none; }
#cobertura .cob-tierra {
  fill: none; stroke: var(--punto-mapa, var(--texto-3)); stroke-width: 3.2; stroke-linecap: round;
  stroke-dasharray: 0 6.5;
}
#cobertura .cob-ruta {
  fill: none; stroke: var(--oro); stroke-width: calc(1px * var(--k, 1.5)); stroke-opacity: .72;
  transition: stroke-opacity .35s;
}
#cobertura .cob-svg--enfoque .cob-ruta { stroke-opacity: .16; }
#cobertura .cob-svg--enfoque .cob-ruta.es-on { stroke-opacity: 1; stroke-width: calc(1.5px * var(--k, 1.5)); }
#cobertura .cob-cometa {
  fill: none; stroke: var(--oro-premium); stroke-width: calc(1.6px * var(--k, 1.5)); stroke-linecap: round;
  stroke-dasharray: .12 1.2; stroke-dashoffset: .12; opacity: 0; pointer-events: none;
}
#cobertura .cob-punto { pointer-events: none; }
#cobertura .cob-filete { fill: none; stroke: rgba(139, 102, 35, .75); stroke-width: 1px; vector-effect: non-scaling-stroke; }
#cobertura .cob-fondo { fill: var(--marfil); }
#cobertura .cob-halo { fill: rgba(201, 154, 67, .16); stroke: rgba(157, 112, 40, .5); stroke-width: 1px; vector-effect: non-scaling-stroke; transition: fill .3s; }
#cobertura .cob-nucleo { fill: var(--oro-texto); }
#cobertura .cob-punto--origen .cob-halo { fill: rgba(201, 154, 67, .26); stroke: var(--oro); }
#cobertura .cob-etiqueta {
  fill: var(--tinta); font-family: var(--fuente); font-size: calc(13.5px * var(--k, 1.5)); font-weight: 500; letter-spacing: -.005em;
  paint-order: stroke; stroke: var(--marfil); stroke-width: calc(3.5px * var(--k, 1.5)); stroke-linejoin: round;
  transition: fill .3s, opacity .3s;
}
/* Solo este círculo recibe el puntero; el radio lo fija el JS a 22px de pantalla */
#cobertura .cob-toque { fill: transparent; pointer-events: all; cursor: pointer; }
#cobertura .cob-svg--enfoque .cob-punto { opacity: .42; transition: opacity .3s; }
#cobertura .cob-svg--enfoque .cob-punto.es-on { opacity: 1; }
#cobertura .cob-punto.es-on .cob-halo { fill: rgba(201, 154, 67, .34); stroke: var(--oro); }

@media (min-width: 900px) {
  #cobertura .cob-rejilla {
    display: grid; align-items: start;
    grid-template-columns: clamp(300px, 32vw, 434px) minmax(0, 1fr);
    column-gap: clamp(32px, 4.5vw, 64px); row-gap: clamp(28px, 3vw, 40px);
  }
  #cobertura .cob-cab { grid-column: 1 / -1; }
  #cobertura .cob-lista { grid-column: 1; grid-row: 2; }
  #cobertura .cob-mapa { grid-column: 2; grid-row: 2; aspect-ratio: 1134 / 820; }
  #cobertura .cob-capa { position: absolute; inset: 0 auto auto 0; }
  /* Entre 900 y 1199 el cuadrante libre no alcanza: fila de tres bajo el mapa */
  #cobertura .cob-cifras { grid-column: 2; grid-row: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #cobertura .cob-cifra + .cob-cifra { padding-left: 20px; border-left: 1px solid var(--hilo); }
}

/* Cuadrante inferior derecho del mapa: ahí ya no hay tierra */
@media (min-width: 1200px) {
  #cobertura .cob-cifras {
    position: relative; z-index: 1; grid-column: 2; grid-row: 2; grid-template-columns: minmax(0, 1fr);
    align-self: end; justify-self: end; width: 208px;
  }
  #cobertura .cob-cifra + .cob-cifra { margin-top: 12px; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--hilo); }
}

@media (max-width: 899px) {
  #cobertura .cob-rejilla { display: flex; flex-direction: column; }
  #cobertura .cob-cab { order: 1; margin-bottom: 16px; }
  #cobertura .cob-aviso { margin-top: 12px; }
  /* El mapa se queda a la vista mientras se tocan las filas de abajo */
  #cobertura .cob-mapa {
    order: 2; position: sticky; top: calc(var(--nav-h) + 8px); z-index: 2;
    overflow: hidden; margin-inline: -16px; aspect-ratio: 964 / 756; background: var(--marfil);
  }
  #cobertura .cob-capa { position: absolute; left: 0; top: -8.8%; width: 117.6%; max-width: none; margin-left: -17.6%; }
  /* Aquí el encuadre sí corta el mapa: la tierra se disuelve para no dejar borde recto */
  #cobertura .cob-capa--tierra {
    -webkit-mask-image: linear-gradient(to right, transparent 15%, #000 30%), linear-gradient(to bottom, transparent 10%, #000 22%);
    mask-image: linear-gradient(to right, transparent 15%, #000 30%), linear-gradient(to bottom, transparent 10%, #000 22%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  #cobertura .cob-lista { order: 3; margin-top: 16px; }
  #cobertura .cob-riel { min-height: 48px; }
  #cobertura .cob-cifras {
    order: 4; margin-top: 24px;
    grid-template-columns: minmax(0, .95fr) minmax(0, .7fr) minmax(0, 1.25fr);
  }
  #cobertura .cob-cifra + .cob-cifra { padding-left: 14px; border-left: 1px solid var(--hilo); }
  /* Sobre el mapa no hay blanco de toque: las filas son el control */
  #cobertura .cob-toque { pointer-events: none; }
}
