/* ================================================================
   cobertura.css — estilos exclusivos de cobertura.html
   ================================================================ */

/* ---- Hero ---- */
.cob-hero {
  width: 100%;
  background: linear-gradient(135deg, #0d2d5e 0%, #17437f 55%, #1a5296 100%);
  padding: 80px 24px 64px;
  color: #fff;
}
.cob-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cob-hero-eyebrow {
  display: inline-block;
  background: rgba(228, 93, 22, 0.18);
  border: 1px solid rgba(228, 93, 22, 0.4);
  color: #f07432;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.cob-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.cob-hero h1 span {
  color: #e45d16;
}
.cob-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Services list */
.cob-services-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cob-services-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.cob-services-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e45d16;
  flex-shrink: 0;
}
.cob-services-list li strong {
  color: #fff;
  font-weight: 800;
}

/* CTA buttons */
.cob-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-cob {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cob:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.btn-cob--primary {
  background: #e45d16;
  color: #fff;
}
.btn-cob--primary:hover { background: #f06a22; color: #fff; }
.btn-cob--secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-cob--secondary:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Stats mini-grid en hero */
.cob-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cob-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(6px);
}
.cob-stat-num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}
.cob-stat-unit {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e45d16;
}
.cob-stat-lbl {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.3;
}

/* ---- Sección mapa ---- */
.cob-map-section {
  width: 100%;
  padding: 56px 24px 56px;
  background: #ffffff;
}
.cob-map-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: center;
}
.cob-map-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e45d16;
  margin: 0 0 8px;
}
.cob-map-text h2 {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: #17437f;
  line-height: 1.25;
}
.cob-map-text p {
  margin: 0 0 24px;
  font-size: 0.97rem;
  color: #4a6277;
  line-height: 1.65;
}
.cob-map-text p strong {
  color: #17437f;
  font-weight: 800;
}
.cob-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cob-map-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(23, 67, 127, 0.13);
  border: 1px solid rgba(23, 67, 127, 0.08);
  background: #f4f7fb;
  line-height: 0;
}
.cob-map-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
#cobertura-map {
  width: 100%;
  height: 540px;
  line-height: normal;
}
#cobertura-map .leaflet-control-layers {
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
}
@media (max-width: 768px) {
  #cobertura-map { height: 420px; }
}

@media (max-width: 768px) {
  .cob-map-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---- Sección tabla ---- */
.cob-table-section {
  width: 100%;
  padding: 56px 24px 72px;
  background: #f4f7fb;
}
.cob-table-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.cob-table-header {
  text-align: center;
  margin-bottom: 28px;
}
.cob-table-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: #17437f;
}
.cob-table-header p {
  margin: 0;
  font-size: 0.88rem;
  color: #7a96ae;
}

/* Leyenda colores */
.cob-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cob-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3a5068;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1.5px solid transparent;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.cob-legend-item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  transition: filter 0.18s ease;
}
.cob-map-legend .cob-legend-item {
  cursor: pointer;
  user-select: none;
}
.cob-map-legend .cob-legend-item:hover {
  transform: translateY(-1px);
  background: rgba(23, 67, 127, 0.04);
}
.cob-map-legend .cob-legend-item:focus-visible {
  outline: 2px solid #17437f;
  outline-offset: 2px;
}
.cob-map-legend .cob-legend-item--off {
  opacity: 0.42;
}
.cob-map-legend .cob-legend-item--off::before {
  filter: grayscale(0.85);
}
.cob-legend--actual           { border-color: #6b1414; }
.cob-legend--actual::before   { background: #8b1a1a; }
.cob-legend--garantizada      { border-color: #1f5b25; }
.cob-legend--garantizada::before { background: #2e7d32; }
.cob-legend--no-garantizada   { border-color: #b35e15; }
.cob-legend--no-garantizada::before { background: #e67e22; }
.cob-legend--mov-3g           { border-color: #5a9c5b; }
.cob-legend--mov-3g::before   { background: #8bc78b; }
.cob-legend--mov-lte          { border-color: #6a7a25; }
.cob-legend--mov-lte::before  { background: #95a93d; }
.cob-legend--tel-2g           { border-color: #14427d; }
.cob-legend--tel-2g::before   { background: #1e5ba8; }
.cob-legend--tel-3g           { border-color: #157ea0; }
.cob-legend--tel-3g::before   { background: #1fafd4; }
.cob-legend--tel-lte          { border-color: #4f7128; }
.cob-legend--tel-lte::before  { background: #6f9f3f; }
/* aliases retrocompat por si la leyenda de la tabla los usa */
.cob-legend--planeado         { border-color: #b35e15; }
.cob-legend--planeado::before { background: #e67e22; }
.cob-legend--roaming          { border-color: #14427d; }
.cob-legend--roaming::before  { background: #1e5ba8; }

/* Tabla */
.cob-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(23,67,127,0.1);
}
.cob-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: #fff;
  min-width: 860px;
}
.cob-table thead tr:first-child th {
  background: #17437f;
  color: #fff;
  padding: 14px 12px;
  font-weight: 700;
  text-align: center;
  border: none;
}
.cob-table thead tr:first-child .th-estado,
.cob-table thead tr:first-child .th-pob {
  background: #0d2d5e;
}
.cob-table thead tr:first-child .th-actual {
  background: #c0392b;
}
.cob-table thead tr:first-child .th-planeado {
  background: #1a5296;
}
.cob-table thead tr:nth-child(2) th {
  background: #eaf0f8;
  color: #17437f;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 10px 10px;
  text-align: center;
  border-bottom: 2px solid #c5d9f0;
}
.cob-table tbody tr {
  border-bottom: 1px solid #e8f0f9;
  transition: background 0.15s ease;
}
.cob-table tbody tr:hover {
  background: #f0f6ff;
}
.cob-table tbody td {
  padding: 10px 12px;
  color: #2a3f54;
  text-align: center;
}
.cob-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #17437f;
  white-space: nowrap;
}
.cob-table tbody td:nth-child(2) {
  color: #5a7490;
  font-size: 0.8rem;
}
/* Separador visual entre Actual y Planeados */
.cob-table thead tr:nth-child(2) th:nth-child(5),
.cob-table tbody td:nth-child(6),
.cob-table tfoot td:nth-child(6) {
  border-right: 3px solid #c5d9f0;
}
.cob-table tfoot .tr-total td {
  background: #17437f;
  color: #fff;
  font-weight: 700;
  padding: 12px;
  text-align: center;
  font-size: 0.88rem;
}
.cob-table tfoot .tr-total td:first-child {
  text-align: left;
  color: #fff;
  border-radius: 0 0 0 16px;
}
.cob-table tfoot .tr-total td:last-child {
  border-radius: 0 0 16px 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .cob-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cob-hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .cob-hero {
    padding: 72px 16px 48px;
  }
}
@media (max-width: 480px) {
  .cob-hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .cob-stat { padding: 16px 12px; }
}
