:root {
  --bg: #FFFFFF;
  --text: #0A0A0A;
  --muted: #6B6B6B;
  --border: #E6E6E6;
  --soft: #F4F4F2;
  --dark: #0E0E0E;
  --orange: #FF5B1A;
  --error: #B3261E;
  --inset: 16px;
  --nav-h: 56px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--inset) + var(--nav-h) + 48px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

h1, h2 {
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.03;
}
h1 strong, h2 strong { font-weight: 700; }
h1 { font-size: clamp(2.75rem, 1.73rem + 4.19vw, 5.5rem); }
h2 { font-size: clamp(2.125rem, 1.43rem + 2.857vw, 4rem); }

.container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 10vw, 140px); }

.lead { font-size: 18px; }
.small { font-size: 14px; color: var(--muted); }

.label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 10px;
  background: var(--text);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag--outlined { border: 1px solid rgba(255, 255, 255, .3); }

/* Logo: la máscara pinta el SVG con el color del texto que lo rodea */
.logo {
  display: block;
  aspect-ratio: 572 / 197;
  margin: 0;
  background: currentColor;
  -webkit-mask: url(/assets/logo.svg) center / contain no-repeat;
  mask: url(/assets/logo.svg) center / contain no-repeat;
}
.logo--nav { height: 26px; }
.logo--footer { height: 22px; }
.logo--soon { height: 64px; }

/* Botones */
.btn {
  display: inline-block;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, color .2s, opacity .2s;
}
.btn--black { background: var(--text); color: #fff; }
.btn--black:hover { background: #2B2B2B; }
.btn--orange { background: var(--orange); color: var(--text); }
.btn--orange:hover { background: #FF7238; }
.btn--ghost {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .24); }
.btn--small { padding: 10px 14px; font-size: 12px; }
.btn--large { padding-block: 18px; padding-inline: 36px; font-size: 15px; }
.btn--full { display: block; width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

/* Navegación */
.nav {
  position: fixed;
  z-index: 50;
  top: var(--inset);
  left: var(--inset);
  right: var(--inset);
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: 10px;
  background: #fff;
  border: 1px solid #EEE;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
}
.nav .logo { grid-column: 2; }
.nav__links { display: none; }
.nav__cta { grid-column: 3; justify-self: end; }
.nav__links a {
  padding: 8px 10px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}
.nav__links a:hover { color: var(--text); }

/* Barra de progreso */
.progress {
  position: fixed;
  z-index: 40;
  top: calc(var(--inset) + var(--nav-h) + 4px);
  left: var(--inset);
  right: var(--inset);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #EEE;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.progress.is-on { opacity: 1; visibility: visible; }
.progress__track { flex: 1; height: 3px; background: var(--border); }
.progress__fill {
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.progress__text { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .6) 42%, rgba(0, 0, 0, 0) 68%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 0 var(--gutter) 32px;
}
.hero h1 { max-width: 12em; }
.hero__sub { max-width: 34em; margin: 16px 0 24px; font-size: 17px; }

/* Bloques de texto a dos columnas */
.split { display: grid; gap: 20px; margin-bottom: 32px; }

/* Vídeo */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--dark);
}
.video__play {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.video__play img { width: 100%; height: 100%; object-fit: cover; }
.video__play:focus-visible { outline-offset: -6px; outline-color: #fff; }
.video__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform .2s;
}
.video__play:hover .video__icon { transform: translate(-50%, -50%) scale(1.06); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__cta { margin-top: 24px; text-align: center; }
.video__cta .btn { width: 100%; }

/* Panel de pasos */
.panel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
}
.panel__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 48% 70%; }
.panel__content { position: relative; z-index: 1; padding: 28px 16px 20px; }
.panel h2 { margin-bottom: 28px; }

.accordion { display: grid; gap: 10px; }
.accordion__item { border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; }
.accordion h3 { margin: 0; font: inherit; }
.accordion button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  background: none;
  border: 0;
  border-radius: 12px;
  color: inherit;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}
.accordion button:focus-visible { outline-color: #fff; }
.accordion__num {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 400;
}
[aria-expanded="true"] .accordion__num::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
}
.accordion__title { flex: 1; }
.accordion__sign::before { content: "+"; font-size: 22px; font-weight: 300; }
[aria-expanded="true"] .accordion__sign::before { content: "−"; }
.accordion__body { padding: 0 14px 16px 62px; color: rgba(255, 255, 255, .8); font-size: 16px; }

/* Formulario */
.form-layout { display: grid; gap: 40px; }
.form-intro .lead { margin: 20px 0 12px; }

.notice, .send-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--soft);
  border-radius: 12px;
}
.send-error { border: 1px solid var(--error); background: #fff; }
.link {
  padding: 4px 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.block { padding-bottom: 48px; }
.block + .block { padding-top: 40px; border-top: 1px solid var(--border); }
.block h3 {
  margin: 10px 0 8px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.block__head { margin-bottom: 28px; color: var(--muted); }

.field { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-weight: 600;
  line-height: 1.3;
}
.optional { color: var(--muted); font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #8C8C8C;
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-appearance: none;
  appearance: none;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 0; border-color: var(--text); }
[aria-invalid="true"] { border-color: var(--error) !important; }

.help { margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.counter { margin-top: 4px; font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.counter.is-ok { color: var(--text); }
.counter.is-ok::after { content: " ✓"; color: var(--orange); font-weight: 700; }
.error { margin-top: 6px; font-size: 14px; color: var(--error); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pill span {
  display: block;
  padding: 11px 16px;
  border: 1px solid #8C8C8C;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.25;
  transition: background-color .15s, border-color .15s;
}
.pill:hover span { border-color: var(--text); }
.pill input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--text); }
.pill input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field > .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange); }
.consent .small { margin-top: 12px; }

/* Pie */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 32px;
  padding-right: 88px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.footer .logo { color: var(--text); }
.footer a { display: inline-block; padding-block: 6px; }

/* Volver arriba */
.to-top {
  position: fixed;
  z-index: 30;
  right: var(--inset);
  bottom: var(--inset);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--text);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.to-top.is-on { opacity: 1; visibility: visible; }

/* Aparición al entrar en pantalla */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s ease-out, transform .4s ease-out;
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* Página "Próximamente" */
.soon main {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 16px;
}

@media (min-width: 900px) {
  :root { --inset: 24px; --nav-h: 66px; --gutter: 40px; }
  .logo--nav { height: 34px; }
  .nav { padding-inline: 16px; }
  .nav__links { display: flex; gap: 6px; }
  .btn--small { padding: 12px 18px; }

  .hero__img { object-position: center; }
  .hero::after {
    background: linear-gradient(to top right, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .5) 38%, rgba(0, 0, 0, 0) 66%);
  }
  .hero__content { padding-bottom: 56px; }
  .hero__sub { font-size: 18px; margin: 24px 0 32px; }

  .split { grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; margin-bottom: 48px; }
  .video__cta { margin-top: 32px; }
  .video__cta .btn { width: auto; min-width: 420px; }
  .video__icon { width: 96px; height: 96px; }

  .panel { display: grid; grid-template-columns: 1fr 1fr; min-height: 720px; }
  .panel__media { position: absolute; inset: 0 auto 0 0; width: 65%; }
  .panel__media img { height: 100%; aspect-ratio: auto; object-position: center; }
  .panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(14, 14, 14, 0) 25%, rgba(14, 14, 14, .85) 52%, var(--dark) 65%);
  }
  .panel__content { grid-column: 2; align-self: center; padding: 64px 48px 64px 16px; }
  .accordion button { padding: 18px; font-size: 19px; }
  .accordion__body { padding: 0 18px 20px 66px; font-size: 17px; }

  .form-layout { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .form-intro { position: sticky; top: calc(var(--inset) + var(--nav-h) + 64px); }
  .block h3 { font-size: 36px; }
}

@media (min-width: 900px) and (min-height: 700px) {
  .hero h1 { max-width: 11em; }
}

/* El botón de volver arriba no tapa el campo mientras se escribe */
body:has(#entrada :focus) .to-top { opacity: 0; visibility: hidden; }
