/* ==========================================================================
   Jonathan Alvez — Estratega digital
   Hoja de estilos única del sitio. Tokens + componentes + layout.
   ========================================================================== */

/* --- Tipografía autoalojada (Inter variable, subsets latin) --------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --color-bg: #14070a;
  --color-surface: #1d0a0f;
  --color-section: #6b0b1a;
  --color-section-glow: #8c1226;
  --color-text: #f3ece4;
  --color-divider: #3a1a20;

  --color-accent: #c9a24a;
  --color-accent-300: #e2c886;
  --color-accent-400: #d4b061;
  --color-accent-700: #6d5220;
  --color-accent-800: #4a3715;
  --color-accent-2-300: #e8a9ad;
  --color-accent-2-400: #a3162c;

  --color-neutral-200: #e4d8cf;
  --color-neutral-300: #cbb9b0;
  --color-neutral-400: #b09a92;
  --color-neutral-500: #947c74; /* mínimo AA (5.07:1 sobre el fondo) */
  --color-neutral-600: #6b5650; /* solo decorativo / aria-hidden */

  --font-heading: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: var(--font-heading);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);

  --wrap: 1180px;
  --gutter: 32px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  /* deja aire bajo el header sticky al saltar por anclas */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-300); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: rgba(201, 162, 74, 0.3); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding: 104px 0; }
.section--tight { padding: 104px 0; }
.section--wide { padding: 112px 0; }
.section--hero { padding: 120px 0 104px; }
.section--surface { background: var(--color-surface); }
.section--relative { position: relative; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Componentes ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  /* explícito: en <button> el fondo por defecto del navegador no es transparente */
  background: transparent;
  font-family: inherit;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn--primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn--primary:hover { background: rgba(201, 162, 74, 0.12); color: var(--color-accent-300); }
.btn--primary:active { background: rgba(201, 162, 74, 0.22); }
.btn--secondary { color: var(--color-text); border-color: var(--color-divider); }
.btn--secondary:hover { background: rgba(243, 236, 228, 0.07); color: var(--color-text); }
.btn--compact { padding: 8px 16px; font-size: 14px; }

.tag {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.tag--outline { border: 1px solid var(--color-accent); color: var(--color-accent); }
.tag--accent-2 { background: #4a1219; color: var(--color-accent-2-300); }
.tag--neutral { background: #33211f; color: var(--color-neutral-200); }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--color-neutral-400);
}

.glow {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  transition: transform 0.9s var(--ease);
}

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 7, 10, 0.92);
  border-bottom: 1px solid var(--color-divider);
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .site-header {
    background: rgba(20, 7, 10, 0.86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gutter);
}

.brand {
  margin-right: auto;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text);
  text-decoration: none;
}
.brand:hover { color: var(--color-text); }
.brand em { font-style: normal; color: var(--color-accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-size: 14px;
  color: var(--color-neutral-400);
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav__link:hover { color: var(--color-text); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(to right, var(--color-accent-2-400), var(--color-accent));
}

/* --- Hero ----------------------------------------------------------------- */
.hero { background: var(--color-bg); }
.hero__glow {
  width: 760px;
  height: 560px;
  transform: translate3d(50vw, -120px, 0);
  background: radial-gradient(ellipse at center, rgba(201, 162, 74, 0.17), transparent 62%);
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, var(--color-divider) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-divider) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 40% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 40% 40%, #000, transparent 75%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  align-items: center;
  gap: 56px;
}
.hero__eyebrow { margin-bottom: 20px; }
.hero__title {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.06;
  max-width: 15ch;
}
.hero__title-soft { color: var(--color-neutral-300); }
.hero__lead {
  margin-top: 24px;
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-neutral-400);
}
.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero__art-frame {
  position: absolute;
  inset: 6% 10%;
  pointer-events: none;
  border: 1px solid rgba(201, 162, 74, 0.25);
  clip-path: polygon(
    0 0, 26% 0, 26% 1px, 74% 1px, 74% 0, 100% 0,
    100% 26%, calc(100% - 1px) 26%, calc(100% - 1px) 74%, 100% 74%,
    100% 100%, 74% 100%, 74% calc(100% - 1px), 26% calc(100% - 1px), 26% 100%,
    0 100%, 0 74%, 1px 74%, 1px 26%, 0 26%
  );
}
.hero__funnel {
  width: 100%;
  max-width: 420px;
  height: auto;
  will-change: transform;
}
.scroll-cue {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--wrap);
  margin: 64px auto 0;
  padding-inline: var(--gutter);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-neutral-500);
}
.scroll-cue span {
  display: inline-block;
  animation: cueDrop 2.4s ease-in-out infinite;
}

/* --- Marquee -------------------------------------------------------------- */
.marquee {
  padding: 18px 0;
  overflow: hidden;
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__row {
  display: flex;
  gap: 40px;
  padding-right: 40px;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-neutral-500);
}
.marquee__row b { font-weight: 400; color: var(--color-accent); }

/* --- Problema ------------------------------------------------------------- */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
}
.problem__claim {
  position: sticky;
  top: 120px;
  align-self: start;
  max-width: 20ch;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 33px);
  line-height: 1.3;
}
.problem__item {
  position: relative;
  padding: 22px 0;
  font-size: 15.5px;
  color: var(--color-neutral-400);
}
.problem__item strong { color: var(--color-text); font-weight: 500; }
.rule {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--color-accent-700), var(--color-divider) 45%, transparent);
}
.rule--top { top: 0; }
.rule--bottom { bottom: 0; }

/* --- Método --------------------------------------------------------------- */
.method__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
  gap: 64px;
}
.method__head { position: sticky; top: 112px; }
.method__title { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 20px; }
.method__lead {
  max-width: 34ch;
  margin-bottom: 32px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--color-neutral-400);
}
.method__meter {
  width: 160px;
  height: 3px;
  overflow: hidden;
  background: var(--color-divider);
}
.method__meter-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(to right, var(--color-accent-2-400), var(--color-accent));
  transition: transform 0.3s linear;
}
.method__count {
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--color-neutral-500);
}
.method__steps { display: flex; flex-direction: column; }

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--color-divider);
  transition: opacity 0.5s ease;
}
.step:last-child { border-bottom: 1px solid var(--color-divider); }
.js .step[data-active='0'] { opacity: 0.32; }
.step[data-active='1'] { opacity: 1; }
.step__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.step__num {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--color-accent);
}
.step__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-neutral-600);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.js .step[data-active='1'] .step__dot {
  background: var(--color-accent);
  box-shadow: 0 0 14px rgba(201, 162, 74, 0.7);
  transform: scale(1.3);
}
.step h3 {
  margin-bottom: 10px;
  font-size: clamp(20px, 2.2vw, 26px);
}
.step p {
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-neutral-400);
}

/* --- Servicios ------------------------------------------------------------ */
.services__drift-a,
.services__drift-b {
  position: absolute;
  pointer-events: none;
}
.services__drift-a {
  top: -280px;
  right: -280px;
  width: 800px;
  height: 800px;
  animation: drift 18s ease-in-out infinite;
  background: radial-gradient(circle, rgba(140, 18, 38, 0.3), transparent 62%);
}
.services__drift-b {
  bottom: -240px;
  left: -240px;
  width: 600px;
  height: 600px;
  animation: drift 24s ease-in-out 3s infinite reverse;
  background: radial-gradient(circle, rgba(201, 162, 74, 0.12), transparent 62%);
}
.services__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-items: center;
  gap: 64px;
}
.services__title { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 16px; }
.services__lead { max-width: 42ch; margin-bottom: 64px; }
.services__cards { display: flex; flex-direction: column; gap: 16px; }

.scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  will-change: transform;
}
.scene__halo {
  position: absolute;
  width: 360px;
  height: 360px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(201, 162, 74, 0.16), transparent 62%);
}
.scene__stack { position: relative; width: 340px; height: 400px; }
.fnl {
  position: absolute;
  height: 52px;
}
.js .fnl {
  transform: var(--t);
  opacity: 0.3;
  transition: transform 1.15s cubic-bezier(0.2, 0.85, 0.24, 1), opacity 1s ease, filter 1s ease 0.15s;
}
.fnl.is-in {
  transform: none;
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(201, 162, 74, 0.55));
}
.fnl--1 {
  --t: translate(-96px, -54px) rotate(-14deg);
  left: 20px; top: 30px; width: 300px;
  clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%);
  background: linear-gradient(105deg, rgba(163, 22, 44, 0.85), rgba(201, 162, 74, 0.7));
}
.fnl--2 {
  --t: translate(120px, 30px) rotate(17deg);
  left: 41px; top: 96px; width: 258px;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
  background: linear-gradient(105deg, rgba(201, 162, 74, 0.8), rgba(226, 200, 134, 0.7));
}
.fnl--3 {
  --t: translate(-130px, 96px) rotate(9deg);
  left: 62px; top: 162px; width: 216px;
  clip-path: polygon(0 0, 100% 0, 91% 100%, 9% 100%);
  background: linear-gradient(105deg, rgba(212, 176, 97, 0.8), rgba(226, 200, 134, 0.75));
}
.fnl--4 {
  --t: translate(96px, 150px) rotate(-21deg);
  left: 83px; top: 228px; width: 174px;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
  background: linear-gradient(105deg, rgba(226, 200, 134, 0.85), var(--color-accent-300));
}
.js .fnl-out { opacity: 0; transition: opacity 0.8s ease 1.1s; }
.js .fnl-out.is-in { opacity: 1; }
.fnl-out--line {
  position: absolute;
  left: 50%;
  top: 294px;
  width: 1px;
  height: 66px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--color-accent-300), transparent);
}
.fnl-out--dot {
  position: absolute;
  left: 50%;
  top: 356px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--color-accent-300);
  box-shadow: 0 0 22px rgba(201, 162, 74, 0.85);
}

.fcard {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: rgba(243, 236, 228, 0.03);
  box-shadow: var(--shadow-sm);
  transition: transform 0.55s var(--ease), background 0.35s ease, border-color 0.35s ease;
}
.fcard:hover {
  transform: translateX(-14px);
  background: rgba(243, 236, 228, 0.06);
  border-color: rgba(201, 162, 74, 0.45);
}
.fcard:hover .fcard__icon { transform: scale(1.12) rotate(-6deg); }
.fcard:hover .fcard__num { color: var(--color-accent); }
.fcard__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-accent);
  background: rgba(201, 162, 74, 0.12);
  box-shadow: 0 0 20px rgba(201, 162, 74, 0.25), inset 0 0 12px rgba(201, 162, 74, 0.12);
  color: var(--color-accent-300);
  transition: transform 0.4s ease;
}
.fcard__icon svg { width: 24px; height: 24px; }
.fcard__icon--2 {
  border-color: var(--color-accent-2-400);
  background: rgba(163, 22, 44, 0.16);
  box-shadow: 0 0 20px rgba(163, 22, 44, 0.22), inset 0 0 12px rgba(163, 22, 44, 0.12);
  color: var(--color-accent-2-300);
}
.fcard__icon--3 {
  border-color: var(--color-neutral-400);
  background: rgba(176, 154, 146, 0.1);
  box-shadow: 0 0 20px rgba(176, 154, 146, 0.16), inset 0 0 12px rgba(176, 154, 146, 0.1);
  color: var(--color-neutral-300);
}
.fcard__body { flex: 1; }
.fcard__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.fcard__head h3 { margin-bottom: 8px; font-size: 19px; }
.fcard__num {
  margin-left: auto;
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-neutral-500);
  transition: color 0.4s ease;
}
.fcard p {
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-neutral-400);
}

/* --- Cita ----------------------------------------------------------------- */
.quote-section { padding: 120px 0; background: var(--color-section); }
.quote-section__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: drift 20s ease-in-out infinite;
  background: radial-gradient(ellipse 700px 400px at 75% 20%, rgba(201, 162, 74, 0.2), transparent 65%);
}
.quote-section__wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.quote {
  margin: 0;
  padding-left: 28px;
  border-left: 2px solid var(--color-accent-300);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.2;
}
.quote-section__note {
  max-width: 56ch;
  margin-top: 26px;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-neutral-200);
}

/* --- Para quién ----------------------------------------------------------- */
.fit__title { margin-bottom: 48px; font-size: clamp(28px, 3.4vw, 42px); }
.fit__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}
.fit__col h3 { margin-bottom: 18px; font-size: 19px; }
.fit__item {
  position: relative;
  padding: 16px 0 16px 22px;
  border-top: 1px solid var(--color-divider);
  font-size: 14.5px;
  color: var(--color-neutral-400);
}
.fit__item:last-child { border-bottom: 1px solid var(--color-divider); }
.fit__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}
.fit__col--no .fit__item::before {
  background: transparent;
  border: 1px solid var(--color-accent);
}

/* --- Preguntas frecuentes -------------------------------------------------- */
.faq__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
  gap: 64px;
}
.faq__head { position: sticky; top: 112px; }
.faq__title { margin-bottom: 16px; font-size: clamp(28px, 3.4vw, 42px); }
.faq__lead {
  max-width: 32ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--color-neutral-400);
}
.faq__list { display: flex; flex-direction: column; }

.faq__item { border-top: 1px solid var(--color-divider); }
.faq__item:last-child { border-bottom: 1px solid var(--color-divider); }

.faq__q {
  position: relative;
  padding: 22px 44px 22px 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.4;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--color-accent-300); }
.faq__q:focus-visible { outline-offset: -2px; }

/* Cruz que gira hasta volverse un signo + al cerrarse */
.faq__q::after,
.faq__q::before {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 13px;
  height: 1.5px;
  background: var(--color-accent);
  transition: transform 0.3s var(--ease);
}
.faq__q::before { transform: translateY(-50%) rotate(90deg); }
.faq__q::after { transform: translateY(-50%); }
.faq__item[open] .faq__q::before { transform: translateY(-50%) rotate(0deg); }

.faq__a {
  padding: 0 44px 24px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-neutral-400);
  max-width: 62ch;
}

@media (max-width: 760px) {
  .faq__grid { gap: 32px; }
  .faq__head { position: static; }
  .faq__q { padding-right: 36px; font-size: 16px; }
  .faq__a { padding-right: 0; }
}

/* --- Sobre mí ------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 56px;
}
.about__portrait {
  position: relative;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--color-accent-800), var(--color-bg));
  will-change: transform;
}
.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}
.about__portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(20, 7, 10, 0.55), transparent 55%);
}
.about__title { margin-bottom: 18px; font-size: clamp(26px, 3vw, 38px); }
.about p {
  max-width: 52ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--color-neutral-400);
}
.about p + p { margin-top: 16px; }
.about__link {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  color: var(--color-accent);
}

/* --- Contacto ------------------------------------------------------------- */
.contact { padding: 120px 0; background: var(--color-bg); }
.contact__glow {
  width: 720px;
  height: 480px;
  transform: translate3d(20vw, 60px, 0);
  background: radial-gradient(ellipse at center, rgba(201, 162, 74, 0.18), transparent 62%);
}
.contact__wrap { position: relative; }
.contact__title {
  max-width: 16ch;
  font-size: clamp(30px, 5.2vw, 56px);
  line-height: 1.1;
}
.contact__lead {
  max-width: 48ch;
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--color-neutral-300);
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-divider);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.site-footer__links { display: flex; gap: 20px; }
.site-footer__links a {
  font-size: 13px;
  color: var(--color-neutral-400);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--color-accent-300); }
.site-footer__copy { font-size: 12px; color: var(--color-neutral-500); }

/* --- Página 404 ----------------------------------------------------------- */
.error__title { margin-top: 16px; }

/* --- Aviso de cookies ------------------------------------------------------ */
.cookies {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 24px;
  width: min(720px, calc(100vw - 40px));
  padding: 18px 22px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}
.cookies.is-visible {
  display: flex;
  opacity: 1;
  transform: translate(-50%, 0);
}
.cookies__texto {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-neutral-300);
}
.cookies__texto a { color: var(--color-accent); }
.cookies__acciones {
  display: flex;
  flex: none;
  gap: 10px;
}

@media (max-width: 640px) {
  .cookies {
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: calc(100vw - 24px);
    padding: 18px;
  }
  .cookies__acciones .btn { flex: 1; }
}

/* --- Páginas legales -------------------------------------------------------- */
.legal__wrap { max-width: 760px; margin-inline: auto; }
.legal__title { margin: 16px 0 18px; font-size: clamp(32px, 4.4vw, 46px); }
.legal__intro {
  margin-bottom: 44px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-neutral-300);
}
.legal h2 {
  margin: 40px 0 14px;
  font-size: 21px;
  color: var(--color-text);
}
.legal p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--color-neutral-400);
}
.legal p + p { margin-top: 14px; }
.legal__lista { margin: 14px 0 0; }
.legal__lista li {
  position: relative;
  padding: 10px 0 10px 20px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--color-neutral-400);
}
.legal__lista li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 19px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}
.legal__lista strong { color: var(--color-text); font-weight: 500; }
.legal__volver { margin-top: 52px; }

/* --- Animaciones de entrada ----------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-reveal-x] {
  opacity: 0;
  transform: translateX(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-reveal-x].is-in { opacity: 1; transform: none; }

.mask { display: block; overflow: hidden; }
.js .mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s cubic-bezier(0.16, 0.84, 0.26, 1);
}
.js .mask.is-in > span { transform: none; }

.js .growline {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease);
}
.js .growline.is-in { transform: scaleX(1); }

.draw {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw var(--dur, 1s) ease var(--delay, 0s) forwards;
}
.draw--1 { --len: 720; --dur: 1.1s; --delay: 0.2s; }
.draw--2 { --len: 420; --dur: 0.9s; --delay: 0.6s; }
.draw--3 { --len: 220; --dur: 0.8s; --delay: 0.95s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(40px, -30px, 0); }
}
@keyframes cueDrop {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(9px); opacity: 1; }
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; gap: 48px; }
  .scene { min-height: 380px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  html { scroll-padding-top: 76px; }

  .section,
  .section--tight,
  .section--wide,
  .section--hero,
  .quote-section,
  .contact { padding: 64px 0; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__link {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--color-divider);
  }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .nav-toggle { display: inline-flex; }

  .problem__claim,
  .method__head { position: static; }

  .hero__funnel { max-width: 260px; }
  .hero__grid { gap: 40px; }
  .scene { min-height: 320px; transform: none !important; }
  .scene__stack { transform: scale(0.82); transform-origin: top center; }
  .fcard:hover { transform: none; }
  .about__portrait { max-width: 100%; }
  .site-footer__inner { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track,
  .services__drift-a,
  .services__drift-b,
  .quote-section__glow,
  .scroll-cue span { animation: none !important; }
  .draw { animation: none !important; stroke-dashoffset: 0 !important; }
  [data-reveal],
  [data-reveal-x],
  .mask > span,
  .growline,
  .fnl,
  .fnl-out {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
  }
  .js .step[data-active='0'] { opacity: 1; }
}
