/* Rumbo · sitio informativo. Diseño: Pencil `rumbo.pen`, frames «11 Web – inicio (escritorio/móvil)» y «11 Web – legal». */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #fff8f7;
  --ink: #221a19;
  --muted: #5e4e4b;
  --red: #c8102e;
  --night: #1e1514;
  --night-card: #3a2725;
  --night-text: #d9c7c4;
  --soft: #fceae6;
  --line: #ebd9d5;
  --troncal: #d32f2f;
  --zonal: #1565c0;
  --alimentador: #2e7d32;
  --dual: #ef6c00;
  --cable: #00838f;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --gutter: max(20px, min(6.5vw, 96px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Navegación */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.5rem/1 var(--font-display); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 700; text-decoration: none; }
.nav-links a.btn-dark { color: #fff; }
@media (max-width: 760px) { .nav-links a:not(.btn-dark) { display: none; } .nav { padding-block: 16px; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 56px; }
.hero-text { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--red); font-weight: 700; font-size: 0.875rem; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero h1 { font-size: clamp(2.875rem, 5.4vw, 4.75rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 32.5rem; }
.source { font-size: 0.875rem; color: var(--muted); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.75rem; color: #e8d9d6; }
.store b { display: block; font: 700 1.1875rem/1.15 var(--font-display); }
.store[aria-disabled="true"] { cursor: default; }

.phones { position: relative; height: 644px; min-width: 0; }
.phone {
  border: 9px solid var(--night);
  border-radius: 42px;
  overflow: hidden;
  background: var(--night);
  box-shadow: 0 24px 60px rgba(42, 10, 10, 0.25);
  aspect-ratio: 9 / 20;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phones .phone { position: absolute; }
.phones .phone-back { width: 270px; left: 4%; top: 60px; box-shadow: 0 20px 50px rgba(42, 10, 10, 0.2); }
.phones .phone-front { width: 290px; left: calc(4% + 210px); top: 0; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 24px; }
  .phones { height: auto; display: flex; justify-content: center; }
  .phones .phone { position: static; }
  .phones .phone-back { display: none; }
  .phones .phone-front { width: min(260px, 70vw); }
  .stores { flex-direction: column; }
  .store { justify-content: center; }
}

/* Cinta de rutas */
.ribbon { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 72px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 7px; color: #fff; font: 700 1.0625rem/1.2 var(--font-display); }
.chip.troncal { background: var(--troncal); }
.chip.zonal { background: var(--zonal); }
.chip.alimentador { background: var(--alimentador); }
.chip.dual { background: var(--dual); }
.chip.cable { background: var(--cable); }
.ribbon-note { padding-top: 16px; font-size: 0.875rem; color: var(--muted); }

/* Funciones */
.features { display: flex; flex-direction: column; gap: 120px; padding-block: 110px; }
.feature { display: grid; grid-template-columns: 300px minmax(0, 520px); gap: 96px; align-items: center; justify-content: center; }
.feature.flip { grid-template-columns: minmax(0, 520px) 300px; }
.feature.flip .phone { order: 2; }
.feature-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.eyebrow { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--red); }
.feature h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.015em; }
.feature p { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.55; color: var(--muted); }
@media (max-width: 860px) {
  .features { gap: 72px; padding-block: 64px; }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature .phone, .feature.flip .phone { order: 2; width: min(240px, 66vw); justify-self: center; }
}

/* Y además */
.extras { display: flex; flex-direction: column; gap: 12px; padding-block: 20px 110px; }
.extras h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--red); display: grid; place-items: center; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.card p { font-size: 1rem; line-height: 1.55; color: var(--muted); }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .extras { padding-block: 8px 64px; } .cards { grid-template-columns: minmax(0, 1fr); } }

/* Promesa */
.promise { background: var(--night); color: #fff8f7; }
.promise .wrap { padding-block: 100px; display: flex; flex-direction: column; gap: 56px; }
.promise h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.015em; max-width: 820px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.pillar { display: flex; flex-direction: column; gap: 12px; }
.pillar-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--night-card); display: grid; place-items: center; }
.pillar-icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.5rem; font-weight: 700; }
.pillar p { color: var(--night-text); line-height: 1.55; }
@media (max-width: 860px) { .promise .wrap { padding-block: 56px; gap: 32px; } .pillars { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Descarga */
.download { background: var(--red); color: #fff; }
.download .wrap { padding-block: 96px; display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.download-text { display: flex; flex-direction: column; gap: 12px; max-width: 640px; min-width: 0; }
.download h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; line-height: 1.05; }
.download p { color: #ffe3e0; font-size: 1.1875rem; line-height: 1.5; }
@media (max-width: 860px) { .download .wrap { padding-block: 56px; } .download .stores { width: 100%; } }

/* Pie */
.footer .wrap { padding-block: 48px; display: flex; flex-direction: column; gap: 24px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer hr { border: 0; height: 1px; background: var(--line); margin: 0; width: 100%; }
.fine { font-size: 0.875rem; color: var(--muted); line-height: 1.5; max-width: 72ch; }

/* Páginas legales */
.legal-head { padding-block: 56px 40px; display: flex; flex-direction: column; gap: 10px; }
.legal-head h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
.legal-head .meta { color: var(--muted); }
.legal-body { display: grid; grid-template-columns: 260px minmax(0, 700px); gap: 72px; padding-bottom: 96px; }
.toc { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
.toc span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--red); }
.legal-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.legal-text h2 { font-size: 1.875rem; font-weight: 800; padding-top: 20px; scroll-margin-top: 24px; }
.legal-text h3 { font-size: 1.25rem; font-weight: 700; }
.legal-text p, .legal-text li { font-size: 1.125rem; line-height: 1.65; color: var(--muted); }
.legal-text ul { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 8px; }
.legal-text strong { color: var(--ink); }
.legal-text a { color: var(--red); }
.summary { background: var(--soft); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.summary h2 { font-size: 1.25rem; padding-top: 0; }
.summary li { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.legal-text table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.legal-text th, .legal-text td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal-text th { color: var(--ink); font-weight: 700; }
.legal-text tr:last-child td { border-bottom: 0; }
@media (max-width: 860px) {
  .legal-body { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 56px; }
  .toc { position: static; padding-top: 0; }
  .legal-head { padding-block: 24px 16px; }
}
