/* =========================================================================
   Sitio institucional — servicios de internet / fibra optica (Tacna, Peru)
   Hoja de estilos unica. Mobile-first. Sin dependencias externas.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --ink:        #0b1d2e;
  --ink-soft:   #143349;
  --fg:         #0b1d2e;
  --muted:      #56697a;
  --bg:         #ffffff;
  --bg-soft:    #f4f8fa;
  --bg-deep:    #08192a;
  --line:       #e0e8ee;
  --line-soft:  #eef3f6;

  --brand:      #0e7c86;
  --brand-600:  #0a616a;
  --brand-700:  #084c53;
  --brand-50:   #e6f3f4;
  --brand-glow: #35c9d4;

  --warn-bg:    #fff7e6;
  --warn-line:  #e9a13b;
  --warn-fg:    #8a5a10;

  --radius:     14px;
  --radius-sm:  10px;
  --shadow-sm:  0 1px 2px rgba(11, 29, 46, .06);
  --shadow:     0 4px 16px rgba(11, 29, 46, .08);
  --shadow-lg:  0 18px 48px rgba(11, 29, 46, .14);

  --container:  1120px;
  --gutter:     20px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4.2vw, 2.15rem); }
h3 { font-size: clamp(1.08rem, 2.4vw, 1.28rem); }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .45rem; }

:focus-visible {
  outline: 3px solid var(--brand-glow);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 8vw, 88px); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(36px, 6vw, 60px); }

.section__head { max-width: 640px; margin-bottom: 34px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.03rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: .6rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 4. Marcador de dato pendiente -----------------------------
   Todo dato empresarial aun no confirmado se muestra con este estilo,
   deliberadamente visible, para que nunca se confunda con informacion real.
   -------------------------------------------------------------------- */
.pending {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .78em;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.4;
  color: var(--warn-fg);
  background: var(--warn-bg);
  border: 1px dashed var(--warn-line);
  border-radius: 6px;
  padding: .12em .5em;
  white-space: normal;
}
.pending::before { content: "\26A0\FE0E\00a0"; }

.site-header .pending,
.hero .pending,
.site-footer .pending { font-size: .72em; }

.hero .pending,
.site-footer .pending {
  color: #ffe6b8;
  background: rgba(233, 161, 59, .14);
  border-color: rgba(233, 161, 59, .55);
}

.notice {
  border: 1px dashed var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn-fg);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: .93rem;
}
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: #6d4708; }

/* ---------- 5. Botones ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font: inherit;
  font-weight: 650;
  font-size: .97rem;
  line-height: 1;
  padding: 14px 22px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--brand-600); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--bg-soft); border-color: #cfdae2; }

.btn--light {
  --btn-bg: #ffffff;
  --btn-fg: var(--ink);
}
.btn--light:hover { background: #eaf2f4; }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #ffffff;
  border-color: rgba(255, 255, 255, .38);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 16px; min-height: 42px; font-size: .9rem; }

/* Boton cuyo dato de destino aun no existe: no navega a ningun sitio falso. */
.btn--pending,
.btn--pending:hover {
  background: var(--warn-bg);
  color: var(--warn-fg);
  border: 1px dashed var(--warn-line);
  cursor: not-allowed;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  flex: 0 1 auto;
  min-width: 0;
}
.brand__mark { flex: none; width: 34px; height: 34px; }
.brand__name { overflow-wrap: anywhere; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle__bar { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor;
}
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 10px var(--gutter) 22px;
}
.site-nav.is-open { display: block; }

.site-nav__list { list-style: none; margin: 0 0 14px; padding: 0; }
.site-nav__list li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.site-nav__list a {
  display: block;
  padding: 14px 2px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 550;
}
.site-nav__list a:hover { color: var(--brand-600); }
.site-nav__list a[aria-current="page"] { color: var(--brand-600); font-weight: 700; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-deep);
  background-image:
    radial-gradient(120% 90% at 88% 6%, rgba(53, 201, 212, .26) 0%, transparent 58%),
    linear-gradient(160deg, #0b2439 0%, #08192a 62%, #061321 100%);
  background-color: var(--bg-deep);
  color: #eaf3f6;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(90% 70% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  gap: 36px;
  padding-block: clamp(52px, 9vw, 92px);
  align-items: center;
}

.hero h1 { color: #fff; margin-bottom: .55rem; }
.hero__lead { font-size: 1.06rem; color: #b9cfda; max-width: 52ch; }
.hero .eyebrow { color: var(--brand-glow); }

.hero__meta {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 10px;
  font-size: .95rem;
  color: #cfe1e9;
}
.hero__meta li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.hero__meta svg { flex: none; margin-top: 3px; color: var(--brand-glow); }

.hero__art { display: none; }

/* ---------- 8. Tarjetas ---------- */
.grid { display: grid; gap: 18px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: .97rem; }

.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-700);
  margin-bottom: 16px;
}

.card--outline { background: transparent; box-shadow: none; }

/* Hueco preparado para planes reales: no muestra ningun precio inventado. */
.card--slot {
  border: 2px dashed var(--warn-line);
  background: var(--warn-bg);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  text-align: center;
}
.card--slot h3 { color: var(--warn-fg); font-size: 1rem; }
.card--slot p { color: var(--warn-fg); font-size: .89rem; }

/* ---------- 9. Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
.steps > li {
  position: relative;
  margin: 0;
  padding: 24px 24px 24px 68px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 24px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}
.steps h3 { margin-bottom: .3rem; font-size: 1.05rem; }
.steps p { margin-bottom: 0; color: var(--muted); font-size: .96rem; }

/* ---------- 10. Bloque de contacto ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list > li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding-block: 16px;
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
}
.contact-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list > li:first-child { padding-top: 0; }
.contact-list__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
}
.contact-list__label {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.contact-list__value { font-size: 1.02rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-list__value a { text-decoration: none; }
.contact-list__value a:hover { text-decoration: underline; }

/* ---------- 11. CTA final ---------- */
.cta-band {
  background: var(--ink);
  background-image: radial-gradient(110% 130% at 12% 0%, rgba(53, 201, 212, .22) 0%, transparent 60%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 48px);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9cfda; max-width: 54ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 22px; }

/* ---------- 12. Paginas de texto legal ---------- */
.legal { padding-block: clamp(40px, 7vw, 72px); }
.legal__body { max-width: 76ch; }
.legal__body h2 { margin-top: 2.2rem; font-size: clamp(1.25rem, 3vw, 1.5rem); }
.legal__body h2:first-of-type { margin-top: 1.4rem; }
.legal__body h3 { margin-top: 1.5rem; font-size: 1.05rem; }
.legal__body p, .legal__body li { color: #33475a; }
.legal__updated { font-size: .9rem; color: var(--muted); }

.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(34px, 6vw, 58px);
}
.page-head p { color: var(--muted); max-width: 62ch; margin-bottom: 0; }

.breadcrumb { font-size: .87rem; color: var(--muted); margin-bottom: .7rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-600); text-decoration: underline; }

/* ---------- 13. Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  color: #a9c2ce;
  padding-block: 48px 26px;
  font-size: .94rem;
}
.site-footer h4 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer a { color: #cfe1e9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }

.footer__grid { display: grid; gap: 32px; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer__about { max-width: 40ch; margin-bottom: 0; color: #90a9b7; }

.footer__disclaimer {
  margin: 34px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .035);
  font-size: .84rem;
  line-height: 1.6;
  color: #8fa8b6;
  max-width: 92ch;
}
.footer__disclaimer [data-site] { color: #cfe1e9; }

.footer__bottom {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: grid;
  gap: 10px;
  font-size: .86rem;
  color: #7f97a5;
}
.footer__bottom p { margin: 0; }

/* ---------- 14. Utilidades ---------- */
.text-muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 30px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 15. Breakpoints ---------- */
@media (min-width: 620px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 900px) {
  :root { --gutter: 28px; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    position: static;
    align-items: center;
    gap: 26px;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .site-nav__list { display: flex; gap: 26px; margin: 0; }
  .site-nav__list li { border: 0; }
  .site-nav__list a { padding: 6px 0; font-size: .96rem; }
  .site-nav .btn { white-space: nowrap; }

  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .hero__art { display: block; }

  .contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
}

@media (min-width: 1040px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

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

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { color: #000; }
}
