/* ============================================================
   Digital TV — global.css (the site's single unified stylesheet)
   ------------------------------------------------------------
   Direction contract (inherited world, unified 2026-09):
   THESIS: one ISP, one language — every page sells and supports
     in the same purple-band grammar; generic hero+icon-card
     defaults are refused.
   OWN-WORLD: Lato; brand purple on white/mist bands; 3px purple
     card borders at 20px; 40px pill buttons; uppercase tracked
     titles. Tokens below are mapped from the live site's
     computed rules (data/tokens.json) and AA-normalized.
   STORY: visitor grasps coverage + price in one viewport, hits
     a pill CTA, lands in a plan grid or support channel.
   FIRST VIEWPORT: light band, split-color headline, two pill
     CTAs; sticky nav above.
   FORM: established incumbent world, inherited as-is.
   ============================================================ */

/* ---------------------------------------------------------- tokens */

:root {
  --font: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand: #5d0387;
  --brand-dark: #420266;
  --brand-tint: rgba(93, 3, 135, 0.08);
  --brand-gold: #ffb932;         /* incumbent nav accent on the purple header */
  --accent: #ec6119;
  --on-accent: #331503;          /* dark text on accent orange (AA) */
  --cta: #81d742;
  --on-cta: #143f0e;             /* dark text on cta green (AA) */
  --navy: #021b54;
  --ink: #333333;
  --muted: #666666;              /* incumbent #808080, darkened to pass AA on bands */
  --band: #e8ecef;
  --white: #ffffff;
  --radius-card: 20px;
  --radius-btn: 40px;
  --radius-icon: 16px;
  --shadow-lift: 0 12px 30px rgba(51, 51, 51, 0.18);
  --shadow-header: 0 6px 24px rgba(51, 51, 51, 0.12);
  --hairline: rgba(51, 51, 51, 0.08);
  --container: 1140px;
  --header-h: 80px;
  --ease: 0.25s ease;
}

/* ----------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--brand) var(--band); }

body {
  font: 400 16px/1.65 var(--font);
  color: var(--ink);
  background: var(--white);
  caret-color: var(--brand);
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; overflow-wrap: break-word; }

a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

button { font: inherit; color: inherit; }

ul, ol { padding-left: 24px; }

::selection { background: var(--brand); color: var(--white); }

:focus-visible { outline: 3px solid rgba(93, 3, 135, 0.4); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------- helpers */

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 20px;
  background: var(--white);
  color: var(--brand);
  border: 2px solid var(--white);
  border-radius: var(--radius-btn);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--ease);
}
.skip-link:focus { top: 12px; color: var(--brand); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------------------------------------------------------- header */
/* Purple bar per the incumbent site (computed rgb(93,3,135) captured in
   data/tokens.json); user-pinned 2026-09-30: white links, gold active. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow var(--ease);
  /* background: #000000; */
  background: var(--brand)
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }
.site-header :focus-visible { outline-color: rgba(255, 255, 255, 0.55); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { flex-shrink: 0; }
.brand__logo { height: 46px; width: auto; }

/* nav — desktop */
.nav__toggle { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease);
}
.nav__link:hover { color: var(--brand-gold); }
.nav__link[aria-current="page"] { color: var(--brand-gold); }

.nav__ext svg { display: inline-block; width: 10px; height: 10px; margin-left: 4px; opacity: 0.55; vertical-align: baseline; }

/* nav — mobile */
@media (max-width: 991px) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 10px 0;
  }
  .nav__toggle-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--white);
  }
  .nav__toggle-bars { position: relative; width: 22px; height: 16px; }
  .nav__toggle-bars i {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
    transition: transform var(--ease), opacity var(--ease), top var(--ease);
  }
  .nav__toggle-bars i:nth-child(1) { top: 0; }
  .nav__toggle-bars i:nth-child(2) { top: 7px; }
  .nav__toggle-bars i:nth-child(3) { top: 14px; }
  .nav.is-open .nav__toggle-bars i:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .nav.is-open .nav__toggle-bars i:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle-bars i:nth-child(3) { top: 7px; transform: rotate(-45deg); }

  .nav__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    grid-template-rows: 0fr;
    background: var(--brand);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-header);
    transition: grid-template-rows 0.3s ease;
  }
  .nav.is-open .nav__panel { grid-template-rows: 1fr; }

  .nav__list {
    display: block;
    min-height: 0;
    overflow: hidden;
    padding: 0 24px;
  }
  .nav.is-open .nav__list { padding: 10px 24px 18px; }
  .nav__item + .nav__item { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .nav__link { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-size: 14px; }
}

/* -------------------------------------------------------- sections */

.page-hero {
  background: var(--band);
  padding: 56px 0 44px;
  text-align: center;
}
.page-hero__title {
  color: var(--brand);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.page-hero__title em, .section__title em, .promo__text em {
  font-style: normal;
  color: var(--brand);
}
.page--home .page-hero__title { color: var(--ink); }
.page-hero__subtitle {
  color: var(--muted);
  font-size: 17px;
  margin: 12px auto 0;
  max-width: 640px;
}
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.page--home .page-hero { padding: 72px 0 56px; }

.section { padding: 56px 0 72px; }
.section--light { background: var(--band); }
.section--white { background: var(--white); }

.section__title {
  color: var(--brand);
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 8px;
  text-align: center;
  text-transform: uppercase;
}
.section__subtitle {
  color: var(--muted);
  font-size: 16px;
  margin: 0 auto 42px;
  max-width: 640px;
  text-align: center;
}

/* --------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--brand-dark); color: var(--white); }
.btn--outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--brand); color: var(--white); }
.btn--block { width: 100%; margin-top: auto; }

.plans-cta__actions,
.faq-cta__actions,
.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* -------------------------------------------- home: features/promo */

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.feature { text-align: center; }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-icon);
  background: var(--brand-tint);
  color: var(--brand);
}
.feature__icon svg { width: 34px; height: 34px; }
.feature__title {
  font-size: 17px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 18px 0 8px;
}
.feature__text { color: var(--muted); font-size: 15px; }

.promo__text {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.5;
  max-width: 840px;
  margin: 0 auto 32px;
  text-align: center;
}
.promo .btn { display: flex; margin: 0 auto; width: max-content; }

/* ---------------------------------------------- home: services band */

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.service + .service { margin-top: 64px; }
.service--flip .service__media { order: 2; }
.service__media { text-align: center; }
.service__media img {
  max-width: 460px;
  width: 100%;
  border-radius: var(--radius-icon);
  margin-inline: auto;
}
.service__title {
  color: var(--brand);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.service__text { font-size: 15px; margin-bottom: 12px; }
.service__body .btn { margin-top: 10px; }

@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; gap: 24px; }
  .service + .service { margin-top: 48px; }
  .service--flip .service__media { order: 0; }
  .service__body { text-align: center; }
}

/* ------------------------------------------------- contact channels */

.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
}
.contact-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand);
  color: var(--white);
}
.contact-item__icon svg { width: 24px; height: 24px; }
.contact-item__label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.contact-item__value { display: block; font-size: 16px; font-weight: 700; margin-top: 3px; }
a.contact-item:hover .contact-item__value,
a.contact-item:hover .contact-item__label { color: var(--brand); }

@media (max-width: 640px) {
  .contact-list { flex-direction: column; align-items: stretch; }
  .contact-item { justify-content: flex-start; padding: 0 12px; }
}

/* ------------------------------------------------------------- plans */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 3px solid var(--brand);
  border-radius: var(--radius-card);
  padding: 26px 22px 22px;
  text-align: center;
  transition: border-color var(--ease);
}
.plan-card:hover { border-color: var(--brand-dark); }
.plan-card--no-promo { border-color: var(--navy); border-style: dotted; }

.plan-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: var(--radius-btn);
  background: var(--cta);
  color: var(--on-cta);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-card__badge--new { background: var(--accent); color: var(--on-accent); }

.plan-card__category {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.plan-card__name {
  color: var(--brand);
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.plan-card__price {
  color: var(--brand);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}
.plan-card__price-label { color: var(--muted); font-size: 12px; margin: 4px 0 16px; }

.plan-card__features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  text-align: left;
}
.plan-card__feature { font-size: 14px; padding: 4px 0; }
.plan-card__feature::before {
  content: "\2713";
  color: #5da828; /* incumbent green #81d742 darkened to ~3:1 for the check glyph */
  font-weight: 700;
  margin-right: 8px;
}

.plans-note {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  margin: 20px auto 0;
  max-width: 500px;
  text-align: center;
}

.plans-cta .section__subtitle { margin-bottom: 28px; }

/* ------------------------------------------------------------ about */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about__media img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-icon);
  margin-inline: auto;
}
.about__title {
  color: var(--brand);
  font-size: 21px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.about__text { font-size: 15px; margin-bottom: 12px; }
.about__body .btn { margin-top: 10px; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 24px; }
  .about__body { text-align: center; }
}

/* ------------------------------------------------- comunicados page */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius-icon);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.gallery-item a { display: block; }
.gallery-item img { width: 100%; height: auto; }

@media (max-width: 991px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } }

.doc-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid var(--brand);
  border-radius: var(--radius-btn);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: var(--white);
  transition: background var(--ease), color var(--ease);
}
.doc-chip svg { width: 16px; height: 16px; }
.doc-chip:hover, .doc-chip:focus-visible { background: var(--brand); color: var(--white); }

/* --------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox__overlay { position: absolute; inset: 0; background: rgba(33, 2, 48, 0.9); cursor: zoom-out; border: 0; }
.lightbox__figure {
  position: relative;
  margin: 24px;
  max-width: min(92vw, 1100px);
  text-align: center;
}
.lightbox__image { max-height: 80vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: 8px; }
.lightbox__caption { color: var(--white); font-size: 14px; margin-top: 14px; }
.lightbox__nav, .lightbox__close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(33, 2, 48, 0.4);
  color: var(--white);
  cursor: pointer;
  transition: background var(--ease);
}
.lightbox__nav:hover, .lightbox__close:hover { background: var(--brand); }
.lightbox__nav svg, .lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__close { top: 16px; right: 16px; }

/* ------------------------------------------------- contacto: offices */

.office-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.office-card {
  background: var(--white);
  border: 3px solid var(--brand);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.office-card__map { width: 100%; height: 300px; border: 0; }
.office-card__body { padding: 24px 28px 28px; }
.office-card__city {
  color: var(--brand);
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.office-card__detail { margin: 0 0 12px; }
.office-card__detail:last-child { margin-bottom: 0; }
.office-card__label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.office-card__value { font-size: 15px; }

@media (max-width: 991px) { .office-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .office-card__map { height: 240px; } }

/* ------------------------------------------------- social buttons */

.social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 42px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-btn);
  background: var(--brand);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--ease);
}
.social-btn:hover, .social-btn:focus-visible { background: var(--brand-dark); color: var(--white); }
.social-btn svg { width: 22px; height: 22px; }

/* --------------------------------------------------------- accordion */

.accordion {
  display: block;
  margin: 0 auto;
  max-width: 560px;
}
.accordion__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 24px 0 16px;
}
.accordion__heading { margin: 0; }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.accordion__question { color: var(--ink); font-size: 16px; font-weight: 700; transition: color var(--ease); }
.accordion__trigger:hover .accordion__question { color: var(--brand); }
.accordion__icon {
  flex-shrink: 0;
  color: var(--brand);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.3s ease;
}
.accordion__item--open .accordion__icon { transform: rotate(45deg); }

.accordion__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.accordion__item--open > .accordion__content { grid-template-rows: 1fr; }
.accordion__body { min-height: 0; overflow: hidden; padding: 0; }

.accordion__body p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0 0 12px; }
.accordion__body ul, .accordion__body ol { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0 0 12px; padding-left: 24px; }
.accordion__body li { margin-bottom: 6px; }
.accordion__body a { font-weight: 600; }
.accordion__body strong { color: var(--ink); }

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}
.payment-item {
  background: var(--white);
  border-radius: 6px;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
}

@media (max-width: 600px) {
  .accordion__item { padding: 18px 0 12px; }
  .payment-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* --------------------------------------------------------------- 404 */

.error-404 { text-align: center; }
.error-404__code {
  color: var(--brand);
  font-size: clamp(64px, 12vw, 96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 4px;
}
.error-404 .section__subtitle { margin-bottom: 32px; }

/* ----------------------------------------------------------- footer */

.site-footer {
  background: var(--brand);
  color: var(--white);
  padding: 28px 0 22px;
  text-align: center;
}
.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  transition: background var(--ease), color var(--ease);
}
.site-footer__social-link svg { width: 20px; height: 20px; }
.site-footer__social-link:hover { background: var(--white); color: var(--brand); }
.site-footer__copy { font-size: 14px; margin-top: 14px; color: var(--white); }
.site-footer__copy a { color: var(--white); }
.site-footer__att {
  height: 40px;
  width: auto;
  margin: 18px auto 0;
  opacity: 0.9;
}
