/* Tipografías servidas desde este mismo dominio (carpeta fonts/).
   Sin peticiones a Google: ningún tercero ve la IP de los visitantes. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/archivo-500-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/archivo-500-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-400-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-400-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink:        #07080C;
  --surface:    #0F131C;
  --surface-2:  #141926;
  --line:       #1F2636;
  --line-soft:  #171D2A;
  --text:       #E9EDF6;
  --muted:      #8C96AD;
  --dim:        #626D85;
  --blue:       #2D6BFF;
  --blue-hi:    #4E86FF;
  --blue-dim:   #12224A;
  --ok:         #3BD6A0;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(18px, 5vw, 56px);
  --maxw: 1080px;

  color-scheme: dark;
  padding-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-hi);
  margin: 0 0 14px;
}

section { padding-block: clamp(56px, 9vw, 104px); }

.rule { border-top: 1px solid var(--line-soft); }

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(7, 8, 12, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  text-decoration: none;
  margin-right: auto;
}

.brand .mark {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
}

.brand .mark svg { display: block; }
.brand b { color: var(--blue-hi); font-weight: 700; }

nav.links {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
  color: var(--muted);
}

nav.links a { text-decoration: none; transition: color .15s ease; }
nav.links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hi); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--blue); }

.btn-sm { padding: 9px 16px; font-size: 14px; }

.menu-toggle { display: none; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(56px, 10vw, 112px) clamp(48px, 8vw, 88px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 64px);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-hi);
}

.lead {
  font-size: clamp(16.5px, 2vw, 18.5px);
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 14px;
  color: var(--dim);
  font-family: var(--mono);
}

.assurances span { display: inline-flex; align-items: center; gap: 8px; }
.assurances svg { flex: none; }

/* device illustration */

.device {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 18;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(120% 70% at 50% 0%, #17203A 0%, var(--surface) 55%, #0B0E16 100%);
  padding: 12px;
  box-shadow: 0 40px 80px -40px rgba(45, 107, 255, .45);
}

.device::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 5px;
  border-radius: 99px;
  background: #0A0D14;
}

.screen {
  height: 100%;
  border-radius: 21px;
  border: 1px solid var(--line-soft);
  background: #080B12;
  padding: 30px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diag-title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0;
}

.diag-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
}

.diag-row b { color: var(--text); font-weight: 500; }
.diag-row .ok { color: var(--ok); }
.diag-row .bad { color: var(--blue-hi); }

.diag-foot {
  margin-top: auto;
  border-radius: 10px;
  background: var(--blue-dim);
  border: 1px solid #23386E;
  padding: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #BFD2FF;
  line-height: 1.5;
}

.diag-foot strong { color: #fff; display: block; font-weight: 500; }

/* ---------- servicios ---------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: 44px;
}

.section-head h2 { font-size: clamp(28px, 4.2vw, 40px); }
.section-head p { color: var(--muted); margin: 10px 0 0; max-width: 46ch; }

.promise {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  background: linear-gradient(90deg, var(--blue-dim), var(--surface) 65%);
}

.promise svg { flex: none; }
.promise p { margin: 0; }

.promise b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.promise span {
  display: block;
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 2px;
}

.tariff { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 28px;
  align-items: center;
  padding-block: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.row h3 { font-family: var(--body); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.row p { margin: 4px 0 0; font-size: 14.5px; color: var(--dim); }

.row .ask {
  white-space: nowrap;
  justify-self: end;
}

.tariff-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--dim);
}

/* ---------- marcas ---------- */

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
}

.brands li {
  list-style: none;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 15px;
}

/* ---------- proceso ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}

.step {
  background: var(--surface);
  padding: 28px 24px 30px;
}

.step .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue-hi);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}

.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- garantía ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 34px 40px;
}

.why h3 {
  font-size: 17px;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--blue);
}

.why p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- contacto ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact h2 { font-size: clamp(28px, 4.2vw, 40px); margin-bottom: 14px; }
.contact .lead { margin-bottom: 26px; }

.details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 26px 26px 28px;
}

.details dl {
  margin: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px 18px;
  font-size: 15px;
}

.details dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 3px;
}

.details dd { margin: 0; }
.details dd a { color: var(--blue-hi); text-decoration: none; }
.details dd a:hover { text-decoration: underline; }
.details dd .sub { display: block; color: var(--dim); font-size: 13.5px; }

.hours { font-variant-numeric: tabular-nums; }

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

footer.site {
  border-top: 1px solid var(--line-soft);
  padding-block: 34px calc(34px + env(safe-area-inset-bottom, 0px));
  color: var(--dim);
  font-size: 13.5px;
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

/* ---------- botón flotante WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  border-radius: 99px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 14px 34px -10px rgba(45, 107, 255, .75), 0 0 0 1px rgba(255,255,255,.08) inset;
  transition: background .15s ease, transform .15s ease;
}

.wa-float:hover { background: var(--blue-hi); transform: translateY(-2px); }
.wa-float svg { flex: none; }

:where(a, button):focus-visible {
  outline: 2px solid var(--blue-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .device { max-width: 240px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  nav.links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 6px var(--gutter) 16px;
  }
  nav.links.open { display: flex; }
  nav.links a { padding-block: 12px; border-bottom: 1px solid var(--line-soft); }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }

  .bar .btn-header { display: none; }

  .promise { align-items: flex-start; gap: 13px; padding: 15px 17px; }

  .wa-float { padding: 13px 17px; font-size: 14.5px; }
}

@media (max-width: 380px) {
  .wa-float span { display: none; }
  .wa-float { padding: 15px; }
}

.brands-label { margin-top: 42px; }

/* ---------- páginas legales ---------- */

.legal {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(48px, 7vw, 88px) clamp(64px, 9vw, 112px);
}

.legal h1 {
  font-size: clamp(34px, 5.5vw, 52px);
  margin-bottom: 14px;
}

.legal .updated {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 44px;
}

.legal h2 {
  font-size: 23px;
  margin: 48px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.legal h2:first-of-type { border-top: 0; padding-top: 0; }

.legal p,
.legal li {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.72;
}

.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 9px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--blue-hi); }

.legal dl.ident {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px 20px;
  margin: 0 0 22px;
  font-size: 16px;
}

.legal dl.ident dt {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 4px;
}

.legal dl.ident dd { margin: 0; color: var(--text); }

.todo {
  background: rgba(255, 176, 46, 0.14);
  border: 1px dashed rgba(255, 176, 46, 0.6);
  border-radius: 5px;
  color: #FFC46B;
  padding: 1px 8px;
  font-family: var(--mono);
  font-size: 13.5px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 46px;
  font-size: 15px;
  color: var(--blue-hi);
  text-decoration: none;
}

.legal-back:hover { text-decoration: underline; }

@media (max-width: 620px) {
  .legal dl.ident { grid-template-columns: minmax(0, 1fr); gap: 4px 0; }
  .legal dl.ident dd { margin-bottom: 12px; }
}

/* ---------- redes sociales ---------- */

.social-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.social-inline a { color: var(--blue-hi); text-decoration: none; }
.social-inline a:hover { text-decoration: underline; }
.social-inline .sub { flex-basis: 100%; }

.social {
  display: flex;
  gap: 10px;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.social a:hover {
  color: var(--text);
  border-color: var(--blue);
  background: rgba(45, 107, 255, 0.09);
}

.social svg { flex: none; }

@media (max-width: 560px) {
  .social a span { display: none; }
  .social a { padding: 11px; }
}

/* el botón flotante de WhatsApp no debe tapar las redes del pie */
@media (max-width: 560px) {
  footer.site { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
}

/* fila de servicio en pantallas estrechas: el botón baja bajo el texto */
@media (max-width: 620px) {
  .row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 15px;
  }
  .row .ask { justify-self: start; }
}

/* ---------- agrupación de la lista de servicios ---------- */

.tariff-group {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-hi);
  margin: 0;
  padding-block: 22px 13px;
  border-bottom: 1px solid var(--line-soft);
}

.tariff-group[data-second] { padding-top: 56px; }
