/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  overflow-x: clip;
  margin: 0;
  font-family: 'Lexend', sans-serif;
  color: #17203a;
  background: var(--color-white);
  line-height: 1.6;
}
h1, h2, h3{
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1, h2 { text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.container-wide { max-width: 1440px; }
/* Conserva las medidas originales en celular, tableta y escritorio pequeño. */
@media (max-width: 1199.98px) {
  .container { max-width: 1160px; padding-right: 24px; padding-left: 24px; }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-net);
  margin: 0 0 .75em;
}
.eyebrow.center, .section-title.center { text-align: center; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.text-net { color: var(--color-net); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .75em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9375rem;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-line-strong); color: var(--color-white); }
.btn-primary:hover { background: var(--color-tech); }
.btn-outline { border: 2px solid var(--color-line); color: var(--color-line); }
.btn-outline:hover { background: var(--color-line-strong); color: var(--color-white); }


/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #eef0f5;
  transition: box-shadow .25s ease, padding .25s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(13,27,61,.08);
}
.site-header.scrolled .header-inner { padding-top: 10px; padding-bottom: 10px; }
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  transition: padding .25s ease;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand-mark { height: 52px; width: auto; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-weight: 500; font-size: .9375rem; }
.nav a:hover { color: var(--color-line); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--color-tech); border-radius: 2px; }

/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.hero-lead { font-size: 1.1rem; color: #4a5468; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hero-visual { display: flex; align-items: center; justify-content: center; }

.hero-photo-frame { position: relative; width: 100%; max-width: 420px; }
.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 48px -16px rgba(13,27,61,.28);
}
.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 12px 28px -10px rgba(13,27,61,.25);
  font-size: .875rem;
  font-weight: 500;
  color: #17203a;
  animation: float 4s ease-in-out infinite;
}
.hero-badge-signal { top: -18px; left: -18px; }
.hero-badge-speed {
  bottom: -18px;
  right: -18px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  animation-delay: -2s;
}
.hero-badge-speed strong { font-family: 'Fredoka', sans-serif; color: var(--color-line); font-size: 1.1rem; }
.hero-badge-speed span { color: #4a5468; font-size: .75rem; }
.hero-badge-icon { width: 22px; height: 22px; border-radius: 6px; }
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 rgba(46,204,113,.6);
  animation: pulse-dot 1.8s ease-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,.55); }
  70% { box-shadow: 0 0 0 10px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge, .pulse-dot { animation: none; }
}

/* Stats strip */
.stats { padding: 32px 0; background: var(--color-tech); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-variant-numeric: tabular-nums;
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--color-white);
}
.stat-label { display: block; font-size: .875rem; color: #c7d6f0; margin-top: 4px; }
@media (max-width: 860px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 28px;
  margin-top: 40px;
}
.card {
  padding: 32px 26px;
  border-radius: 20px;
  background: #f7f9fd;
  border: 1px solid #eef0f5;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px -20px rgba(13,27,61,.25);
}
.card h3 { font-size: 1.15rem; }
.card p{ color: #4a5468; margin: 0; }

/* Servicios / Porque sections */
.servicios{ padding: 88px 0; }

/* Nosotros */
.nosotros { padding: 88px 0; background: var(--color-tech); color: var(--color-white); }
.nosotros .section-title { color: var(--color-white); }
.nosotros p { color: #d6e2f7; }

/* Ticker */
.ticker {
  background: var(--color-net);
  color: var(--color-white);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 40px;
  padding-left: 40px;
  animation: ticker-scroll 26s linear infinite;
}
.ticker-track span {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.ticker-track span::after {
  content: "•";
  margin-left: 40px;
  opacity: .6;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* Cobertura */
.cobertura { padding: 88px 0; background: #f7f9fd; }
.map-dept-outline { fill: #eef2fa; stroke: #c7d0e4; stroke-width: 1.2; }
.map-mpio-border { fill: none; stroke: #c7d0e4; stroke-width: .6; opacity: .8; }
.map-region { stroke-width: 1.2; }
.map-region-orito { fill: rgba(196, 29, 127, .18); stroke: var(--color-net); stroke-opacity: .6; }
.map-region-guamuez { fill: rgba(23, 119, 255, .18); stroke: var(--color-line); stroke-opacity: .6; }
.map-region-sanmiguel { fill: rgba(28, 179, 255, .22); stroke: var(--color-cielo); stroke-opacity: .6; }
.cd-leader { stroke: #8a93ab; stroke-width: 1; fill: none; }
.map-locator-bg { fill: var(--color-white); stroke: #e2e8f4; stroke-width: 1; }
.map-locator-shape { fill: #e3e9f4; stroke: #c3cee2; stroke-width: 1; }
.map-locator-rect { fill: rgba(23, 119, 255, .2); stroke: var(--color-line); stroke-width: 1; }
.map-locator-label { fill: #6b7690; font-size: .75rem; font-family: 'Lexend', sans-serif; text-anchor: middle; }
.cd-node-net { fill: var(--color-net); }
.cd-node-line { fill: var(--color-line); }
.cd-node-cielo { fill: var(--color-cielo); }
.cd-node { stroke: var(--color-white); stroke-width: 2; }
.cd-node-label {
  fill: #1c2333; font-size: .8125rem; font-weight: 600; font-family: 'Lexend', sans-serif;
  paint-order: stroke; stroke: #f7f9fd; stroke-width: 4px; stroke-linejoin: round;
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #107C41;
  color: var(--color-white);
  padding: 12px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(16,124,65,.35);
  text-decoration: none;
  transition: box-shadow .25s ease, transform .25s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(16,124,65,.45); }
.wa-float-text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  transition: max-width .3s ease, opacity .2s ease;
}
.wa-float-text strong { font-size: .8125rem; }
.wa-float-text small { font-size: .75rem; opacity: .9; }
.wa-float:hover .wa-float-text { max-width: 180px; opacity: 1; }
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; }
  .wa-float-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float-text { transition: none; }
}

/* Footer */
.site-footer{background:#0d1b3d;color:#b9c4dd;padding-top:56px}
.site-footer .footer-wrap{max-width:1440px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}
.footer-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;padding:28px 0;border-bottom:1px solid rgba(255,255,255,.1)}
.footer-actions p{margin:0;color:#fff;font:500 1.05rem Lexend,sans-serif}
.footer-actions div{display:flex;gap:10px;flex-wrap:wrap}
.footer-pill{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font-weight:500;font-size:.92rem;border:1px solid rgba(255,255,255,.14);transition:background .2s,transform .2s}
.footer-pill:hover{background:var(--color-net);transform:translateY(-2px)}
.footer-pill.footer-primary{background:var(--color-net);border-color:var(--color-net)}
.footer-pill svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}
.footer-grid{display:grid;grid-template-columns:minmax(0,1.25fr) repeat(3,minmax(0,1fr));column-gap:40px;row-gap:0;padding:44px 0 40px}
.footer-brand{grid-row:1 / span 3}
.footer-brand img{height:58px;width:auto;margin-bottom:16px}
.footer-desc{font-size:.9375rem;line-height:1.55;margin:0 0 16px}
.footer-contact{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-direction:column;gap:10px}
.footer-contact span{display:block;font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:#8592b3}
.footer-contact a{color:#fff;font-size:.875rem;font-weight:500}
.footer-col{grid-row:1}
.footer-col h3{line-height:1.6;display:flex;align-items:center;gap:8px;color:#fff;font-family:Lexend,sans-serif;font-weight:500;font-size:1rem;letter-spacing:.01em;margin:0 0 16px;padding-bottom:10px;border-bottom:2px solid transparent;border-image:linear-gradient(90deg,var(--color-net) 0 32px,rgba(255,255,255,.1) 32px) 1}
.footer-col h3 svg{width:18px;height:18px;stroke:var(--color-cielo);fill:none;stroke-width:2}
.footer-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
.footer-col a{font-size:.9375rem;display:inline-flex;gap:6px;transition:color .15s,transform .15s}
.footer-col a:hover{color:#fff;transform:translateX(4px)}
.footer-col a::after{content:"→";opacity:0;transition:opacity .15s}
.footer-col a:hover::after{opacity:1}
@media (max-width: 860px) {
  .footer-col ul { gap: 0; }
  .footer-col li { min-height: 44px; }
  .footer-col a { min-height: 44px; padding-block: 10px; align-items: center; }
  /* Expand the fixed control's hit area without changing its visible pill. */
}
.footer-bottom{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:20px 0;border-top:1px solid rgba(255,255,255,.1);font-size:.8125rem}
.footer-entes{grid-row:2;grid-column:2 / -1;align-self:start;margin-top:32px;padding-top:24px;border-top:1px solid rgba(255,255,255,.1);display:flex;align-items:center;gap:40px;flex-wrap:wrap}
.footer-entes i{width:1px;height:40px;background:rgba(255,255,255,.14)}
.footer-entes-grupo{display:flex;align-items:center;gap:28px}
.footer-entes-grupo span{font:500 .75rem Lexend,sans-serif;text-transform:uppercase;letter-spacing:.08em;color:#8592b3}
.footer-entes a{display:block;transition:transform .2s,opacity .2s;opacity:.75}
.footer-entes a:hover{transform:translateY(-2px);opacity:1}
.footer-ente-mintic{height:48px;filter:brightness(0) invert(1)}.footer-ente-crc{height:52px}.footer-ente-sic{height:36px;filter:brightness(0) invert(1)}
.footer-crc { text-align: center; padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-crc img { display: block; width: 80%; max-width: 728px; height: auto; margin: 0 auto 12px; background: white; border-radius: 8px; }
.footer-crc p { font-size: .875rem; margin: 0; }
.footer-crc p a { color: #fff; text-decoration: underline; }

.footer-grid > * { min-width: 0; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-ente-mintic, .footer-ente-crc, .footer-ente-sic { width: auto; max-width: none; }
.site-footer a:focus-visible { outline: 3px solid var(--color-cielo); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .site-footer a, .footer-col a::after { transition: none; }
  .site-footer a:hover { transform: none; }
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .footer-brand, .footer-entes { grid-column: 1 / -1; grid-row: auto; }
  .footer-col { grid-row: auto; }
  .footer-entes { margin-top: 0; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-actions > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .footer-pill { justify-content: center; padding-inline: 12px; }
  .footer-pill svg { flex-shrink: 0; }
  .footer-primary { grid-column: 1 / -1; }
  .footer-entes { justify-content: center; gap: 24px; }
  .footer-entes-grupo { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .footer-entes i { display: none; }
  .footer-bottom { flex-direction: column; }
}

/* Espacio para el logo ampliado sin comprimirlo ni desbordar el encabezado. */
@media (min-width: 861px) and (max-width: 1100px) {
  .header-inner, .nav { gap: 12px; }
}
@media (max-width: 520px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .header-inner > .brand { grid-column: 1; grid-row: 1; }
  .header-inner > .nav-toggle { grid-column: 2; grid-row: 1; }
  .header-inner > .btn { grid-column: 1 / -1; justify-self: center; }
}

/* Responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: minmax(0,1fr); }
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto; }
  .cards { grid-template-columns: minmax(0,1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .brand-mark { height: 44px; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #eef0f5;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .25s ease, visibility 0s linear .25s;
  }
  .nav.open { max-height: 80vh; overflow-y: auto; visibility: visible; transition: max-height .25s ease; }
  .nav a { padding: 14px 24px; border-top: 1px solid #eef0f5; }
  .nav-toggle { display: flex; }
}

/* Planes */
.planes { padding: 88px 0; }
.planes-lead {
  max-width: 62ch;
  margin: -8px auto 40px;
  text-align: center;
  color: #4a5468;
}
.plan-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: #f0f2f8;
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 40px;
}
.toggle-btn {
  border: 0;
  background: transparent;
  padding: .7em 1.4em;
  border-radius: 999px;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: .875rem;
  color: #4a5468;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.toggle-btn.active { background: var(--color-line-strong); color: var(--color-white); }
.plan-cards { align-items: stretch; }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 28px;
  border-radius: 20px;
  background: #f7f9fd;
  border: 1px solid #eef0f5;
}
.plan-featured {
  background: var(--color-tech);
  color: var(--color-white);
  transform: translateY(-8px);
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--color-net);
  color: var(--color-white);
  font-size: .75rem;
  font-weight: 600;
  padding: .35em 1em;
  border-radius: 999px;
}
.plan-card h3 { font-size: 1.2rem; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.price-amount {
  font-variant-numeric: tabular-nums;
  font-family: 'Fredoka', sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  display: inline-block;
  transition: transform .3s ease, opacity .3s ease;
}
.price-amount.price-updating { transform: scale(.85); opacity: 0; }
.price-period { color: #4a5468; font-size: .9375rem; }
.plan-featured .price-period { color: #c7d6f0; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.plan-features li {
  padding-left: 26px;
  position: relative;
  font-size: .9375rem;
  color: #4a5468;
}
.plan-featured .plan-features li { color: #d6e2f7; }
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-line);
  font-weight: 700;
}
.plan-featured .plan-features li::before { color: var(--color-cielo); }
.plan-cta { justify-content: center; width: 100%; }
.plan-featured .btn-outline { border-color: var(--color-white); color: var(--color-white); }
.plan-featured .btn-outline:hover { background: var(--color-white); color: var(--color-tech); }
.plan-featured .btn-primary.plan-cta { background: var(--color-white); color: var(--color-tech); }
.plan-featured .btn-primary.plan-cta:hover, .plan-featured .btn-primary.plan-cta:focus-visible { background: #eaf1ff; color: var(--color-tech); }
.plan-featured .btn-primary.plan-cta:focus-visible { outline: 3px solid var(--color-cielo); outline-offset: 3px; }

@media (max-width: 860px) {
  .plan-cards { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
}

/* FAQ */
.faq { padding: 88px 0; background: #f7f9fd; }
.faq-list { max-width: 760px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--color-white);
  border: 1px solid #eef0f5;
  border-radius: 14px;
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-family: 'Fredoka', sans-serif;
  color: var(--color-tech);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-line);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 18px; color: #4a5468; margin: 0; }

/* Legal sub-pages (normativa, protección infantil, política judicial, control parental) */
.legal-hero { padding: 56px 0 8px; }
.legal-hero .eyebrow { margin-bottom: .5em; }
.legal-lead { max-width: 70ch; color: #4a5468; font-size: 1.05rem; }
.legal-content { padding: 32px 0 96px; }
.legal-content h2 { font-size: 1.3rem; color: var(--color-tech); margin-top: 2em; }
.legal-content h2:first-child { margin-top: 0; }
.protection-section + .protection-section { margin-top: 48px; }
.protection-section h2 { display: flex; align-items: center; gap: 10px; }
.protection-section h2 svg { flex-shrink: 0; }
.protection-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; }
@media (max-width: 1100px) {
  .protection-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .protection-cards { grid-template-columns: minmax(0, 1fr); }
}
.legal-list { max-width: 760px; margin: 0; padding-left: 22px; color: #4a5468; }
.legal-list li { margin-bottom: 12px; }
.card-link { display: block; }
.card-link h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-link .card-arrow { color: var(--color-line); flex-shrink: 0; }
.legal-note { max-width: 62ch; margin: 40px 0 0; font-size: .875rem; color: #7a8299; }
.legal-note.center { margin-left: auto; margin-right: auto; text-align: center; }
.legal-note-box { padding: 16px 20px; border: 1px solid #dde2ee; border-radius: 14px; background: #f7f9fd; }
.legal-table-wrap { max-width: 760px; overflow-x: auto; }
.legal-table-wrap:focus-visible { outline: 3px solid var(--color-tech); outline-offset: 3px; }
.legal-table { width: 100%; min-width: 480px; border-collapse: collapse; color: #4a5468; }
.legal-table caption { text-align: left; margin-bottom: 12px; font-weight: 600; color: var(--color-tech); }
.legal-table th, .legal-table td { padding: 12px 16px; border: 1px solid #dde2ee; text-align: left; }
.legal-table th { background: #f7f9fd; color: var(--color-tech); }
.legal-details a { color: var(--color-tech); text-decoration: underline; }

/* Accesos a los portales */
.topbar { background: #f4f6fb; border-bottom: 1px solid #eef0f5; }
.topbar-inner { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 30px; color: #4a5468; }
.topbar a { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; color: #4a5468; text-decoration: none; }
.topbar a:hover { color: var(--color-line-strong); }
.topbar a:focus-visible, .nav-portal:focus-visible { outline: 2px solid var(--color-tech); outline-offset: 3px; }
.nav-portal { display: none; }
@media (max-width: 860px) {
  .topbar { display: none; }
  .nav-portal { display: block; }
}

/* Redes sociales y accesibilidad compartidas */
.footer-social, .contact-social { display:flex; flex-wrap:wrap; gap:10px; }
.footer-social a, .contact-social a { display:inline-flex; align-items:center; justify-content:center; flex:none; width:36px; height:36px; border-radius:50%; }
.footer-social a { background:rgba(255,255,255,.1); color:var(--color-white); }
.footer-social a:hover { color:var(--color-cielo); }
.contact-social { margin-top:10px; }
.contact-social a { color:var(--color-tech); background:#e6efff; }
.contact-social a:hover { color:var(--color-white); background:var(--color-tech); }
.footer-social svg, .contact-social svg { width:20px; height:20px; }
a:focus-visible, button:focus-visible { outline:3px solid var(--color-tech); outline-offset:3px; }
.site-footer a:focus-visible { outline-color:var(--color-cielo); }
.legal-note { color:#4a5468; }
.legal-note a { color:var(--color-tech); text-decoration:underline; }

/* Documentos legales: reglas compartidas e índice estático. */
.legal-page{max-width:760px;margin:0 auto;padding:64px 24px 88px;color:#2a3247;line-height:1.65;}
.legal-page h1{margin-bottom:.2em;}
.legal-page .legal-fecha{color:#6b7690;font-size:.875rem;margin:0 0 28px;}
.legal-page h2{font-size:1.2rem;color:var(--color-tech);margin:34px 0 10px;}
.legal-page ul{padding-left:1.2em;margin:0 0 14px;}
.legal-page p a,.legal-page li a{color:var(--color-tech);text-decoration:underline;text-underline-offset:2px;}
.legal-page li{margin-bottom:6px;}
.legal-page .legal-datos{background:#f7f9fd;border:1px solid #eef0f5;border-radius:14px;padding:16px 20px;}
.legal-page .legal-datos p{margin:0 0 4px;}

.legal-body { min-width: 0; }
.legal-page h2 { scroll-margin-top: 96px; }
.legal-toc { margin-bottom: 32px; }
.legal-toc-title {
  color: var(--color-net);
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 .75em;
}
.legal-toc ol {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.legal-page .legal-toc li { margin: 0; }
.legal-page .legal-toc a {
  display: block;
  color: #4a5468;
  font-size: .875rem;
  line-height: 1.4;
  text-decoration: none;
}
.legal-page .legal-toc a:hover,
.legal-page .legal-toc a:focus-visible { color: var(--color-tech); }
.legal-page .legal-toc a:focus-visible {
  outline: 3px solid var(--color-tech);
  outline-offset: 3px;
}
@media (min-width: 600px) and (max-width: 1199.98px) {
  .legal-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Amplitud adicional exclusivamente desde escritorio grande. */
@media (min-width: 1200px) {
  .hero h1 { font-size: clamp(3.4rem, 3.6vw, 4.25rem); }
  .hero-lead { max-width: 52ch; }
  .hero-photo-frame { max-width: clamp(420px, 34vw, 560px); }
  .topbar a { font-size: .75rem; }
  .servicios .tv-stage {
    max-width: none;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
  .legal-page--toc {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 260px minmax(0, 760px);
    gap: 64px;
    justify-content: center;
  }
  .legal-toc {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow: auto;
    margin-bottom: 0;
    padding: 4px;
  }
  .legal-hero .container, .legal-content .container { max-width: 1040px; }
}
@media (min-width: 1600px) { html { font-size: 106.25%; } }
@media (min-width: 1920px) { html { font-size: 112.5%; } }

/* Mapas bajo demanda: conserva el espacio del mapa original. */
.map-placeholder.cob-office-map, .map-placeholder.zone-map{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;overflow:hidden;}
.map-placeholder > span{font-size:.875rem;color:var(--color-tech);font-weight:500;}
.map-load{font:inherit;font-size:.875rem;color:var(--color-net);background:white;border:1px solid #dde2ee;border-radius:999px;padding:6px 18px;cursor:pointer;}
.map-placeholder > a{font-size:.8125rem;}
.map-frame{display:block;width:100%;height:100%;border:0;}

/* Enlace al catálogo en el título de los bloques de apps de los planes. */
.plan-bloque-apps .plan-bloque-titulo { position: relative; }
.plan-catalogo { position: absolute; top: 0; right: 0; color: var(--color-tech); font-size: .75rem; font-weight: 500; white-space: nowrap; }
.plan-catalogo:hover { text-decoration: underline; }
.plan-featured .plan-catalogo { color: var(--color-white); }
.plan-catalogo:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* Compensa el espacio del título para conservar la altura de las tarjetas. */
.plan-bloque-apps .plan-bloque-titulo { font-size: .75rem; line-height: 1.25; margin-bottom: 0; }
.plan-bloque.plan-bloque-apps { padding-top: 13px; padding-bottom: 13px; }
@media (min-width: 1101px) {
  .plan-bloque.plan-bloque-apps { padding-top: 7px; padding-bottom: 7px; }
}
@media (max-width: 560px) {
  .plan-bloque-apps .plan-bloque-titulo { padding-right: 94px; gap: 6px; }
  .plan-bloque-apps .plan-bloque-titulo svg { width: 16px; height: 16px; }
}

/* NOVA Play: identidad reutilizable, navegación y franja de la portada. */
.np-wordmark { display:block; width:auto; height:26px; }
.np-wordmark-big { height:52px; }
@media (max-width:600px){ .np-wordmark-big { height:42px; } }
.nav .np-link { display:flex; align-items:center; gap:6px; color:var(--color-tech); font-weight:600; }
.np-link img { width:20px; height:20px; flex:none; }
.np-badge { display:inline-block; padding:2px 8px; border-radius:999px; background:var(--color-net); color:#fff; font:600 .75rem/1.6 'Lexend',sans-serif; }
.np-card { position:absolute; left:-28px; bottom:64px; display:flex; align-items:center; gap:12px; width:max-content; max-width:calc(100% + 28px); padding:12px 16px; border-radius:16px; background:#0b1430; color:#fff; box-shadow:0 14px 30px rgba(11,20,48,.35); }
.np-card-copy { min-width:0; font-size:.875rem; line-height:1.4; }
.np-card small { display:block; margin-top:2px; color:#b9c4dd; font-size:.75rem; }
.nova-play { position:relative; overflow:hidden; scroll-margin-top:120px; background:radial-gradient(1200px 500px at 85% 0%,rgba(196,29,127,.35),transparent 60%),radial-gradient(900px 500px at 0% 100%,rgba(23,119,255,.35),transparent 60%),#070d22; color:#fff; padding:64px 0; }
.np-wrap { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:56px; align-items:center; }
.np-copy, .np-screen { min-width:0; }
.np-heading { position:relative; margin:14px 0 12px; }
.np-heading h2 { font:700 2.6rem/1.1 'Fredoka',sans-serif; margin:0 0 10px; }
.np-heading h2 > span { color:var(--color-cielo); }
.np-soon { display:inline-block; padding:4px 12px; border:1px solid rgba(255,255,255,.3); border-radius:999px; background:rgba(255,255,255,.1); color:#fff; font-size:.75rem; font-weight:600; }
.np-lead { color:#c9d3ea; font-size:1.05rem; line-height:1.55; margin:0 0 22px; max-width:46ch; }
.np-feats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 0 26px; }
.np-feat { overflow-wrap:anywhere; padding:14px; border-radius:14px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); }
.np-feat svg { width:24px; height:24px; stroke:var(--color-cielo); fill:none; stroke-width:1.8; }
.np-feat .np-live-dot { fill:#e5304b; stroke:none; }
.np-feat b { display:block; margin:8px 0 2px; }
.np-feat small { display:block; color:#b9c4dd; font-size:.8125rem; line-height:1.4; }
.np-ctas { display:flex; gap:12px; flex-wrap:wrap; }
.np-btn { display:inline-flex; align-items:center; justify-content:center; padding:12px 22px; border-radius:999px; font-weight:600; line-height:1.5; text-align:center; }
.np-btn-primary { background:var(--color-net); color:#fff; }
.np-btn-secondary { border:1px solid rgba(255,255,255,.4); color:#fff; }
.np-btn-primary:hover { background:#a9186d; }
.np-btn-secondary:hover { background:rgba(255,255,255,.1); }
.np-devs { margin:18px 0 0; color:#aab6d1; font-size:.8125rem; }
.np-screen { position:relative; border-radius:22px; padding:14px; background:linear-gradient(160deg,#1a2550,#0b1430); box-shadow:0 30px 60px rgba(0,0,0,.45); }
.np-top { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.np-live { flex:none; font-size:.75rem; line-height:1.6; color:#fff; background:#bd2039; padding:3px 10px; border-radius:999px; }
.np-hero { height:150px; border-radius:14px; background:linear-gradient(90deg,rgba(7,13,34,.95),rgba(7,13,34,.35)),url('../assets/img/photos/familia-tv.jpg') center/cover; padding:18px; display:flex; flex-direction:column; justify-content:flex-end; }
.np-hero b { font:700 1.3rem/1.2 'Fredoka',sans-serif; }
.np-hero small { color:#c9d3ea; }
.np-row { margin-top:12px; font-size:.75rem; color:#b9c4dd; }
.np-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; margin-top:6px; }
.np-tile { height:52px; min-width:0; border-radius:10px; background:#fff; display:grid; place-items:center; overflow:hidden; }
.np-tile img { width:auto; height:auto; max-width:78%; max-height:34px; }
.np-posters { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-top:6px; }
.np-poster { min-width:0; aspect-ratio:2/3; border-radius:10px; background:linear-gradient(160deg,#3a2a6b,#c41d7f); display:flex; align-items:flex-end; padding:8px; font:600 .75rem/1.4 'Lexend',sans-serif; }
.np-poster:nth-child(2) { background:linear-gradient(160deg,#0f4c81,#1cb3ff); }
.np-poster:nth-child(3) { background:linear-gradient(160deg,#1d3b2a,#2fbf71); }
.np-poster:nth-child(4) { background:linear-gradient(160deg,#4a1d1d,#ff7a3d); }
.np-poster:nth-child(5) { background:linear-gradient(160deg,#1f2a44,#6b7690); }
.np-poster { box-shadow:inset 0 -46px 28px -20px rgba(7,13,34,.85); }
.plan-features .feat-nova-play { display:flex; align-items:flex-start; gap:8px; padding-left:0; font-weight:600; color:#1f2a44; }
.plan-features .feat-nova-play::before { content:none; }
.plan-features .feat-nova-play > span:last-child { padding-top:0; }
.feat-nova-play > img { width:22px; height:22px; flex:none; }
.np-explain { display:inline-block; color:var(--color-tech); font-size:.75rem; font-weight:500; text-decoration:underline; text-underline-offset:3px; }
.plan-featured .feat-nova-play, .plan-featured .np-explain { color:#fff; }
.nova-play a:focus-visible, .np-card:focus-visible { outline:3px solid var(--color-cielo); outline-offset:4px; }
.np-explain:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
@media (max-width:960px) {
  .np-wrap { grid-template-columns:minmax(0,1fr); gap:32px; }
  .np-screen { width:100%; max-width:620px; justify-self:center; }
}
@media (max-width:640px) {
  .nova-play { padding:48px 0; scroll-margin-top:160px; }
  .np-heading h2 { font-size:2rem; }
  .np-feats { gap:8px; }
  .np-feat { padding:10px; }
  .np-feat b { font-size:.875rem; }
  .np-feat small { font-size:.75rem; }
  .np-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .np-posters { grid-template-columns:repeat(5,minmax(calc((100% - 16px)/3),1fr)); overflow-x:auto; }
  .np-btn { width:100%; padding-inline:16px; font-size:.875rem; }
}
@media (max-width:860px) {
  .np-card { left:-12px; max-width:calc(100% + 24px); gap:8px; padding:10px 12px; }
  .np-card-copy { font-size:.75rem; }
  .np-card small { font-size:.75rem; }
}

/* Botones flotantes de redes sociales (esquina inferior izquierda) */
.social-float{position:fixed;left:16px;bottom:16px;z-index:60;display:flex;gap:8px}.social-float a{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#fff;border:2px solid #fff;box-shadow:0 6px 16px rgba(0,30,90,.25);transition:transform .15s ease}.social-float a:hover{transform:translateY(-2px)}.social-float a[href*="facebook"]{background:#1877F2}.social-float a[href*="instagram"]{background:radial-gradient(circle at 30% 107%,#fdf497 0%,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285AEB 90%)}.social-float a[href*="tiktok"]{background:#000;color:#fff}.social-float a[href*="tiktok"] svg{filter:drop-shadow(-1.5px -1px 0 #25F4EE) drop-shadow(1.5px 1px 0 #FE2C55)}.social-float a:focus-visible{outline:3px solid var(--color-cielo);outline-offset:2px}@media (prefers-reduced-motion:reduce){.social-float a{transition:none}}

/* Formulario de PQR en el diálogo de contacto */
  #pqrModal .pqr-choices{ display:flex; flex-wrap:wrap; gap:10px; }
  #pqrModal .pqr-choice{ max-width:100%; padding:10px 16px; border:1px solid #667085; border-radius:20px; background:var(--color-white); color:#17203a; font:500 .875rem 'Lexend',sans-serif; cursor:pointer; }
  #pqrModal .pqr-choice:hover{ background:#e6efff; }
  #pqrModal .pqr-choice[aria-pressed="true"]{ background:var(--color-tech); color:var(--color-white); border-color:var(--color-tech); }
  #pqrModal .pqr-email .btn, #pqrModal .pqr-actions .btn{ white-space:normal; overflow-wrap:anywhere; max-width:100%; }
  #pqrModal .pqr-email .btn-outline, #pqrModal .pqr-actions .btn-outline{ color:var(--color-tech); border-color:var(--color-tech); }
  #pqrModal .pqr-email .btn-outline:hover, #pqrModal .pqr-actions .btn-outline:hover{ color:var(--color-white); background:var(--color-tech); }
  #pqrModal .pqr-email button.btn{ font-family:inherit; cursor:pointer; }
  #pqrModal .pqr-email a:not(.btn){ color:var(--color-tech); text-decoration:underline; }
  #pqrModal .pqr-email-address{ margin:16px 0; overflow-wrap:anywhere; }
  #pqrModal .pqr-term-box{ margin:16px 0 8px; padding:20px; border-radius:16px; border:1.5px solid var(--color-tech); background:var(--color-white); }
  #pqrModal .pqr-term-box h3{ margin-top:0; }
  #pqrModal .pqr-term-help{ margin:10px 0 0; font-size:.875rem; color:#4a5468; }
  #pqrModal .pqr-terminacion-note{ margin:20px 0; padding:14px 16px; border-left:4px solid var(--color-tech); border-radius:8px; background:var(--color-white); }
  #pqrModal .pqr-copy-status{ min-height:1.6em; margin:12px 0; color:var(--color-tech); }

  #pqrModal .pqr-choice, #pqrModal .pqr-email .btn{ min-height:44px; }
  #pqrModal .vac-form{ background:var(--color-white); border:1px solid #dde2ee; border-radius:20px; padding:28px; box-shadow:0 8px 24px rgba(0,30,90,.06); }
  #pqrModal .vac-form h2{ margin:0 0 4px; font-size:1.25rem; color:var(--color-tech); }
  #pqrModal .vac-form > p{ margin:0 0 18px; font-size:.875rem; color:#4a5468; }
  #pqrModal .vac-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 16px; }
  #pqrModal .vac-field{ display:flex; flex-direction:column; gap:6px; min-width:0; }
  #pqrModal .vac-field.full{ grid-column:1 / -1; }
  #pqrModal .vac-field label{ font-size:.875rem; font-weight:600; color:#17203a; }
  #pqrModal .vac-field input, #pqrModal .vac-field select, #pqrModal .vac-field textarea{ width:100%; min-height:44px; padding:10px 12px; border:1.5px solid #c9d2e3; border-radius:10px; font:inherit; font-size:.9375rem; color:#17203a; background:var(--color-white); }
  #pqrModal .vac-field textarea{ min-height:96px; resize:vertical; }
  #pqrModal .vac-field input:focus-visible, #pqrModal .vac-field select:focus-visible, #pqrModal .vac-field textarea:focus-visible{ outline:3px solid var(--color-cielo); outline-offset:1px; border-color:var(--color-line-strong); }
  #pqrModal .vac-field [aria-invalid="true"]{ border-color:#c0262d; }
  #pqrModal .vac-error{ font-size:.8125rem; color:#b3261e; min-height:0; }
  #pqrModal .vac-error:empty{ display:none; }
  #pqrModal .vac-consent{ display:flex; gap:10px; align-items:flex-start; margin-top:16px; font-size:.8125rem; color:#354864; line-height:1.5; }
  #pqrModal .vac-consent input{ flex:none; width:20px; height:20px; margin-top:2px; }
  #pqrModal .vac-consent a{ color:var(--color-tech); }
  #pqrModal .vac-form .btn{ margin-top:18px; width:100%; justify-content:center; }
  #pqrModal .vac-status{ margin:12px 0 0; font-size:.875rem; color:#0a5c30; }
  #pqrModal .vac-status:empty{ display:none; }
 @media (max-width:640px){ #pqrModal .vac-grid{ grid-template-columns:1fr; } #pqrModal .vac-form{ padding:20px; } }

  #pqrModal .vac-adjuntos{ margin-top:18px; }
  #pqrModal .vac-field small{ font-size:.8125rem; color:#354864; }
  #pqrModal .vac-archivos{ list-style:none; padding:0; margin:0; }
  #pqrModal .vac-archivos li{ display:flex; gap:12px; align-items:center; justify-content:space-between; font-size:.875rem; }
  #pqrModal .vac-archivos span{ overflow-wrap:anywhere; min-width:0; }
  #pqrModal .vac-archivos button{ min-width:64px; min-height:44px; border:1px solid #667085; border-radius:8px; background:var(--color-white); color:#17203a; font:inherit; cursor:pointer; }
  #pqrModal .vac-consent{ min-height:44px; cursor:pointer; }
  #pqrModal .vac-form button:disabled{ opacity:.7; cursor:wait; }
  #pqrModal .vac-status{ color:#354864; overflow-wrap:anywhere; }
  #pqrModal .vac-status a{ display:inline-flex; align-items:center; min-height:44px; color:var(--color-tech); text-decoration:underline; }
  #pqrModal .vac-confirmacion{ line-height:1.6; color:#17203a; }
  #pqrModal .vac-confirmacion:focus{ outline:3px solid var(--color-tech); outline-offset:3px; }

  #pqrModal .pqr-choice, #pqrModal .pqr-email .btn{ min-height:44px; }
  #pqrModal .pqr-alternativa{ margin-top:24px; font-size:.875rem; }
  #pqrModal .vac-form [hidden]{ display:none; }

body.pqr-modal-open{ overflow:hidden; }
.pqr-modal{ width:calc(100% - 32px); max-width:720px; max-height:90vh; margin:auto; padding:0; border:0; border-radius:20px; background:var(--color-white); color:var(--color-black); overflow-y:auto; overscroll-behavior:contain; }
.pqr-modal::backdrop{ background:rgba(11,20,48,.55); }
.pqr-modal[open]{ animation:pqr-modal-enter 200ms cubic-bezier(0.23,1,0.32,1); }
.pqr-modal-header{ position:sticky; top:0; z-index:1; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:20px 24px; border-bottom:1px solid var(--color-cielo); background:var(--color-white); }
.pqr-modal-header h2{ margin:0; font-size:1.4rem; color:var(--color-tech); }
.pqr-modal-header p{ margin:4px 0 0; font-size:.875rem; }
.pqr-modal-close{ flex:none; display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid var(--color-tech); border-radius:50%; background:var(--color-white); color:var(--color-tech); font:inherit; font-size:1.8rem; cursor:pointer; }
.pqr-modal-close:focus-visible{ outline:3px solid var(--color-cielo); outline-offset:3px; }
.pqr-modal-body{ padding:0 24px 24px; }
#pqrModal .pqr-email h3{ color:var(--color-tech); }
#pqrModal .vac-form{ margin-top:20px; }
#pqrModal [hidden]{ display:none; }
@keyframes pqr-modal-enter{
  from{ opacity:0; transform:translateY(12px); }
  to{ opacity:1; transform:translateY(0); }
}
@media (max-width:640px){
  .pqr-modal{ width:100%; max-width:100%; height:100vh; height:100dvh; max-height:100vh; max-height:100dvh; border-radius:0; }
  .pqr-modal-header{ padding:16px; }
  .pqr-modal-body{ padding:0 16px 24px; }
}
@media (prefers-reduced-motion:reduce){
  .pqr-modal[open]{ animation:none; }
}
