/* TakeOff — landing lanzamiento España */
:root {
  --black: #0B0B0B;
  --ink: #141414;
  --line-dark: #2A2A2A;
  --grey-on-dark: #B4B4B4;
  --grey-on-light: #4A4A4A;
  --white: #FFFFFF;
  --paper: #F5F5F3;
  --yellow: #FFD701;
  --error: #8A0B00;

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.contact :focus-visible, .calc :focus-visible, .compare :focus-visible { outline-color: var(--black); }
.hero__video { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--grey-on-dark); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,215,1,.6); text-underline-offset: 4px; }
.hero__video:hover { color: var(--yellow); }
.form__legal { font-size: .75rem; line-height: 1.45; color: #444; margin: 4px 0 12px; }
.form__legal a { color: inherit; }


.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--black); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(960px + 2 * var(--gutter)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1 var(--body); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: var(--white); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--white { background: var(--white); color: var(--black); box-shadow: 0 0 0 0 rgba(255,215,1,.55); }
.btn--white:hover { background: var(--yellow); }
.btn--black { background: var(--black); color: var(--yellow); }
.btn--black:hover { background: #262626; }
.btn--block { width: 100%; }
.btn__icon { width: 18px; height: 18px; }
.btn[disabled] { cursor: progress; opacity: .85; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 11, .82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__inner {
  max-width: 1280px; margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav__logo img { height: 52px; width: auto; margin: -6px 0 -6px -14px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--black); overflow: hidden; }
.hero::before { /* faint tread grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero__inner {
  position: relative;
  max-width: 1280px; margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(40px, 6vw, 72px);
  display: grid; gap: clamp(40px, 5vw, 56px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); align-items: center; }
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; margin-bottom: 28px;
  border: 1px solid rgba(255, 215, 1, .45); border-radius: 999px;
  font-size: .875rem; font-weight: 600; color: var(--white);
}
.badge__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 215, 1, .18);
}

.hero__title {
  font-family: var(--display); font-style: italic; font-weight: 900;
  font-size: clamp(2.25rem, 1.1rem + 3vw, 3.6rem);
  line-height: 1; letter-spacing: -.012em; word-spacing: .04em;
  text-transform: none;
}
.hero__title .line { display: block; }
.hero__title .line--yellow { color: var(--yellow); margin-top: .12em; }
.hero__sub {
  margin-top: 24px; max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55;
  color: var(--grey-on-dark);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__visual { position: relative; perspective: 1600px; padding-bottom: 8%; }
.hero__devices { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); }
@media (min-width: 960px) {
  .hero__visual { margin-right: calc(-1 * var(--gutter)); }
}

.trail {
  position: absolute; z-index: 2; pointer-events: none;
  left: -14%; right: -4%; bottom: -4%; height: 46%;
  width: 118%;
  filter: drop-shadow(0 10px 24px rgba(255, 215, 1, .25));
}
.trail__draw { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* Hero load sequence — the one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line, .badge, .hero__sub, .hero__ctas {
    animation: rise .8s var(--ease) both;
  }
  .badge { animation-delay: .05s; }
  .hero__title .line:nth-child(1) { animation-delay: .12s; }
  .hero__title .line:nth-child(2) { animation-delay: .22s; }
  .hero__title .line:nth-child(3) { animation-delay: .34s; }
  .hero__sub { animation-delay: .5s; }
  .hero__ctas { animation-delay: .6s; }
  .hero__devices { animation: settle 1.2s var(--ease) .25s both; }
  .hero .btn--white { animation: ring 2.4s ease-out 1.8s 2; }
  .trail__draw { animation: draw 1.1s cubic-bezier(.6, 0, .2, 1) .85s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle {
  from { opacity: 0; transform: translate3d(40px, 30px, 0) scale(.96); }
}
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255,215,1,.6); } 100% { box-shadow: 0 0 0 16px rgba(255,215,1,0); } }
@keyframes draw { from { stroke-dashoffset: 1; } }

/* ---------- Pains ---------- */
.pains { position: relative; border-top: 1px solid var(--line-dark); }
.pains__list {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr);
}
.pains__list li {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 24px 0;
  color: var(--grey-on-dark); font-size: 1rem; line-height: 1.5;
}
.pains__list li + li { border-top: 1px solid var(--line-dark); }
.pains__list svg { width: 34px; height: 34px; color: var(--white); }
.pains__list strong { color: var(--white); font-weight: 700; }
@media (min-width: 820px) {
  .pains__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pains__list li { padding: 32px 28px 40px; }
  .pains__list li:first-child { padding-left: 0; }
  .pains__list li + li { border-top: 0; border-left: 1px solid var(--line-dark); }
}

/* ---------- Section headings ---------- */
.h2 {
  font-family: var(--display); font-style: italic; font-weight: 900;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  line-height: 1.04; letter-spacing: -.01em; word-spacing: .05em;
  max-width: 18ch;
}
.h2--light, .h2--dark { max-width: 20ch; }
.lead {
  margin-top: 16px; max-width: 40em;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  color: var(--grey-on-light);
}
.lead--light { color: var(--grey-on-dark); }
.lead--dark { color: #1E1E1E; }

/* ---------- Calculator (white) ---------- */
.calc {
  position: relative; background: var(--white); color: var(--black);
  padding: clamp(96px, 12vw, 150px) 0 clamp(64px, 8vw, 104px);
}
/* yellow diagonal, like the thumbnail divider */
.slash {
  position: absolute; left: 0; right: 0; top: 0; height: clamp(48px, 7vw, 88px);
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 100% 18%, 0 100%);
}
.slash::after {
  content: ""; position: absolute; inset: 0; background: var(--black);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 62%);
}
.calc__frame {
  margin-top: 36px;
  border-radius: 20px; overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px #E6E6E6, 0 30px 60px -30px rgba(0,0,0,.25);
}
.calc__frame iframe { display: block; width: 100%; height: 820px; border: 0; }
@media (max-width: 639px) { .calc__frame iframe { height: 860px; } }
.calc__fallback { margin-top: 16px; font-size: .9375rem; color: var(--grey-on-light); }
.calc__fallback a { color: var(--black); font-weight: 600; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }

/* ---------- Video (black) ---------- */
.video { background: var(--black); padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.player {
  position: relative; margin-top: 40px;
  aspect-ratio: 16 / 9; width: 100%;
  border-radius: 18px; overflow: hidden; background: var(--ink);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 90px -30px rgba(255, 215, 1, .18);
}
.player__facade {
  all: unset; position: absolute; inset: 0; cursor: pointer; display: block;
}
.player__facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.player__facade:hover img { transform: scale(1.015); filter: brightness(.9); }
.player__facade:focus-visible { outline: 4px solid var(--yellow); outline-offset: -4px; border-radius: 18px; }
.player__play {
  position: absolute; left: 50%; top: 50%;
  width: clamp(72px, 11vw, 112px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--yellow);
  display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255, 215, 1, .25), 0 18px 40px rgba(0,0,0,.5);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.player__play svg { width: 56%; margin-left: 6%; }
.player__facade:hover .player__play { transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 0 0 16px rgba(255, 215, 1, .2), 0 18px 40px rgba(0,0,0,.5); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__note { margin-top: 14px; font-size: .875rem; color: #9A9A9A; }

/* ---------- Before / After (white) ---------- */
.compare { background: var(--white); color: var(--black); padding: clamp(72px, 10vw, 128px) 0; }
.ba {
  --pos: 50%;
  position: relative; margin-top: 40px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px #E2E2E2, 0 40px 80px -40px rgba(0,0,0,.35);
  background: #EEE;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.ba__img { width: 100%; pointer-events: none; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba__after .ba__img { height: 100%; object-fit: cover; }
.ba__tag {
  position: absolute; bottom: clamp(10px, 2.4vw, 22px);
  padding: .35em .8em .3em; border-radius: 10px;
  background: var(--black); color: var(--yellow);
  font: italic 900 clamp(.875rem, .6rem + 1.2vw, 1.5rem)/1 var(--display);
  letter-spacing: .04em; pointer-events: none;
}
.ba__tag--before { left: clamp(10px, 2.4vw, 22px); }
.ba__tag--after { right: clamp(10px, 2.4vw, 22px); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 4px; margin-left: -2px; background: var(--yellow);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  pointer-events: none;
}
.ba__knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--yellow); color: var(--black);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  transition: transform .2s var(--ease);
}
.ba__knob svg { width: 24px; height: 24px; }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.ba:has(.ba__range:focus-visible) .ba__knob { outline: 3px solid var(--black); outline-offset: 3px; transform: translate(-50%, -50%) scale(1.08); }
.ba:active .ba__knob { transform: translate(-50%, -50%) scale(1.08); }

.gallery {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; gap: 32px 24px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery figure { margin: 0; }
.gallery__shot {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px #E2E2E2, 0 20px 40px -24px rgba(0,0,0,.3);
  aspect-ratio: 16 / 10; background: #F2F2F2;
}
.gallery__shot img { width: 170%; max-width: none; height: auto; transform: translate(var(--x, 0), var(--y, 0)); }
.gallery figcaption {
  margin-top: 16px; padding-left: 14px;
  border-left: 4px solid var(--yellow);
  font-weight: 600; font-size: 1.0625rem; line-height: 1.4; color: var(--black);
}

/* ---------- Contact (yellow) ---------- */
.contact { background: var(--yellow); color: var(--black); padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.contact__grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; } }
.direct { margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--black); }
.direct p { font-weight: 700; font-size: 1.125rem; margin-bottom: 14px; }

.contact__panel {
  background: var(--white);
  border-radius: 20px; padding: clamp(20px, 4vw, 40px);
  box-shadow: 8px 8px 0 var(--black);
  border: 2px solid var(--black);
}
.form { display: grid; gap: 18px 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form > .field:not(.field--half), .form > .form__status, .form > .btn, .form > .hp { grid-column: 1 / -1; }
}
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.field input:not([type="checkbox"]), .field select {
  width: 100%; min-height: 50px; padding: 0 14px;
  font: 400 1rem var(--body); color: var(--black);
  background: var(--white);
  border: 2px solid #8C8C8C; border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%230B0B0B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field input::placeholder { color: #767676; }
.field input:hover, .field select:hover { border-color: var(--black); }
.field input:focus, .field select:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 4px var(--yellow); }
.field [aria-invalid="true"] { border-color: var(--error) !important; background-color: #FFF6F5 !important; }
.field__error { min-height: 0; margin-top: 6px; font-size: .875rem; font-weight: 600; color: var(--error); }
.field__error:empty { display: none; }

.field--check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.field--check input {
  width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--black); cursor: pointer;
}
.field--check label { font-weight: 400; margin: 0; line-height: 1.45; }
.field--check label a { font-weight: 600; }
.field--check .field__error { grid-column: 2; margin-top: 0; }
.field--check input:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }

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

.form__status { font-size: .9375rem; font-weight: 600; color: var(--error); }
.form__status:empty { display: none; }
.form__status a { color: var(--black); }

.btn .spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 215, 1, .35); border-top-color: var(--yellow);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.success { text-align: left; }
.success:focus { outline: none; }
.success svg { width: 56px; height: 56px; }
.success h3 {
  margin-top: 20px;
  font: italic 900 clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem)/1.05 var(--display); letter-spacing: -.02em;
}
.success p { margin: 12px 0 24px; color: var(--grey-on-light); }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--grey-on-dark); padding: 48px 0 40px; border-top: 1px solid var(--line-dark); }
.footer__inner { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.footer__logo { height: 56px; width: auto; margin-left: -16px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .9375rem; }
.footer__links a { text-decoration: none; color: var(--white); }
.footer__links a:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }
.footer__copy { font-size: .875rem; }
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: auto 1fr auto; gap: 40px; }
  .footer__links { justify-content: center; }
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .nav__logo img { height: 44px; }
  .hero__ctas .btn { width: 100%; }
  .badge { font-size: .8125rem; }
  .ba__knob { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn .spinner { animation: none; border-top-color: rgba(255, 215, 1, .35); }
}

@media (max-width: 719px) { .compare .gallery { display: none; } }

/* Before/after screen tabs */
.ba-tabs { display: flex; gap: 8px; margin-top: 32px; overflow-x: auto; scrollbar-width: none; padding: 2px; -webkit-overflow-scrolling: touch; }
.ba-tabs::-webkit-scrollbar { display: none; }
.ba-tabs__btn {
  flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid #D6D6D6; background: var(--white); color: var(--black);
  font: 600 .9375rem/1 var(--body, inherit); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.ba-tabs__btn:hover { border-color: var(--black); }
.ba-tabs__btn[aria-selected="true"] { background: var(--black); border-color: var(--black); color: var(--yellow); }
.ba-tabs + .ba { margin-top: 20px; }
.ba .ba__img { transition: opacity .25s ease; }
.ba.is-loading .ba__img { opacity: .35; }
@media (min-width: 960px) { .hero__devices { width: 102%; max-width: none; margin-left: -4%; } }
