/* ── TOKENS DE MARCA ─────────────────────────────────────── */
:root {
  --bs-font-sans-serif: 'Nunito', system-ui, sans-serif;
  --bs-primary:         #1976D2;
  --bs-primary-rgb:     25,118,210;
  --co-dark:            #0B2B5E;
  --co-mid:             #1565C0;
  --co-main:            #1976D2;
  --co-light:           #EDF6FF;
  --co-orange:          #FF6600;
  --co-orange-dark:     #E55B00;
}
body { font-family: var(--bs-font-sans-serif); }

/* ── TOPBAR MARQUEE ──────────────────────────────────────── */
.topbar { background: var(--co-main); overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-flex; gap: 0;
  animation: marquee 28s linear infinite;
}
.marquee-track span { padding: 0 60px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.navbar-phone strong { color: var(--co-dark); font-size: 1.75rem; display: block; }

/* ── HERO ────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #E8F4FE 0%, #EEF5FF 55%, #D6EAFF 100%);
  position: relative; overflow: hidden;
}
/* blobs SVG decorativos */
.blob { position: absolute; pointer-events: none; z-index: 0; }
.blob-1 { top: -60px; left: -80px; width: 340px; opacity: .55; }
.blob-2 { bottom: -40px; left: 35%; width: 200px; opacity: .45; }
.blob-3 { top: 5%; right: -60px; width: 420px; opacity: .35; }
/* imagen hero */
.hero-img {
  position: absolute; bottom: 0; right: 0;
  height: 95%; max-height: 440px;
  object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(25,118,210,.15));
}
@media (max-width: 991px) { .hero-img { display: none; } }

/* ── BADGE VERIFICADA ────────────────────────────────────── */
.badge-verified {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--co-dark); color: #fff;
  border-radius: 30px; padding: 5px 14px 5px 10px;
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
}

/* ── TARJETA OFERTA (hero) ───────────────────────────────── */
.oferta-card { border-radius: 18px; box-shadow: 0 4px 24px rgba(25,118,210,.12); }
.price-old-box {
  border: 2px solid var(--co-light); border-radius: 12px; padding: 10px 16px; text-align: center;
}
.price-old-box .plabel { font-size: .6rem; font-weight: 700; color: var(--co-mid); text-transform: uppercase; letter-spacing: .5px; }
.price-old-box .pamount {
  font-size: 1.5rem; font-weight: 900; color: #aaa;
  text-decoration: line-through; text-decoration-color: var(--co-orange); text-decoration-thickness: 3px;
}
.price-new-box {
  background: var(--co-main); border-radius: 16px; padding: 14px 18px; text-align: center; position: relative;
}
.price-new-box .plabel { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; opacity: .8; }
.price-new-box .pamount { font-size: 4rem; font-weight: 900; line-height: 1; }
.promo-bubble {
  position: absolute; top: -42px; right: -22px;
  background: var(--co-dark); border-radius: 50%; width: 100px; height: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; text-align: center; text-transform: uppercase; line-height: 1.25; color: #fff;
}
@media(max-width:576px){
  .promo-bubble{top: -92px; right: 0;}
}
.promo-bubble .bprice { font-size: 1.5rem; font-weight: 900; }
.save-strip {
  background: var(--co-orange); border-radius: 10px;
  padding: 8px; font-size: .8rem; font-weight: 800; text-align: center; color: #fff;
}
.btn-scroll-wrap { background: none; border: none; padding: 0; cursor: pointer; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(7px) } }

/* ── FORMULARIO LEAD ─────────────────────────────────────── */
.lead-box { background: var(--co-orange); border-radius: 18px; box-shadow: 0 8px 32px rgba(255,102,0,.25); }
.ftab {
  background: var(--co-dark); border: none; border-radius: 8px;
  padding: 7px 16px; font-size: .8rem; font-weight: 800;
  color: #fff; font-family: inherit; cursor: pointer; transition: background .15s;
}
.ftab.active, .ftab:hover { color:#000;background: #fff; }
.phone-wrap { position: relative; }
.phone-wrap .pico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 15px; pointer-events: none;
}
.phone-wrap input { padding-left: 38px; border-radius: 10px; border: none; font-weight: 700; font-size: .9rem; font-family: inherit; }
.btn-cta-lead {
  background: var(--co-main); color: #fff; border: none; border-radius: 10px;
  padding: 13px; font-size: .9rem; font-weight: 800; width: 100%; font-family: inherit; transition: background .15s;
}
.btn-cta-lead:hover { background: var(--co-dark); }

/* ── SECCIÓN OPERADORAS ──────────────────────────────────── */
.sec-ops { background: var(--co-dark); }

/* ── TARJETAS TARIFAS ────────────────────────────────────── */
.tarifa-card { border: 2px solid var(--co-light); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.tarifa-card:hover { box-shadow: 0 8px 32px rgba(25,118,210,.16); transform: translateY(-3px); }
.tarifa-card.hot { border-color: var(--co-orange); box-shadow: 0 8px 32px rgba(255,102,0,.2); }
.t-header { background: var(--co-main); height: 80px;}
.t-header.hot { background: var(--co-orange); }
.t-price-old { font-size: 1rem; font-weight: 700; color: #bbb; text-decoration: line-through; text-decoration-color: var(--co-orange); }
.t-price-new { font-size: 4rem; font-weight: 900; color: var(--co-main); line-height: 1; }
.t-price-new.hot { color: var(--co-orange); }
.t-promo { font-size: .68rem; font-weight: 700; color: var(--co-mid); }
.t-feat { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--co-dark); }
.btn-tarifa {
  background: var(--co-orange); color: #fff; border: none; border-radius: 10px;
  padding: 10px; font-size: .85rem; font-weight: 800; width: 100%; font-family: inherit; transition: background .15s;
}
.btn-tarifa:hover { background: var(--co-orange-dark); }

/* ── SECCIÓN VENTAJAS ────────────────────────────────────── */
.sec-ventajas { background: var(--co-light); }
.v-underline { width: 56px; height: 4px; background: var(--co-main); border-radius: 2px; margin: 10px auto 40px; }
.v-ico { width: 100px; height: 97px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.v-ico img { width: 100%; height: 100%; object-fit: contain; }

/* ── TABLA MAXIMIZA ──────────────────────────────────────── */
.comp-wrap { border-radius: 14px; overflow: hidden; border: 1px solid #D6E4F7; box-shadow: 0 4px 20px rgba(25,118,210,.1); max-width: 860px; margin: 0 auto; }
.comp-header { background: var(--co-dark); color: #fff; text-align: center; font-size: 1.1rem; font-weight: 800; padding: 18px 24px; }
.comp-table { width: 100%; border-collapse: collapse; }
.comp-table thead th { padding: 13px 18px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; background: #fff; border-bottom: 2px solid #E8F0FE; color: #555; vertical-align: middle; }
.comp-table thead th.th-esp { background: var(--co-orange); color: #fff; font-size: .78rem; text-align: center; }
.comp-table tbody td { padding: 13px 18px; font-size: .85rem; font-weight: 600; vertical-align: middle; border-bottom: 1px solid #E8F0FE; color: var(--co-dark); }
.comp-table tbody td.td-hab { text-align: center; color: #888; }
.comp-table tbody td.td-esp { background: rgba(255,102,0,.04); text-align: center; font-weight: 800; color: var(--co-orange); }
.comp-table .row-promo td { background: #EDF6FF; }
.comp-table .row-total td { background: var(--co-mid); color: #fff; font-weight: 900; font-size: .9rem; border-bottom: none; }
.comp-table .row-total td.td-hab { color: rgba(255,255,255,.5); font-weight: 700; }
.comp-table .row-total td.td-esp { background: var(--co-mid); color: #fff; }
.p-tachado { text-decoration: line-through; text-decoration-color: var(--co-orange); color: #aaa; font-weight: 700; }
.p-oferta { font-size: 1.1rem; font-weight: 900; color: var(--co-orange); line-height: 1.2; }
.p-total { font-size: 1.35rem; font-weight: 900; color: #fff; }
.badge-save { display: inline-block; background: var(--co-dark); color: #fff; border-radius: 20px; padding: 2px 10px; font-size: .68rem; font-weight: 800; margin-top: 3px; }
.badge-circle {
  background: var(--co-dark); color: #fff; border-radius: 50%; width: 68px; height: 68px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .55rem; font-weight: 800; text-align: center; text-transform: uppercase; line-height: 1.2; flex-shrink: 0;
}
.badge-circle .bc-num { font-size: .85rem; font-weight: 900; }
.feat-cell { display: flex; align-items: center; gap: 10px; }
.comp-note { font-size: .68rem; color: #888; padding: 11px 18px; background: #fff; border-top: 1px solid #E8F0FE; }

/* ── CTA BANNER ──────────────────────────────────────────── */
.sec-cta { background: linear-gradient(135deg, var(--co-dark) 0%, var(--co-mid) 100%); }
.btn-cta-main {
  background: var(--co-orange); color: #fff; border: none; border-radius: 50px;
  padding: 13px 34px; font-size: 1rem; font-weight: 900; font-family: inherit; transition: background .15s, transform .15s;
}
.btn-cta-main:hover { background: var(--co-orange-dark); transform: scale(1.04); }
.btn-cta-sec {
  background: transparent; border: 2px solid rgba(255,255,255,.4); color: #fff;
  border-radius: 50px; padding: 12px 26px; font-size: .9rem; font-weight: 800; font-family: inherit; transition: border-color .15s;
}
.btn-cta-sec:hover { border-color: #fff; }

/* ── FAQ ─────────────────────────────────────────────────── */
.sec-faq .accordion-button { font-size: .85rem; font-weight: 800; color: var(--co-dark); background: #fff; }
.sec-faq .accordion-button:not(.collapsed) { color: var(--co-main); background: var(--co-light); box-shadow: none; }
.sec-faq .accordion-button::after { filter: invert(20%) sepia(80%) saturate(500%) hue-rotate(190deg); }
.sec-faq .accordion-body { font-size: .82rem; color: #555; line-height: 1.75; }
.sec-faq .accordion-item { border: 1px solid #E8F0FE !important; border-radius: 10px !important; margin-bottom: 8px; overflow: hidden; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: var(--co-dark); }
footer hr { border-color: rgba(255,255,255,.1); }
footer a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .15s; }
footer a:hover { color: #fff; }

/* ── SECTION TAG ─────────────────────────────────────────── */
.sec-tag {
  display: inline-block; background: var(--co-light); color: var(--co-main);
  border-radius: 20px; padding: 3px 14px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

/* ── POPUP CONTACTACIÓN ──────────────────────────────────── */
#popupContacto .modal-content {
  border: none; border-radius: 18px; overflow: hidden;
}
#popupContacto .modal-header {
  background: var(--co-orange);
  border: none; padding: 22px 24px 18px;
  position: relative;
}
#popupContacto .modal-header .btn-close {
  position: absolute; top: 14px; right: 16px;
  filter: invert(1); opacity: .85;
}
#popupContacto .modal-title {
  font-size: 1.35rem; font-weight: 900;
  text-transform: uppercase; color: #fff;
  text-align: center; width: 100%; letter-spacing: .3px; line-height: 1.25;
}
#popupContacto .modal-body { padding: 22px 22px 24px; background: #fff; }
/* Fila de llamada directa */
.popup-call-row {
  background: #fff;
  border: 1.5px solid #E8E8E8;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s;
  margin-bottom: 18px;
}
.popup-call-row:hover { border-color: var(--co-orange); box-shadow: 0 4px 14px rgba(255,102,0,.12); }
.popup-call-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: #FFF0E6; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.popup-call-icon img { width: 18px; height: 18px; }
.popup-call-label { font-size: .72rem; color: #888; font-weight: 600; }
.popup-call-number { font-size: 1.75rem; font-weight: 900; color: var(--co-orange); display: block; }
.popup-call-arrow { margin-left: auto; color: #ccc; font-size: 1.1rem; }
/* Separador */
.popup-divider { font-size: .72rem; font-weight: 700; color: #aaa; text-align: center; margin: 0 0 18px; position: relative; }
.popup-divider::before, .popup-divider::after {
  content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: #eee;
}
.popup-divider::before { left: 0; } .popup-divider::after { right: 0; }
/* Sección callback */
.popup-cb-title { font-size: .82rem; font-weight: 800; color: #1A2938; margin-bottom: 3px; }
.popup-cb-sub   { font-size: .72rem; color: #888; margin-bottom: 14px; }
.popup-phone-wrap { position: relative; margin-bottom: 14px; }
.popup-phone-wrap input {
  width: 100%; border: 1.5px solid var(--co-orange); border-radius: 10px;
  padding: 12px 14px 12px 42px;
  font-size: .88rem; font-weight: 700; font-family: inherit;
  outline: none; transition: box-shadow .15s;
}
.popup-phone-wrap input:focus { box-shadow: 0 0 0 3px rgba(255,102,0,.15); }
.popup-phone-wrap input.is-invalid { border-color: #dc3545; }
.popup-phone-wrap .pico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 15px; pointer-events: none;
}
.btn-popup-submit {
  width: 100%; border: none; border-radius: 10px;
  background: #28A745; color: #fff;
  padding: 13px; font-size: .88rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .5px;
  font-family: inherit; cursor: pointer; transition: background .15s, transform .1s;
}
.btn-popup-submit:hover { background: #218838; transform: scale(1.02); }
.btn-popup-submit:active { transform: scale(.98); }
/* Estado de éxito */
.popup-success {
  display: none; text-align: center; padding: 28px 16px;
}
.popup-success-ico {
  width: 64px; height: 64px; border-radius: 50%;
  background: #D4EDDA; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 14px; font-size: 1.8rem;
}
.popup-success h4 { font-size: 1.05rem; font-weight: 900; color: #1A2938; margin-bottom: 6px; }
.popup-success p { font-size: .82rem; color: #666; margin: 0; }
.form-check-callme, .form-check-callme-mov {
    font-size: .75rem;
    text-align: justify;
}
.form-check-callme {
    line-height: 1.4;
    margin: 1rem 0 0;
    max-height: 0;
    min-height: 0;
    overflow: hidden;
    transition: max-height 1s;
}
.formulario:hover .form-check-callme{
    margin: 1rem 0 0;
    max-height: 15rem;
}
.icon-close {
    border: none;
    cursor: pointer;
    height: 1.5rem;
    opacity: 1;
    position: absolute;
    right: 1rem;
    transition: all .3s ease;
    width: 1.5rem;
    z-index: 1050
}

.icon-close:after,.icon-close:before {
    background: #000;
    content: "";
    height: .188rem;
    left: 0;
    margin-top: -.0625rem;
    position: absolute;
    top: 50%;
    width: 100%
}

.icon-close:before {
    transform: rotate(-45deg)
}

.icon-close:after {
    transform: rotate(45deg)
}

.icon-close:focus,.icon-close:hover {
    transform: rotate(-180deg)
}
.has-error {
    background: #ff5350;
    border-radius: 20rem;
    color: #fff;
    display: inline-block;
    font-size: .625rem;
    margin: .5rem 0;
    padding: .125rem .25rem;
}