/* =========================================================
   Goated MKT — estilos (mobile-first)
   ========================================================= */

:root {
  --white: #FFFFFF;
  --ink: #0A0A0A;
  --purple: #7C3AED;
  --purple-ink: #5B21B6;
  --purple-soft: #F3EEFF;
  --gray-50: #F6F6F4;
  --gray-200: #E7E7E4;
  --gray-500: #6B6B6B;
  --gray-400-dark: #A3A3A3;
  --line-dark: #262626;

  --f-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  --gutter: 20px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--purple); color: var(--white); }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

.accent { color: var(--purple); }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: baseline; gap: 0;
  text-decoration: none; color: var(--ink);
  font-family: var(--f-display); font-weight: 800;
  line-height: 1;
}
.logo__word { font-size: 26px; letter-spacing: -0.06em; }
.logo__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--purple); margin: 0 6px 0 2px;
  align-self: flex-end; transform: translateY(-3px);
}
.logo__tag {
  font-family: var(--f-body); font-weight: 600;
  font-size: 11px; letter-spacing: 0.18em;
  padding: 4px 6px 3px; border: 1.5px solid currentColor; border-radius: 6px;
  transform: translateY(-5px);
}
.logo--light { color: var(--white); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd);
  border-radius: 999px;
  font-family: var(--f-body); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--purple); --bd: var(--purple); box-shadow: 0 10px 30px -10px rgba(124, 58, 237, .65); }
.btn--primary:hover { --bg: var(--purple-ink); --bd: var(--purple-ink); }
.btn--dark { --bg: var(--ink); }
.btn--outline { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--outline:hover { --bg: var(--ink); --fg: var(--white); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--lg { min-height: 58px; padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn__icon { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }

.link-arrow {
  font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--purple); padding-bottom: 2px;
}
.link-arrow:hover { color: var(--purple); }

/* ---------- Cabecera ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--gray-200); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav { display: none; }

/* ---------- Eyebrows / títulos ---------- */
.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray-500);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--purple); }
.eyebrow--light { color: var(--gray-400-dark); }

.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--purple);
  box-shadow: 0 0 0 0 rgba(124, 58, 237, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

.h2 { font-size: clamp(36px, 9vw, 72px); margin-top: 18px; }
.h2 .serif { font-size: 1.08em; }

.section { padding: 88px 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--soft { background: var(--gray-50); }
.section__lead { margin-top: 20px; max-width: 560px; color: var(--gray-500); font-size: 18px; }
.section__lead--light { color: var(--gray-400-dark); }
.section__row { display: flex; flex-direction: column; gap: 20px; }

/* ---------- 1. Portada ---------- */
.hero { padding: 48px 0 0; overflow: hidden; }
.hero__title {
  margin-top: 22px;
  font-size: clamp(54px, 15.5vw, 168px);
  line-height: .9;
  letter-spacing: -0.055em;
}
.hero__title .serif {
  display: inline-block;
  font-size: 1.12em;
  letter-spacing: -0.03em;
  position: relative;
}
.hero__title .serif::after {
  content: ""; position: absolute; left: 2%; right: 4%; bottom: .08em;
  height: .07em; background: var(--purple); border-radius: 99px;
  transform-origin: left; transform: scaleX(0);
  animation: underline 1s .6s var(--ease) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.hero__lead { margin-top: 28px; font-size: 19px; max-width: 560px; color: #333; }
.hero__lead strong { color: var(--ink); font-weight: 600; box-shadow: inset 0 -0.45em 0 var(--purple-soft); }

.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 32px; }
.hero__actions .btn--lg { width: 100%; }

.hero__proof {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--gray-200);
  font-size: 15px; font-weight: 500; color: var(--gray-500);
}
.hero__num { color: var(--purple); font-family: var(--f-display); font-weight: 800; font-size: 18px; }

.marquee {
  margin-top: 56px;
  background: var(--ink); color: var(--white);
  overflow: hidden; white-space: nowrap;
  padding: 16px 0;
  transform: rotate(-1.5deg) scale(1.03);
}
.marquee__track { display: inline-flex; align-items: center; gap: 28px; animation: marquee 26s linear infinite; padding-left: 28px; }
.marquee span { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.marquee i { font-style: normal; color: var(--purple); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 2. Problema ---------- */
#problema { margin-top: -10px; padding-top: 110px; }
.problems { display: grid; gap: 14px; margin-top: 48px; }
.problem {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: linear-gradient(180deg, #121212, #0A0A0A);
}
.problem__n { font-family: var(--f-display); font-weight: 700; color: var(--purple); font-size: 15px; }
.problem h3 { margin-top: 14px; font-size: 25px; line-height: 1.08; letter-spacing: -0.02em; }
.problem p { margin-top: 12px; color: var(--gray-400-dark); }

.statement {
  margin-top: 56px; max-width: 820px;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(24px, 5.6vw, 40px); line-height: 1.15; letter-spacing: -0.02em;
}

/* ---------- 3. Recorrido ---------- */
.journey { margin-top: 48px; position: relative; counter-reset: step; }
.step {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding-bottom: 34px;
}
.step::before {
  content: ""; position: absolute; left: 27px; top: 56px; bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--gray-200) 0 6px, transparent 6px 12px);
}
.step--last::before { display: none; }
.step__n {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  font-family: var(--f-display); font-weight: 800; font-size: 18px;
  background: var(--white);
  transition: background .3s, color .3s, border-color .3s;
}
.step--last .step__n { background: var(--purple); border-color: var(--purple); color: var(--white); }
.step h3 { font-size: 30px; padding-top: 10px; }
.step p { margin-top: 8px; color: var(--gray-500); max-width: 460px; }
.step em { font-style: normal; color: var(--purple); font-weight: 600; }

/* ---------- 4. Planes ---------- */
.plans { display: grid; gap: 18px; margin-top: 48px; }
.plan {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px 24px 26px;
  display: flex; flex-direction: column;
}
.plan__tier { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500); }
.plan__name { margin-top: 10px; font-size: 34px; letter-spacing: -0.035em; }
.plan__desc { margin-top: 10px; color: var(--gray-500); font-size: 16px; }
.plan__price {
  margin: 26px 0 22px; padding: 18px 0;
  border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
  font-family: var(--f-display); font-weight: 800; font-size: 38px; letter-spacing: -0.04em; line-height: 1;
}
.plan__price small { font-family: var(--f-body); font-weight: 500; font-size: 14px; letter-spacing: 0; color: var(--gray-500); }
.plan__list { display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan__list li { position: relative; padding-left: 30px; font-size: 16px; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--purple-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%237C3AED' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.plan--featured { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(124, 58, 237, .55); }
.plan--featured .plan__tier,
.plan--featured .plan__desc,
.plan--featured .plan__price small { color: var(--gray-400-dark); }
.plan--featured .plan__price { border-color: var(--line-dark); }
.plan--featured .plan__list li::before {
  background-color: var(--purple);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.plan__badge {
  position: absolute; top: -14px; left: 24px;
  background: var(--purple); color: var(--white);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
}

.note {
  margin-top: 28px; padding: 18px 20px;
  border-left: 3px solid var(--purple);
  background: var(--white); border-radius: 0 12px 12px 0;
  font-size: 15px; color: #333; max-width: 760px;
}

/* ---------- 5. Portafolio ---------- */
.gallery {
  display: grid; gap: 12px; margin-top: 40px;
  grid-template-columns: repeat(2, 1fr);
}
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-50);
  aspect-ratio: 4 / 5;
  border: 0; padding: 0; cursor: pointer;
  display: block; width: 100%;
}
.tile img, .tile video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile__badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(10, 10, 10, .75); color: var(--white);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px;
}
.tile__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 12px 12px;
  background: linear-gradient(to top, rgba(10,10,10,.8), transparent);
  color: var(--white); font-size: 14px; font-weight: 600; text-align: left;
}
.tile--empty {
  cursor: default;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 16px; text-align: left;
  border: 1.5px dashed #D4D4D0;
  background:
    radial-gradient(circle at 80% 15%, var(--purple-soft), transparent 55%),
    var(--gray-50);
}
.tile--empty strong { font-family: var(--f-display); font-size: 20px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.05; }
.tile--empty span { font-size: 13px; color: var(--gray-500); }
.tile--empty .tile__mark { position: absolute; top: 14px; left: 16px; font-family: var(--f-display); font-weight: 800; color: var(--purple); }

/* Visor */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 10, 10, .94);
  display: none; align-items: center; justify-content: center;
  padding: 60px 16px 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__media { max-height: 82vh; max-width: min(100%, 900px); border-radius: 14px; }
.lightbox__close {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--ink);
  font-size: 24px; line-height: 1; cursor: pointer;
}

/* ---------- 6. Diagnóstico ---------- */
.diag { display: grid; gap: 40px; }
.diag__label { margin-top: 36px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-400-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips li {
  border: 1px solid #333; border-radius: 999px;
  padding: 8px 14px; font-size: 14px; color: #E5E5E5;
}
.diag__card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px 22px 24px;
  align-self: start;
}
.diag__card .diag__label { margin-top: 0; color: var(--purple); }
.diag__title { margin-top: 12px; font-size: 26px; line-height: 1.08; letter-spacing: -0.025em; }
.diag__list { display: grid; gap: 18px; margin: 24px 0 28px; }
.diag__list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; font-size: 16px; color: #333; }
.diag__list li > span {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--purple-soft); color: var(--purple);
  font-family: var(--f-display); font-weight: 800;
}
.diag__list strong { color: var(--ink); display: block; margin-bottom: 2px; }
.diag__fine { margin-top: 14px; text-align: center; font-size: 13px; color: var(--gray-500); }

/* ---------- 7. FAQ ---------- */
.faq-wrap { display: grid; gap: 36px; }
.faq { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--gray-200); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 0;
  font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink);
  font-family: var(--f-body); font-weight: 500; font-size: 22px; line-height: 1;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--purple); border-color: var(--purple); color: var(--white); }
.faq__item summary:hover { color: var(--purple); }
.faq__item p { padding: 0 0 24px; color: var(--gray-500); max-width: 640px; }

/* ---------- CTA final ---------- */
.final { padding: 40px 0 110px; text-align: center; }
.final__title { font-size: clamp(40px, 10vw, 96px); letter-spacing: -0.045em; max-width: 960px; margin: 0 auto; }
.final__lead { margin: 20px 0 32px; color: var(--gray-500); font-size: 18px; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: var(--white); padding: 64px 0 110px; }
.footer .logo__word { font-size: 40px; }
.footer__top { display: grid; gap: 18px; }
.footer__tagline { color: var(--gray-400-dark); }
.footer__links { display: grid; gap: 12px; margin-top: 40px; }
.footer__link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  text-decoration: none; font-weight: 600; line-height: 1.25;
  transition: border-color .2s, background .2s;
}
.footer__link:hover { border-color: var(--purple); background: #141414; }
.footer__link svg { width: 28px; height: 28px; color: var(--purple); flex: none; }
.footer__link small { font-weight: 400; color: var(--gray-400-dark); font-size: 14px; }
.footer__bottom {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  font-size: 13px; color: var(--gray-400-dark);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(10, 10, 10, .45);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: ring 2.4s infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Animación al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .pulse, .wa-float::after { animation: none; }
  .hero__title .serif::after { animation: none; transform: scaleX(1); }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .section { padding: 120px 0; }
  .hero { padding-top: 72px; }
  .hero__actions { flex-direction: row; align-items: center; gap: 28px; }
  .hero__actions .btn--lg { width: auto; }
  .problems { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .section__row { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .footer__links { grid-template-columns: repeat(2, minmax(0, 320px)); }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* =========================================================
   Escritorio
   ========================================================= */
@media (min-width: 1000px) {
  body { font-size: 18px; }
  .nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
  .nav a { text-decoration: none; color: var(--gray-500); transition: color .2s; }
  .nav a:hover { color: var(--ink); }
  .topbar__inner { height: 74px; }

  .hero__title { margin-top: 28px; }

  /* Recorrido horizontal */
  .journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 64px; }
  .step { grid-template-columns: 1fr; gap: 22px; padding-bottom: 0; }
  .step::before {
    left: 64px; right: -20px; top: 27px; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(to right, var(--gray-200) 0 6px, transparent 6px 12px);
  }
  .step h3 { padding-top: 0; font-size: 28px; }
  .step p { font-size: 16px; }

  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 20px; }
  .plan { padding: 36px 30px 30px; }
  .plan--featured { transform: translateY(-16px); }
  .plan--featured.reveal.is-visible { transform: translateY(-16px); }

  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery .tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

  .diag { grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
  .diag__card { padding: 40px 36px 32px; }

  .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .faq__item summary { font-size: 22px; }

  .footer { padding-bottom: 64px; }
  .footer__top { grid-template-columns: 1fr 1fr; align-items: end; }
  .footer__tagline { text-align: right; }
  .wa-float { right: 28px; bottom: 28px; width: 64px; height: 64px; }
}
