@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #0b0e14;
  --bg-2: #11151e;
  --card: #161b26;
  --line: #262d3b;
  --txt: #eef1f6;
  --muted: #a3acbd;
  --orange: #ec7c26;
  --orange-2: #f39a4f;
  --yellow: #ffc83d;
  --ok: #3ccf8e;
  --err: #ff6b6b;
  --r: 14px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 400 17px/1.6 "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--orange-2); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.y { color: var(--yellow); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.head { max-width: 760px; margin-bottom: 3rem; }
.lead { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; }
section { padding: clamp(72px, 10vw, 128px) 0; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--orange); color: #fff; font: 700 1rem/1 "Montserrat", sans-serif;
  text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 10px 30px -10px rgba(236, 124, 38, .7);
}
.btn:hover { background: var(--orange-2); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--yellow); outline-offset: 3px;
}
.btn--ghost { background: rgba(255, 255, 255, .08); box-shadow: none; border: 1px solid rgba(255, 255, 255, .22); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.btn--sm { padding: .7em 1.2em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.play--big { border-width: 16px 0 16px 26px; margin-left: 6px; }

/* ---------- cabecera ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.is-solid { background: rgba(11, 14, 20, .88); backdrop-filter: blur(12px); border-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 2rem; height: 68px; }
.top__logo img { width: 140px; height: auto; }
.top__nav { display: flex; gap: 1.8rem; margin-left: auto; }
.top__nav a { color: var(--txt); text-decoration: none; font-weight: 600; font-size: .92rem; opacity: .8; }
.top__nav a:hover { opacity: 1; color: var(--yellow); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 64px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 14, 20, .96) 0%, rgba(11, 14, 20, .78) 42%, rgba(11, 14, 20, .1) 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero__in { position: relative; }
.hero h1 { font-size: clamp(2.9rem, 8vw, 6rem); font-weight: 800; max-width: 11ch; animation: sube .9s .1s both; }
.hero .kicker { animation: sube .9s both; }
.hero__sub { max-width: 560px; margin-top: 1.5rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #cfd5e0; animation: sube .9s .2s both; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; animation: sube .9s .3s both; }
.hero__facts {
  list-style: none; padding: 0; margin: 4rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 2.6rem;
  animation: sube .9s .45s both;
}
.hero__facts li { border-left: 2px solid var(--orange); padding-left: 1rem; max-width: 230px; }
.hero__facts strong { display: block; font-size: 1.05rem; }
.hero__facts span { color: var(--muted); font-size: .9rem; }
@keyframes sube { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- vídeo ---------- */
.video { background: var(--bg); padding-top: 64px; }
.video .head { text-align: center; margin-inline: auto; }
.player {
  position: relative; border-radius: 20px; overflow: hidden; background: #000;
  aspect-ratio: 16 / 9; border: 1px solid var(--line);
  box-shadow: 0 40px 120px -40px rgba(236, 124, 38, .45);
}
.player video { width: 100%; height: 100%; object-fit: contain; }
.player__btn {
  position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%;
  border: 0; cursor: pointer; color: #fff; background: var(--orange);
  display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(236, 124, 38, .22);
  transition: transform .2s, box-shadow .2s;
}
.player__btn:hover { transform: scale(1.06); box-shadow: 0 0 0 22px rgba(236, 124, 38, .18); }
.player.is-playing .player__btn { display: none; }

/* ---------- qué es AGADEAN ---------- */
.about { padding-top: 0; }
.about__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__txt { color: var(--muted); font-size: 1.08rem; margin-top: 1.2rem; }
.about__txt .y { font-weight: 700; }
.about__link { display: inline-flex; gap: .5em; margin-top: 2rem; font-weight: 700; color: var(--orange-2); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.about__link:hover { color: var(--yellow); }
.about__note { margin-top: 2.2rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--yellow); background: rgba(255, 200, 61, .06); border-radius: 0 10px 10px 0; color: var(--muted); font-size: .97rem; }
.about__note b { display: block; color: var(--txt); margin-bottom: .3rem; }
.about__list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.about__list li { padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.about__list li:last-child { border-bottom: 0; }
.about__list b { display: block; color: var(--txt); font-size: 1rem; margin-bottom: .2rem; }

/* ---------- problema ---------- */
.pain { background: var(--bg-2); border-block: 1px solid var(--line); }
.pain__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.pain__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.pain__list li { color: var(--muted); padding-left: 1.4rem; border-left: 2px solid var(--line); }
.pain__list b { display: block; color: var(--txt); font-size: 1.1rem; margin-bottom: .3rem; }
.pain__answer { margin-top: 4rem; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; max-width: 820px; }

/* ---------- funciones ---------- */
.feat { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-bottom: clamp(4rem, 8vw, 7rem); }
.feat:last-child { margin-bottom: 0; }
.feat--rev { grid-template-columns: 1fr 1.35fr; }
.feat--rev .feat__media { order: 2; }
.feat__media {
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #000;
  aspect-ratio: 1280 / 576; position: relative;
}
.feat__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); border-radius: inherit; pointer-events: none; }
.feat__media video { width: 100%; height: 100%; object-fit: cover; }
.feat__n { display: block; font-size: 3.2rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--yellow); margin-bottom: 1rem; }
.feat h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; margin-bottom: 1rem; }
.feat p { color: var(--muted); }

/* ---------- extras ---------- */
.extras { padding-top: 0; }
.extras__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.extra { background: var(--bg); padding: 2rem 1.6rem; }
.extra h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.extra h3::before { content: ""; display: block; width: 22px; height: 3px; background: var(--orange); margin-bottom: 1.1rem; }
.extra p { color: var(--muted); font-size: .95rem; }

/* ---------- para quién ---------- */
.who { background: var(--bg-2); border-block: 1px solid var(--line); }
.who__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.who__grid h3 { font-size: 1.1rem; margin-bottom: .7rem; }
.who__grid p { color: var(--muted); font-size: .95rem; }

/* ---------- pasos ---------- */
.steps__list { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.steps__list li { counter-increment: paso; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.7rem 1.5rem; position: relative; }
.steps__list li::before {
  content: counter(paso); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 800; margin-bottom: 1.4rem;
}
.steps__list h3 { margin-bottom: .6rem; }
.steps__list p { color: var(--muted); font-size: .97rem; }

/* ---------- contacto ---------- */
.contact {
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(236, 124, 38, .16), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__pitch > p:not(.kicker) { color: var(--muted); margin-top: 1.2rem; font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.checks li { padding-left: 2rem; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--yellow); border-bottom: 2.5px solid var(--yellow); transform: rotate(-45deg);
}
.contact__an { margin-top: 3rem; display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .85rem; }
.contact__an img { width: 150px; height: auto; opacity: .9; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .45rem; font-size: .85rem; font-weight: 600; color: #cfd5e0; }
.form input, .form select, .form textarea {
  width: 100%; font: 500 1rem "Montserrat", sans-serif; color: var(--txt);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .8em .9em;
  transition: border-color .2s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.4em; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #3a4357; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--orange); outline: none; }
.form .is-bad { border-color: var(--err); }
.form .check { display: flex; gap: .8rem; align-items: flex-start; font-weight: 500; color: var(--muted); line-height: 1.5; }
.form .check input { width: 20px; height: 20px; flex: none; margin: .1em 0 0; accent-color: var(--orange); }
.form .check.is-bad span { color: var(--err); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__msg { min-height: 1.5em; font-weight: 600; font-size: .95rem; }
.form__msg.ok { color: var(--ok); }
.form__msg.err { color: var(--err); }
.form.is-done { text-align: center; padding-block: 4rem; }
.form.is-done h3 { font-size: 1.6rem; margin-bottom: .8rem; }
.form.is-done p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq__in { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; font-weight: 700; font-size: 1.1rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); color: var(--yellow); font-size: 1.6rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.4rem; max-width: 720px; }

/* ---------- pie ---------- */
.foot { border-top: 1px solid var(--line); padding: 2.5rem 0 5.5rem; color: var(--muted); font-size: .88rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.foot a { color: var(--txt); text-decoration: none; }
.foot a:hover { color: var(--yellow); }

/* CTA fija en móvil */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; display: none; transition: opacity .3s, transform .3s; }
.sticky-cta.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* aparición al hacer scroll (solo si hay JS) */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .steps__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1000px) {
  .about__grid { grid-template-columns: 1fr; }
  .top__nav { display: none; }
  .top__in { justify-content: space-between; }
  .pain__grid, .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .feat, .feat--rev { grid-template-columns: 1fr; gap: 1.6rem; }
  .feat--rev .feat__media { order: 0; }
  .extras__grid, .who__grid { grid-template-columns: 1fr 1fr; }
  .steps__list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top .btn--sm { display: none; }
  .hero { min-height: 92svh; align-items: flex-end; }
  .hero__veil { background: linear-gradient(0deg, var(--bg) 8%, rgba(11, 14, 20, .82) 55%, rgba(11, 14, 20, .35) 100%); }
  .hero__bg { object-position: 62% 40%; }
  .hero__cta .btn { width: 100%; }
  .hero__facts { margin-top: 2.5rem; gap: 1rem; }
  .form__row, .extras__grid, .who__grid { grid-template-columns: 1fr; }
  .player__btn { width: 72px; height: 72px; }
  .sticky-cta { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
