/* ============================================================
   Estilos para popups de cobertura y alternativas
   Prefijo ptv-cob- en todas las clases, sin selectores globales
   ============================================================ */

.ptv-cob-overlay *,
.ptv-cob-overlay *::before,
.ptv-cob-overlay *::after {
  box-sizing: border-box;
}

.ptv-cob-overlay {
  --ptv-cob-teal: #00b1aa;
  --ptv-cob-teal-dark: #008e88;
  --ptv-cob-mint: #e0f5f3;
  --ptv-cob-mint-line: #b7e6e2;
  --ptv-cob-ink: #1a1a1a;
  --ptv-cob-body: #374151;
  --ptv-cob-muted: #6b7280;
  --ptv-cob-gray-100: #f3f4f6;
  --ptv-cob-gray-200: #e5e7eb;
  --ptv-cob-gray-300: #d1d5db;
  --ptv-cob-gray-50: #fafafa;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 12, 14, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ptv-cob-popup {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .25), 0 8px 16px rgba(0, 0, 0, .08);
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  position: relative;
}

.ptv-cob-popup::-webkit-scrollbar {
  width: 6px;
}

.ptv-cob-popup::-webkit-scrollbar-thumb {
  background: var(--ptv-cob-gray-200);
  border-radius: 3px;
}

.ptv-cob-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ptv-cob-close:hover {
  background: var(--ptv-cob-gray-100);
  color: #000;
}

.ptv-cob-close svg {
  width: 16px;
  height: 16px;
  display: block;
}

.ptv-cob-head {
  padding: 28px 32px 18px;
  text-align: center;
}

.ptv-cob-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ptv-cob-mint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.ptv-cob-icon svg {
  width: 28px;
  height: 28px;
  color: var(--ptv-cob-teal);
}

.ptv-cob-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ptv-cob-ink);
  margin: 0 0 8px;
  letter-spacing: -.3px;
  line-height: 1.25;
}

.ptv-cob-sub {
  font-size: 14.5px;
  color: var(--ptv-cob-muted);
  margin: 0 auto;
  max-width: 520px;
  line-height: 1.55;
}

/* --- Escenario 1: fibra cards --- */
.ptv-cob-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 14px 24px 20px;
}

.ptv-cob-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--ptv-cob-gray-200);
  border-radius: 14px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}

.ptv-cob-card:hover {
  border-color: var(--ptv-cob-teal);
  box-shadow: 0 6px 16px rgba(10, 122, 118, .08);
}

.ptv-cob-reco {
  position: absolute;
  top: -13px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ptv-cob-mint);
  border: 1px solid var(--ptv-cob-mint-line);
  color: var(--ptv-cob-teal);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ptv-cob-reco svg {
  width: 12px;
  height: 12px;
}

.ptv-cob-speed {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.ptv-cob-speed-num {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--ptv-cob-ink);
  line-height: 1;
  margin: 0;
}

.ptv-cob-speed-unit {
  font-size: 15px;
  font-weight: 600;
  color: var(--ptv-cob-body);
  margin: 0;
}

.ptv-cob-kind {
  font-size: 12px;
  font-weight: 700;
  color: var(--ptv-cob-teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ptv-cob-gray-200);
}

.ptv-cob-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  flex: 1 1 auto;
}

.ptv-cob-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ptv-cob-body);
  padding: 5px 0;
  line-height: 1.4;
}

.ptv-cob-check {
  width: 18px;
  height: 18px;
  color: var(--ptv-cob-teal);
  flex-shrink: 0;
  margin-top: 1px;
}

.ptv-cob-price {
  text-align: center;
  margin-bottom: 14px;
  font-weight: 700;
}

.ptv-cob-price .ptv-cob-amount {
  font-size: 30px;
  color: var(--ptv-cob-ink);
  letter-spacing: -.5px;
}

.ptv-cob-price .ptv-cob-amount small {
  font-size: 16px;
  vertical-align: super;
}

.ptv-cob-price .ptv-cob-per {
  font-size: 13px;
  color: var(--ptv-cob-muted);
  font-weight: 500;
  margin-left: 2px;
}

.ptv-cob-cta {
  width: 100%;
  padding: 14px 16px;
  border: none;
  cursor: pointer;
  background: var(--ptv-cob-teal);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: background .15s, transform .05s;
  line-height: 1.2;
}

.ptv-cob-cta:hover {
  background: var(--ptv-cob-teal-dark);
}

.ptv-cob-cta:active {
  transform: translateY(1px);
}

.ptv-cob-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ptv-cob-muted);
}

.ptv-cob-footnote svg {
  width: 13px;
  height: 13px;
  color: var(--ptv-cob-teal);
}

/* --- Banner: "¿Prefieres que te ayudemos?" --- */
.ptv-cob-call-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 24px 16px;
  padding: 16px 20px;
  background: var(--ptv-cob-gray-50);
  border: 1.5px solid var(--ptv-cob-gray-200);
  border-radius: 12px;
}

.ptv-cob-call-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.ptv-cob-call-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--ptv-cob-teal);
}

.ptv-cob-call-banner-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ptv-cob-ink);
  margin-bottom: 2px;
}

.ptv-cob-call-banner-text span {
  font-size: 13px;
  color: var(--ptv-cob-muted);
}

.ptv-cob-call-banner-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  background: #fff;
  color: var(--ptv-cob-teal);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--ptv-cob-teal);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.ptv-cob-call-banner-btn:hover {
  background: var(--ptv-cob-teal);
  color: #fff;
}

.ptv-cob-try-other {
  display: block;
  margin: 6px 24px 18px;
  padding: 14px;
  width: calc(100% - 48px);
  background: #fff;
  color: var(--ptv-cob-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--ptv-cob-gray-300);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.ptv-cob-try-other:hover {
  border-color: var(--ptv-cob-teal);
  color: var(--ptv-cob-teal);
}

.ptv-cob-foot {
  padding: 16px 32px 22px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ptv-cob-muted);
  border-top: 1px solid var(--ptv-cob-gray-100);
}

/* --- Escenario 2: productos alternativos --- */
.ptv-cob-alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 14px 24px 6px;
}

.ptv-cob-alt-card {
  background: #fff;
  border: 1.5px solid var(--ptv-cob-gray-200);
  border-radius: 14px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}

.ptv-cob-alt-card:hover {
  border-color: var(--ptv-cob-teal);
  box-shadow: 0 6px 16px rgba(10, 122, 118, .08);
}

.ptv-cob-alt-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ptv-cob-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.ptv-cob-alt-icon svg {
  width: 22px;
  height: 22px;
  color: var(--ptv-cob-teal);
}

.ptv-cob-alt-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -.2px;
  color: var(--ptv-cob-ink);
}

.ptv-cob-alt-desc {
  font-size: 13.5px;
  color: var(--ptv-cob-body);
  margin: 0 0 16px;
  line-height: 1.5;
  flex: 1 1 auto;
}

.ptv-cob-alt-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ptv-cob-gray-200);
}

.ptv-cob-alt-price .ptv-cob-from {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ptv-cob-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-right: 4px;
}

.ptv-cob-alt-price .ptv-cob-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--ptv-cob-ink);
  letter-spacing: -.3px;
}

.ptv-cob-alt-price .ptv-cob-per {
  font-size: 13px;
  color: var(--ptv-cob-muted);
  font-weight: 500;
}

.ptv-cob-alt-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px 4px;
  font-size: 12px;
  color: var(--ptv-cob-muted);
}

.ptv-cob-alt-sep::before,
.ptv-cob-alt-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ptv-cob-gray-200);
}

/* --- Botón estilo Outline (línea fina azul, sin relleno) --- */
.ptv-cob-btn-outline {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--ptv-cob-teal);
  cursor: pointer;
  background: transparent;
  color: var(--ptv-cob-teal);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: all .15s;
  line-height: 1.2;
}

.ptv-cob-btn-outline:hover {
  background: var(--ptv-cob-teal);
  color: #fff;
}

/* --- Animaciones de entrada --- */
@keyframes ptv-cob-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ptv-cob-slide-up {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ptv-cob-slide-bottom {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ptv-cob-overlay {
  animation: ptv-cob-fade-in .2s ease both;
}

.ptv-cob-overlay .ptv-cob-popup {
  animation: ptv-cob-slide-up .28s cubic-bezier(.22, .68, 0, 1.2) both;
}

/* --- Responsive móvil --- */
@media (max-width: 640px) {
  .ptv-cob-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .ptv-cob-popup {
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
    max-width: 100%;
    animation-name: ptv-cob-slide-bottom;
    animation-duration: .32s;
  }

  .ptv-cob-head {
    padding: 22px 20px 14px;
  }

  .ptv-cob-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  .ptv-cob-icon svg {
    width: 24px;
    height: 24px;
  }

  .ptv-cob-title {
    font-size: 19px;
  }

  .ptv-cob-sub {
    font-size: 13.5px;
  }

  .ptv-cob-cards {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 8px 16px 14px;
  }

  .ptv-cob-speed-num {
    font-size: 40px;
  }

  .ptv-cob-alt {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 8px 16px 4px;
  }

  .ptv-cob-call-banner {
    flex-direction: column;
    align-items: flex-start;
    margin: 4px 16px 14px;
    gap: 12px;
  }

  .ptv-cob-call-banner-btn {
    width: 100%;
    text-align: center;
  }

  .ptv-cob-try-other {
    margin: 4px 16px 14px;
    width: calc(100% - 32px);
    padding: 13px;
  }

  .ptv-cob-foot {
    padding: 12px 20px 18px;
    font-size: 11px;
    line-height: 1.5;
  }

  .ptv-cob-alt-sep {
    padding: 8px 16px 4px;
  }
}

/* ============================================================
   PTV Loader Cobertura
   ============================================================ */
.ptv-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.ptv-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: ptv-cob-slide-up 0.4s ease-out;
}

.ptv-loader-spinner {
  position: relative;
  width: 70px;
  height: 70px;
  margin-bottom: 24px;
}

.ptv-loader-svg {
  width: 100%;
  height: 100%;
  transform-origin: center;
  animation: ptv-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.ptv-loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  opacity: 0.8;
}

.ptv-loader-text {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.4px;
}

.ptv-loader-subtext {
  font-size: 14px;
  color: #6b7280;
  margin-top: 8px;
  font-weight: 500;
}

@keyframes ptv-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

