/* =========================================================
   SAFIRA — Hoja de estilos
   1. Tipografías   2. Variables   3. Base        4. Cabecera
   5. Botones       6. Portada     7. Secciones   8. Formularios
   9. Empleo        10. Legal      11. App (maquetas)
   12. Gracias / 404               13. Pie        14. Responsive
   ========================================================= */

/* 1. Tipografías (servidas desde el propio sitio) ------------ */
@font-face { font-family: 'Safira Display'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/display-700.woff2') format('woff2'); }
@font-face { font-family: 'Safira Display'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/display-800.woff2') format('woff2'); }
@font-face { font-family: 'Safira Text';    font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/text-400.woff2') format('woff2'); }
@font-face { font-family: 'Safira Text';    font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/text-500.woff2') format('woff2'); }
@font-face { font-family: 'Safira Text';    font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/text-600.woff2') format('woff2'); }
@font-face { font-family: 'Safira Mono';    font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/mono-500.woff2') format('woff2'); }
@font-face { font-family: 'Safira Mono';    font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/mono-600.woff2') format('woff2'); }

/* 2. Variables ---------------------------------------------- */
:root {
  --paper:      #FFFFFF;
  --surface:    #F2F6FC;
  --surface-2:  #E6EEFA;
  --ink:        #0A1A33;
  --ink-2:      #1A2C4A;
  --muted:      #55677F;
  --line:       rgba(10, 26, 51, .13);
  --line-soft:  rgba(10, 26, 51, .07);

  --brand:      #1052B8;
  --brand-ink:  #0B3F94;
  --brand-soft: #EAF2FF;
  --sky:        #2675D4;
  --accent:     #1497B8;
  --ok:         #157F59;
  --warn:       #8A5A00;
  --danger:     #C23B30;
  --on-brand:   #FFFFFF;

  --hero-ink:   #FFFFFF;
  --hero-muted: rgba(255, 255, 255, .78);
  --hero-line:  rgba(255, 255, 255, .22);

  --display: 'Safira Display', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Safira Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:    'Safira Mono', ui-monospace, Menlo, Consolas, monospace;

  --gutter: 24px;
  --maxw: 1180px;
  --header-h: 72px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(10,26,51,.05), 0 12px 32px -12px rgba(10,26,51,.18);
  --shadow-lift: 0 2px 4px rgba(10,26,51,.06), 0 24px 48px -16px rgba(10,26,51,.26);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #0A1524;
    --surface:    #0F1E33;
    --surface-2:  #16294A;
    --ink:        #E9F0FA;
    --ink-2:      #C7D6EA;
    --muted:      #93A6C0;
    --line:       rgba(255, 255, 255, .14);
    --line-soft:  rgba(255, 255, 255, .07);
    --brand:      #5A8CFF;
    --brand-ink:  #8DAEFF;
    --brand-soft: rgba(90, 140, 255, .12);
    --accent:     #46D3F0;
    --ok:         #3FC894;
    --warn:       #E0B44A;
    --danger:     #FF7A6E;
    --on-brand:   #06142B;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.45), 0 24px 48px -16px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --paper:      #0A1524;
  --surface:    #0F1E33;
  --surface-2:  #16294A;
  --ink:        #E9F0FA;
  --ink-2:      #C7D6EA;
  --muted:      #93A6C0;
  --line:       rgba(255, 255, 255, .14);
  --line-soft:  rgba(255, 255, 255, .07);
  --brand:      #5A8CFF;
  --brand-ink:  #8DAEFF;
  --brand-soft: rgba(90, 140, 255, .12);
  --accent:     #46D3F0;
  --ok:         #3FC894;
  --warn:       #E0B44A;
  --danger:     #FF7A6E;
  --on-brand:   #06142B;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.45), 0 24px 48px -16px rgba(0,0,0,.7);
}

/* 3. Base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.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; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 18px; border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600; transition: top .2s;
}
.skip:focus { top: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 700;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; flex: none; }
.lede { color: var(--muted); font-size: 1.0625rem; max-width: 62ch; }

/* Marca */
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand__mark { width: 40px; height: 40px; flex: none; border-radius: 10px; }
.brand__type { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: .07em; color: var(--ink); white-space: nowrap; }
.brand__sub { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 5px; white-space: nowrap; }
.brand--invert .brand__name { color: #fff; }
.brand--invert .brand__sub { color: rgba(255,255,255,.6); }

/* 4. Cabecera ----------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .header { background: var(--paper); } }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.nav__list { display: flex; gap: 24px; }
.nav__link {
  position: relative; display: inline-block; padding: 6px 0;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: color .18s;
}
.nav__link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--brand); transition: width .22s ease; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--brand); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }

.header__tools { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang__btn {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em;
  padding: 5px 11px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  cursor: pointer; transition: background .18s, color .18s;
}
.lang__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang__btn:hover:not([aria-pressed="true"]) { color: var(--ink); }

.burger {
  display: none; width: 44px; height: 44px; padding: 0; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer;
}
.burger span { display: block; width: 18px; height: 1.5px; margin: 3.5px auto; background: var(--ink); transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 5. Botones ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 13px 24px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-family: var(--body); font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center;
  cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -12px rgba(16,82,184,.7); }
.btn--primary:hover { background: var(--brand-ink); transform: translateY(-1px); }
.btn--light { background: #fff; color: #0B3F94; }
.btn--light:hover { background: #EAF2FF; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--hero-ink); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--quiet { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { border-color: var(--brand); color: var(--brand); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* 6. Portada (hero) ---------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 80% at 85% 10%, rgba(120,180,255,.30), transparent 60%),
    linear-gradient(130deg, #0B265B 0%, #1052B8 64%, #2675D4 100%);
  color: var(--hero-ink);
  padding-block: 80px 88px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.10);
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: #fff;
}
.hero__badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #9FE3FF; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(159,227,255,.7); }
  70%  { box-shadow: 0 0 0 9px rgba(159,227,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(159,227,255,0); }
}
.hero__title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.032em; line-height: 1.04; color: #fff; margin-bottom: 22px; }
.hero__title em { font-style: normal; color: #BFE0FF; }
.hero__text { font-size: 1.0625rem; color: var(--hero-muted); max-width: 54ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero__foot {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding-top: 24px;
  border-top: 1px solid var(--hero-line);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.72);
}
.hero__visual { display: flex; justify-content: center; }
.hero--page { padding-block: 72px 76px; }
.hero--page .hero__title { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }

/* 7. Secciones ---------------------------------------------- */
.metrics { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 30px 22px; text-align: center; border-left: 1px solid var(--line-soft); }
.metric:first-child { border-left: 0; }
.metric strong { display: block; font-family: var(--display); font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.metrics__note { padding: 0 var(--gutter) 26px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.section { padding-block: 92px; }
.section--tinted { background: var(--surface); }
.section--bordered { border-top: 1px solid var(--line-soft); }
.section__head { max-width: 700px; margin-bottom: 48px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .lede { margin-inline: auto; }
.section__title { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-block: 16px 14px; }
.section__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  padding: 30px 28px; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  background: var(--paper); box-shadow: 0 9px 30px -18px rgba(11,53,113,.25);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 45%, transparent); transform: translateY(-2px); }
.card__icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }
.card ul { margin-top: 14px; display: grid; gap: 8px; }
.card li { position: relative; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.card li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }

.band {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(130deg, #0B265B 0%, #1052B8 75%, #2675D4 100%);
  padding-block: 70px;
}
.band h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 12px; }
.band p { color: rgba(255,255,255,.8); max-width: 56ch; margin: 0 auto 28px; }
.band .hero__actions { justify-content: center; }

/* Pasos numerados */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 30px; border-top: 2px solid var(--line); }
.step:first-child { border-top-color: var(--brand); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -1px; left: 0; transform: translateY(-50%);
  padding-right: 12px; background: var(--surface);
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; color: var(--brand);
}
.section:not(.section--tinted) .step::before { background: var(--paper); }
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--muted); }
.step__tag { display: block; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* Lista con marca */
.checks { display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.checks svg { width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.twocol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.twocol h3 { font-size: 1.15rem; margin-bottom: 16px; }

/* 8. Formularios ------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.info__list { display: grid; gap: 2px; margin-top: 30px; }
.info__item { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding-block: 16px; border-top: 1px solid var(--line-soft); }
.info__item:last-child { border-bottom: 1px solid var(--line-soft); }
.info__item svg { width: 19px; height: 19px; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info__item dt { margin-bottom: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.info__item dd { font-size: .9375rem; color: var(--ink); line-height: 1.5; }

.form { padding: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field > label, .field__label {
  display: block; margin-bottom: 7px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; color: var(--muted);
}
.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.field textarea,
.field select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background-color: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .18s, box-shadow .18s;
}
.field select {
  padding-right: 40px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355677F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.field textarea { min-height: 124px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea, .field[data-invalid="true"] select { border-color: var(--danger); }
.field__error { display: none; margin-top: 6px; font-size: 12.5px; color: var(--danger); }
.field[data-invalid="true"] .field__error { display: block; }
.field__opt { font-family: var(--body); text-transform: none; letter-spacing: 0; color: color-mix(in srgb, var(--muted) 75%, transparent); }

.seg { display: flex; gap: 10px; }
.seg label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 15px; color: var(--ink); cursor: pointer; transition: border-color .18s, background .18s;
}
.seg input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.seg label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.field[data-invalid="true"] .seg label { border-color: var(--danger); }

.drop {
  position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center;
  padding: 18px; border: 1.5px dashed var(--line); border-radius: var(--r-md); background: var(--surface);
  cursor: pointer; transition: border-color .18s;
}
.drop:hover { border-color: var(--brand); }
.drop.has-file { border-style: solid; border-color: var(--ok); }
.drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.drop__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--paper); color: var(--brand); }
.drop__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop__name { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; word-break: break-word; }
.drop__hint { display: block; margin-top: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); }
.field[data-invalid="true"] .drop { border-color: var(--danger); }

.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { accent-color: var(--brand); width: 18px; height: 18px; margin-top: 2px; }
.check a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.form .btn[type="submit"] { width: 100%; }
.form__note { margin-top: 16px; text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form__ok, .form__err { display: none; margin-bottom: 22px; padding: 15px 17px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink); }
.form__ok { grid-template-columns: 20px 1fr; gap: 12px; align-items: flex-start; border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 9%, transparent); }
.form__ok svg { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.form__ok.is-visible { display: grid; }
.form__err { border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.form__err.is-visible { display: block; }
.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* 9. Empleo ------------------------------------------------- */
.cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.city { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 15px 18px; background: var(--paper); }
.city strong { font-family: var(--display); font-size: .97rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.city span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--accent); }

.social { display: grid; grid-template-columns: 148px 1fr; gap: 10px; }
.social__hint { margin-top: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--accent); word-break: break-all; }
.social__hint[hidden] { display: none; }

.ac { position: relative; }
.ac__list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  max-height: 268px; overflow-y: auto; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lift);
}
.ac__list[hidden] { display: none; }
.ac__item { padding: 11px 12px; border-radius: var(--r-sm); font-size: 15px; color: var(--ink); cursor: pointer; }
.ac__item.is-on { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand-ink); }

.cond { border-left: 2px solid var(--brand); padding-left: 16px; margin-left: 2px; }
.cond[hidden] { display: none; }
.cond__link { margin-top: 12px; }
.cond__link a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13.5px; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.cond__link svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 10. Legal ------------------------------------------------- */
.legal .section__head { max-width: 760px; margin-bottom: 40px; }
.legal__date { margin-top: 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: 1.15rem; margin: 38px 0 12px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__body p { color: var(--muted); margin-bottom: 14px; }
.legal__body ul { display: grid; gap: 10px; margin-bottom: 16px; list-style: none; }
.legal__body li { position: relative; padding-left: 20px; color: var(--muted); }
.legal__body li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.legal__box { margin: 6px 0 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink-2); font-style: normal; line-height: 1.7; }

/* 11. App (maquetas de pantalla) --------------------------- */
/* La app es clara siempre: estos colores no siguen el modo oscuro. */
.phone {
  --app-blue: #1052B8; --app-bg: #F3F7FE; --app-ink: #0D1B33; --app-muted: #5B6B85; --app-line: #DCE5F2;
  --app-amber-bg: #FDF1D6; --app-amber: #8A5A00; --app-green-bg: #E3F4EA; --app-green: #146C3F;
  --app-red-bg: #FBE3E1; --app-red: #A8261C; --app-grey-bg: #DFE6F2; --app-grey: #4E5D78;
  position: relative; flex: none; width: 272px; height: 560px;
  padding: 10px; border-radius: 42px;
  background: linear-gradient(160deg, #1B2638, #070C16);
  box-shadow: 0 40px 70px -30px rgba(3,16,40,.75), inset 0 0 0 1.5px rgba(255,255,255,.12);
  font-family: var(--body); text-align: left; line-height: 1.35;
}
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; z-index: 3; width: 74px; height: 20px; transform: translateX(-50%); border-radius: 12px; background: #05080F; }
.phone__screen { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; border-radius: 33px; background: var(--app-bg); color: var(--app-ink); }
.app__bar { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 44px 16px 12px; background: var(--app-blue); color: #fff; font-weight: 600; font-size: 17px; }
.app__bar svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; }
.app__body { flex: 1; padding: 12px 12px 8px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.app__tabs { display: grid; grid-template-columns: repeat(4, 1fr); flex: none; padding: 8px 4px 14px; border-top: 1px solid var(--app-line); background: #fff; }
.app__tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; color: var(--app-muted); }
.app__tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app__tab.is-on { color: var(--app-blue); }
.app__card { padding: 12px; border: 1px solid var(--app-line); border-radius: 14px; background: #fff; }
.app__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app__h { font-size: 13px; font-weight: 600; color: var(--app-ink); }
.app__sec { margin: 2px 2px -2px; font-size: 13px; font-weight: 600; }
.app__t { font-size: 11px; color: var(--app-muted); }
.app__big { font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--app-ink); }
.app__mask { display: inline-block; letter-spacing: .12em; color: #AEBBD0; }
.app__chip { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.chip--amber { background: var(--app-amber-bg); color: var(--app-amber); }
.chip--green { background: var(--app-green-bg); color: var(--app-green); }
.chip--red { background: var(--app-red-bg); color: var(--app-red); }
.chip--grey { background: var(--app-grey-bg); color: var(--app-grey); }
.app__progress { height: 6px; margin: 8px 0 6px; border-radius: 6px; background: #E2E9F4; overflow: hidden; }
.app__progress span { display: block; height: 100%; border-radius: 6px; background: var(--app-blue); }
.app__btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 8px 10px; border-radius: 10px; background: var(--app-blue); color: #fff; font-size: 11.5px; font-weight: 600; }
.app__btn--line { background: #fff; color: var(--app-blue); border: 1.5px solid var(--app-blue); }
.app__btn--off { background: #89A8DA; }
.app__btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.app__stack { display: grid; gap: 7px; }
.app__back { font-size: 11px; color: var(--app-muted); text-decoration: underline; }
.app__field { display: grid; gap: 4px; }
.app__input { height: 34px; border: 1px solid var(--app-line); border-radius: 10px; background: #fff; padding: 8px 10px; font-size: 11.5px; color: var(--app-ink); }
.app__logo { width: 64px; height: 64px; margin: 34px auto 8px; border-radius: 16px; }
.app__brand { text-align: center; font-size: 26px; font-weight: 700; color: var(--app-blue); margin-bottom: 18px; }
.app__login { padding: 0 18px; display: grid; gap: 10px; }
.app__link { text-align: center; font-size: 11px; color: var(--app-blue); text-decoration: underline; }
.app__chart { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin-top: 10px; padding: 0 2px; border-bottom: 1px solid var(--app-line); }
.app__chart span { flex: 1; border-radius: 3px 3px 0 0; background: #8FB4F5; }
.app__chart span:last-child { background: var(--app-blue); }
.app__note { padding: 10px 12px; border: 1px solid var(--app-line); border-radius: 12px; background: #FBFCFF; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; justify-items: center; }
.gallery figure { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gallery figcaption { max-width: 260px; text-align: center; }
.gallery figcaption strong { display: block; font-family: var(--display); font-size: 1rem; color: var(--ink); }
.gallery figcaption span { font-size: .9rem; color: var(--muted); }
.gallery__note { margin-top: 30px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.trio { display: flex; justify-content: center; gap: 28px; }

/* 12. Gracias / 404 ---------------------------------------- */
.thanks { padding: 72px 0 88px; }
.thanks__card { max-width: 620px; margin: 0 auto; padding: 40px 32px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.thanks__seal { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.thanks__seal svg { width: 32px; height: 32px; }
.thanks h1 { font-size: clamp(24px, 4.5vw, 32px); margin-bottom: 12px; }
.thanks__lede { margin-bottom: 24px; color: var(--muted); }
.thanks__code { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 28px; padding: 14px 24px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.thanks__code b { font-family: var(--mono); font-size: 20px; color: var(--ink); letter-spacing: .02em; }
.thanks__code span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.thanks__wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 420px; min-height: 56px; padding: 16px 24px;
  border-radius: var(--r-md); background: #25D366; color: #052D17; font-weight: 700; font-size: 17px;
  box-shadow: 0 10px 26px -12px rgba(37,211,102,.9); transition: transform .12s;
}
.thanks__wa:hover { transform: translateY(-1px); }
.thanks__wa svg { width: 24px; height: 24px; flex: none; }
.thanks__hint { margin-top: 14px; font-size: 13px; color: var(--muted); }
.thanks__next { margin-top: 36px; padding-top: 28px; text-align: left; border-top: 1px solid var(--line-soft); }
.thanks__next h2 { margin-bottom: 16px; font-family: var(--body); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.thanks__next ol { padding-left: 22px; color: var(--ink-2); }
.thanks__next li { margin-bottom: 10px; font-size: 15px; }
.thanks__back { margin-top: 28px; }
.thanks__back a { color: var(--brand); font-size: 15px; }
.thanks__back a:hover { text-decoration: underline; }

.lost { min-height: 100svh; display: grid; place-content: center; gap: 6px; padding-block: 60px; text-align: center; }
.lost .brand { justify-content: center; margin-bottom: 34px; }
.lost__code { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; color: var(--accent); text-transform: uppercase; }
.lost h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-block: 14px 12px; }
.lost p { max-width: 44ch; margin: 0 auto 28px; color: var(--muted); }
.lost__en { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }

/* 13. Pie --------------------------------------------------- */
.footer { padding-block: 58px 26px; background: #071730; color: rgba(255,255,255,.7); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 48px; padding-bottom: 38px; }
.footer__about { max-width: 42ch; margin-top: 18px; line-height: 1.65; color: rgba(255,255,255,.62); }
.footer h2 { margin-bottom: 16px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.footer ul { display: grid; gap: 10px; }
.footer a { transition: color .18s; }
.footer a:hover { color: #9FD4FF; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: rgba(255,255,255,.45); }

/* Aparición suave: el contenido nunca se oculta */
.rise { transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.js .rise:not(.is-in) { transform: translateY(12px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rise:not(.is-in) { transform: none; }
}

/* 14. Responsive ------------------------------------------- */
@media (max-width: 1180px) and (min-width: 861px) {
  .nav__list { gap: 16px; }
  .nav__link { font-size: 13.5px; }
}
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .split, .contact, .twocol { grid-template-columns: 1fr; gap: 42px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 22px; }
  .cities { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 960px) and (min-width: 861px) {
  .brand__sub { display: none; }
}
@media (max-width: 860px) {
  .burger { display: grid; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    padding: 8px var(--gutter) 18px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: flex; align-items: center; min-height: 48px; padding: 0; border-bottom: 1px solid var(--line-soft); }
  .nav__link::after { display: none; }
  .trio { flex-direction: column; align-items: center; gap: 36px; }
}
@media (max-width: 760px) {
  .hero { padding-block: 56px 64px; }
  .hero--page { padding-block: 52px 56px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .metrics__grid { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .section { padding-block: 64px; }
  .section__head { margin-bottom: 36px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .cities { grid-template-columns: repeat(2, 1fr); }
  .city { padding: 13px 14px; }
  .city strong { font-size: .9rem; }
  .gallery { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .social { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer ul { gap: 2px; }
  .footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
  .lang__btn { padding: 11px 13px; }
}
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .header__bar { gap: 8px; }
  .brand { gap: 9px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 16px; }
  .brand__sub { display: none; }
  .header__tools { gap: 8px; }
  .lang { padding: 2px; }
  .lang__btn { padding: 12px 9px; font-size: 11px; }
  .cities { grid-template-columns: 1fr; }
  .phone { width: 256px; height: 528px; }
  .thanks__card { padding: 32px 20px; }
}

/* Ajustes de componentes */
.about__p2 { margin-top: 16px; }
.plat__list { margin-top: 26px; }
.card h2, .card__title { font-size: 1.15rem; margin-bottom: 10px; }
.footer__list li { color: rgba(255,255,255,.62); }
.app__ink { color: var(--app-ink); }
.app__small { font-size: 12px; line-height: 1.35; }
.w-66 { width: 66%; }
.w-100 { width: 100%; }
.h-60 { height: 60%; } .h-70 { height: 70%; } .h-80 { height: 80%; } .h-90 { height: 90%; } .h-100 { height: 100%; }

/* Zonas táctiles cómodas (mínimo 40-44 px) */
.header .brand { min-height: 44px; }
.lang__btn { min-width: 40px; min-height: 40px; }
.thanks__back a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; }
.app__mask, .app__chip { white-space: nowrap; flex-shrink: 0; }
.app__row > :first-child { min-width: 0; }
.lost .brand { min-height: 44px; }
