@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin-wght-normal.woff2") format("woff2");
}

:root {
  --brand: #016064;
  --brand-700: #014b4e;
  --brand-300: #4fc3c8;
  --deep: #033e41;
  --tint: #e4f1f1;
  --surface: #f5f9f9;
  --ink: #212121;
  --ink-2: #2b2b2b;
  --muted: #4b5563;
  --line: #cfdada;
  --field: #7a8b8b;
  --error: #b3261e;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--brand-300); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 14px rgba(0, 0, 0, .05); }
.bar {
  max-width: 1200px; height: var(--header-h); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a:not(.btn) {
  padding: 10px 16px; border-radius: 999px; text-decoration: none;
  font-size: .9375rem; font-weight: 500; transition: background-color .2s;
}
.menu a:not(.btn):hover { background: var(--tint); }
.menu .btn { margin-left: 8px; min-height: 42px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn:hover { background: var(--tint); }
.menu-btn .ic { width: 26px; height: 26px; }
.menu-btn .ic-close { display: none; }
.site-header.is-open .menu-btn .ic-open { display: none; }
.site-header.is-open .menu-btn .ic-close { display: block; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.6rem; border: 1px solid transparent; border-radius: 999px;
  font-size: .9375rem; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-fill { background: var(--brand); color: #fff; }
.btn-fill:hover { background: var(--brand-700); }
.btn-accent { background: var(--brand-300); color: #06282a; }
.btn-accent:hover { background: #7ad3d7; }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { border-color: var(--brand-300); color: var(--brand-300); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-block { width: 100%; }

/* Portada */
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero-grid {
  max-width: 1200px; margin: 0 auto; padding: 72px 32px 88px;
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-kicker {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  font-size: .8125rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-300);
}
.hero-kicker::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.75rem); font-weight: 300; line-height: 1.1; letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; font-weight: 800; color: var(--brand-300); }
.hero h1 .dim { color: rgba(255, 255, 255, .58); }
.hero-lead { margin: 28px 0 40px; max-width: 34rem; font-size: 1.0625rem; line-height: 1.7; color: rgba(255, 255, 255, .78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { justify-self: center; width: 100%; max-width: 520px; }
.art text { font-family: var(--font); }

/* Secciones */
.section { padding: 104px 32px; }
.wrap { max-width: 1100px; margin: 0 auto; }
.center { text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-size: .8125rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--brand);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.on-dark .kicker { color: var(--brand-300); }
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 300; line-height: 1.18; letter-spacing: -.012em; }
.h2 strong { font-weight: 800; color: var(--brand); }
.on-dark .h2 strong { color: var(--brand-300); }
.lede { margin-top: 18px; max-width: 40rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }
.center .lede { margin-inline: auto; }
.on-dark .lede { color: rgba(255, 255, 255, .78); }

/* El reto */
.situaciones { margin-top: 56px; }
.sit {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--line);
}
.sit.rev .sit-art { order: 2; }
.sit-art { border-radius: 28px; overflow: hidden; background: var(--ink); aspect-ratio: 4 / 3; }
.sit-art svg { width: 100%; height: 100%; }
.sit-n { font-size: .8125rem; font-weight: 500; letter-spacing: .15em; color: var(--brand); }
.sit h3 { margin: 10px 0 16px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.2; }
.sit p { color: var(--muted); font-size: 1.0625rem; line-height: 1.75; max-width: 30rem; }

/* Cómo funciona */
.como { background: var(--deep); color: #fff; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; text-align: left; }
.step-top { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.step-num {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--brand-300); color: var(--brand-300); font-weight: 500;
}
.step-line { flex: 1; height: 1.5px; background: linear-gradient(90deg, var(--brand-300), rgba(79, 195, 200, .12)); }
.step:last-child .step-line { display: none; }
.step-card {
  height: calc(100% - 72px); padding: 28px; border-radius: 24px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
  transition: background-color .25s, border-color .25s;
}
.step-card:hover { background: rgba(255, 255, 255, .1); border-color: rgba(79, 195, 200, .5); }
.step-card .ic { width: 30px; height: 30px; color: var(--brand-300); margin-bottom: 18px; }
.step-card h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 10px; }
.step-card p { color: rgba(255, 255, 255, .78); line-height: 1.65; }

/* Por qué nosotros */
.porque { background: var(--surface); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; text-align: left; }
.b { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; transition: border-color .25s; }
.b:hover { border-color: var(--brand); }
.b .ic { width: 30px; height: 30px; color: var(--brand); margin-bottom: 20px; }
.b h3 { font-size: 1.125rem; font-weight: 500; margin-bottom: 8px; }
.b p { color: var(--muted); line-height: 1.65; }
.b-tall { grid-row: span 2; display: flex; flex-direction: column; background: var(--brand); border-color: var(--brand); color: #fff; }
.b-tall:hover { border-color: var(--brand-300); }
.b-tall .ic { color: #fff; }
.b-tall p { color: rgba(255, 255, 255, .86); }
.b-tall svg.escala { margin-top: auto; padding-top: 28px; width: 100%; height: auto; }
.b-wide { grid-column: span 2; }

/* Para quién */
.paraquien { background: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 48px 0 44px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border: 1px solid var(--field); border-radius: 999px; background: #fff; cursor: pointer;
  font-size: .9375rem; font-weight: 500; color: var(--ink);
  transition: background-color .2s, border-color .2s, color .2s;
}
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; text-align: left; }
.panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) { animation: entra .4s var(--ease); }
  @keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
.panel-art { border-radius: 28px; overflow: hidden; background: var(--ink); aspect-ratio: 4 / 3; }
.panel-art svg { width: 100%; height: 100%; }
.panel-tag { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.panel h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.panel p { color: var(--muted); font-size: 1.0625rem; line-height: 1.75; margin-bottom: 26px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  background: var(--tint); color: var(--brand-700); font-size: .875rem; font-weight: 500;
}
.chips .ic { width: 1.1em; height: 1.1em; }

/* Contacto */
.contacto { display: grid; grid-template-columns: 1fr 1fr; }
.c-info { background: var(--ink-2); color: #fff; padding: 96px 64px 96px max(32px, calc((100vw - 1100px) / 2)); }
.c-info .h2 { color: #fff; }
.c-info .lede { margin-bottom: 40px; max-width: 28rem; }
.datos-contacto { list-style: none; display: grid; gap: 18px; }
.datos-contacto li { display: flex; align-items: center; gap: 16px; color: rgba(255, 255, 255, .86); }
.datos-contacto .ic { width: 22px; height: 22px; color: var(--brand-300); }
.datos-contacto a { text-decoration: none; }
.datos-contacto a:hover { text-decoration: underline; text-underline-offset: 4px; }
.c-form { background: #fff; padding: 96px max(32px, calc((100vw - 1100px) / 2)) 96px 64px; }
.c-form h3 { font-size: 1.375rem; font-weight: 500; margin-bottom: 28px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--field); border-radius: 14px;
  background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; padding-right: 44px; background: #fff url("/assets/img/chevron.svg") no-repeat right 14px center; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(1, 96, 100, .22); }
.field [aria-invalid="true"] { border-color: var(--error); }
.err { margin-top: 6px; color: var(--error); font-size: .875rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field .check, .check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 8px; font-size: .9375rem; }
.field .check input, .check input { flex: none; width: 22px; min-height: 22px; height: 22px; padding: 0; margin: 0; accent-color: var(--brand); }
.field .check span { padding-top: 1px; }
.check a { color: var(--brand); }
.legal-first { margin: 14px 0 24px; padding: 14px 16px; border-radius: 12px; background: var(--surface); color: var(--muted); font-size: .8125rem; line-height: 1.55; }
.legal-first a { color: var(--brand); }
.status { margin-top: 16px; padding: 0; font-size: .9375rem; font-weight: 500; }
.status:not(:empty) { padding: 14px 16px; border-radius: 12px; }
.status.ok { background: var(--tint); color: var(--brand-700); }
.status.fail { background: #fbeae9; color: #8c1d18; }
.noscript-note { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface); }

/* Pie */
.site-footer { background: #161616; color: rgba(255, 255, 255, .72); padding: 56px 32px 40px; }
.foot { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px 48px; justify-content: space-between; align-items: flex-start; }
.foot img { height: 28px; width: auto; }
.foot-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-nav a { text-decoration: none; font-size: .9375rem; }
.foot-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-copy { max-width: 1100px; margin: 36px auto 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .875rem; }

/* Páginas legales */
.legal { max-width: 780px; margin: 0 auto; padding: 72px 24px 112px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 300; line-height: 1.15; letter-spacing: -.015em; }
.legal h1 strong { font-weight: 800; color: var(--brand); }
.legal .meta { margin: 12px 0 40px; color: var(--muted); font-size: .9375rem; }
.legal h2 { margin: 44px 0 12px; font-size: 1.3125rem; font-weight: 700; line-height: 1.3; }
.legal h3 { margin: 24px 0 8px; font-size: 1.0625rem; font-weight: 700; }
.legal p, .legal li { color: #2f3437; line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { margin: 12px 0 0 1.25rem; display: grid; gap: 6px; }
.legal a { color: var(--brand); text-underline-offset: 3px; }
.legal .datos { margin-top: 16px; display: grid; grid-template-columns: max-content 1fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.legal .datos dt, .legal .datos dd { padding: 12px 18px; border-top: 1px solid var(--line); }
.legal .datos dt:first-of-type, .legal .datos dd:first-of-type { border-top: 0; }
.legal .datos dt { background: var(--surface); font-weight: 500; }
.legal .tabla { margin-top: 16px; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal th, .legal td { padding: 12px 14px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.legal th { background: var(--surface); font-weight: 500; }
.nota { margin-top: 20px; padding: 16px 18px; border-left: 4px solid var(--brand); background: var(--surface); border-radius: 0 12px 12px 0; }
.volver { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--brand); }
.volver:hover { text-decoration: underline; }
.e404 { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: 72px 24px; }
.e404 .num { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; color: var(--brand); }
.e404 p { margin: 12px 0 28px; color: var(--muted); font-size: 1.125rem; }

/* Entrada progresiva: solo con JavaScript activo y sin "reducir movimiento" */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* Adaptación */
@media (max-width: 960px) {
  .bar { padding: 0 20px; }
  .menu-btn { display: inline-flex; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 12px 20px 24px; background: #fff; border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .menu { display: flex; }
  .menu a:not(.btn) { padding: 14px 16px; }
  .menu .btn { margin: 8px 0 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 64px; min-height: 0; }
  .hero-art { max-width: 420px; }
  .section { padding: 72px 24px; }
  .sit { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .sit.rev .sit-art { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 20px; margin-top: 44px; }
  .step-line { display: none; }
  .step-card { height: auto; }
  .bento { grid-template-columns: 1fr; }
  .b-tall, .b-wide { grid-column: auto; grid-row: auto; }
  .panel { grid-template-columns: 1fr; gap: 28px; }
  .contacto { grid-template-columns: 1fr; }
  .c-info, .c-form { padding: 64px 24px; }
}
@media (max-width: 960px) and (scripting: none) {
  .menu-btn { display: none; }
  .menu { display: flex; position: static; flex-direction: row; flex-wrap: wrap; border: 0; padding: 0; }
  .bar { height: auto; padding-block: 12px; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .legal .datos { grid-template-columns: 1fr; }
  .legal .datos dt { border-top: 1px solid var(--line); padding-bottom: 4px; }
  .legal .datos dd { border-top: 0; padding-top: 4px; }
  .foot-copy { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }

@media (scripting: none) { .c-form form { display: none; } }
