/* =========================================================
   DESIGN TOKENS — tema oscuro elegante
   ========================================================= */
:root {
  /* Color */
  --bg: #0C1210;
  --bg-alt: #101916;
  --surface: #141F1B;
  --surface-2: #182620;
  --border: #24332C;
  --border-soft: #1C2A24;

  --text: #EDE8DC;
  --muted: #98A69D;

  --gold: #C9A15A;
  --gold-bright: #E0BE7E;
  --gold-dim: #6E5A34;
  --green: #6FA08F;

  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  /* Typography */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.65);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.18s;
  --dur-med: 0.4s;
  --dur-slow: 0.8s;

  --header-h: 76px;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
::selection { background: var(--gold); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--bg); padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

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

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.icon--sm { width: 17px; height: 17px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.6rem;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn:active { transform: translateY(1px); }

.btn--whatsapp {
  background: var(--whatsapp); color: #06130A;
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.4), 0 8px 30px -10px rgba(37, 211, 102, 0.5);
}
.btn--whatsapp:hover { background: var(--whatsapp-dark); color: #fff; transform: translateY(-2px); }

.btn--ghost { color: var(--text); }
.btn--ghost:hover { color: var(--gold-bright); }

.btn--outline {
  border: 1.5px solid var(--gold); color: var(--gold-bright);
}
.btn--outline:hover { background: var(--gold); color: var(--bg); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(12, 18, 16, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease), height var(--dur-med) var(--ease);
}
.header.is-scrolled { border-color: var(--border-soft); height: 64px; }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }

.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--gold-dim); background: #000; flex-shrink: 0;
  display: block;
}
.brand__mark--sm { width: 34px; height: 34px; }
.brand__logo { width: 100%; height: 100%; object-fit: cover; }
.brand__text {
  font-family: var(--font-display); font-size: 0.98rem; line-height: 1.18;
  color: var(--text); display: flex; flex-direction: column; white-space: nowrap;
}
.brand__text strong { font-weight: 700; color: var(--gold-bright); }

.nav__list { display: flex; align-items: center; gap: var(--space-6); }
.nav__list a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  position: relative; padding-block: var(--space-1);
  transition: color var(--dur-fast) var(--ease);
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--gold); transition: right var(--dur-med) var(--ease);
}
.nav__list a:hover { color: var(--text); }
.nav__list a:hover::after, .nav__list a.is-active::after { right: 0; }
.nav__list a.is-active { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: var(--space-4); }

.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin-inline: auto; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height var(--dur-med) var(--ease);
  }
  .nav.is-open { max-height: 440px; box-shadow: var(--shadow-lg); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 0; padding: var(--space-4) var(--space-5) var(--space-6); }
  .nav__list li { width: 100%; border-bottom: 1px solid var(--border-soft); }
  .nav__list a { display: block; padding-block: var(--space-4); }
  .header__actions .btn--whatsapp span { display: none; }
  .header__actions .btn--whatsapp { padding: 0.6rem; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  padding-block: calc(var(--header-h) + var(--space-8)) var(--space-8);
  min-height: 92vh;
  display: flex; align-items: center;
}
.hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(560px 420px at 78% 42%, rgba(201, 161, 90, 0.10), transparent 65%),
    radial-gradient(700px 500px at 12% 90%, rgba(111, 160, 143, 0.07), transparent 65%);
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7);
  align-items: center; width: 100%;
}

.eyebrow {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--space-4);
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: var(--space-5);
}
.hero__title em {
  font-style: italic; font-weight: 500; color: var(--gold-bright);
}

.hero__subtitle {
  font-size: 1.06rem; color: var(--muted); max-width: 48ch;
  margin-bottom: var(--space-6);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-7); }

.hero__badges { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.hero__badges li { display: flex; align-items: center; gap: var(--space-2); font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.hero__badges .icon { color: var(--gold); }

/* ---------- Cerebro interactivo ---------- */
.hero__visual { position: relative; }
.brain-stage {
  position: relative;
  aspect-ratio: 10 / 9;
  max-width: 560px;
  margin-inline: auto;
  cursor: crosshair;
  touch-action: pan-y;
}
#brainCanvas { width: 100%; height: 100%; display: block; }

.brain-words { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.brain-word {
  position: absolute;
  font-family: var(--font-display); font-style: italic;
  color: var(--gold-bright);
  font-size: 0.95rem;
  white-space: nowrap;
  opacity: 0;
  animation: word-rise 3.6s var(--ease) forwards;
  text-shadow: 0 0 18px rgba(201, 161, 90, 0.35);
}
@keyframes word-rise {
  0%   { opacity: 0; transform: translateY(0) scale(0.92); }
  18%  { opacity: 0.95; }
  70%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-110px) scale(1.05); }
}

.brain-hint {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: var(--space-2);
  white-space: nowrap;
  transition: opacity var(--dur-slow) var(--ease);
}
.brain-hint span { color: var(--gold); }
.brain-hint.is-hidden { opacity: 0; }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero__visual { order: -1; }
  .brain-stage { max-width: 400px; }
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust { background: var(--bg-alt); border-block: 1px solid var(--border-soft); padding-block: var(--space-6); }
.trust__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-5); }
.trust__item { display: flex; align-items: center; gap: var(--space-3); color: var(--text); font-size: 0.9rem; font-weight: 500; flex: 1 1 200px; }
.trust__item .icon { color: var(--gold); }

/* =========================================================
   SECTION LAYOUT
   ========================================================= */
.section { padding-block: var(--space-9); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border-soft); }

.section__head { max-width: 640px; margin-bottom: var(--space-8); }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: var(--space-4); }
.section__lead { color: var(--muted); font-size: 1.02rem; }
.section__cta { display: flex; justify-content: center; margin-top: var(--space-8); }

/* =========================================================
   SERVICE CARDS
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 1060px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  display: flex; flex-direction: column;
  transition: transform var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease), background-color var(--dur-med) var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--gold-dim); background: var(--surface-2); }
.card--featured { border-color: var(--gold-dim); }
.card--featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(300px 160px at 80% 0%, rgba(201, 161, 90, 0.12), transparent 70%);
}

.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); }

.card__icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--bg); border: 1px solid var(--border);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.card__icon svg { width: 26px; height: 26px; }

.chip {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green); border: 1px solid rgba(111, 160, 143, 0.35);
  padding: 0.28rem 0.6rem; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.chip--gold { color: var(--gold-bright); border-color: rgba(201, 161, 90, 0.4); }

.card h3 { font-size: 1.15rem; margin-bottom: var(--space-3); }
.card p { color: var(--muted); font-size: 0.93rem; flex-grow: 1; margin-bottom: var(--space-5); }

.card__link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 0.88rem; font-weight: 600; color: var(--gold-bright);
}
.card__link .icon { transition: transform var(--dur-fast) var(--ease); }
.card__link:hover { color: var(--gold); }
.card__link:hover .icon { transform: translateX(4px); }

/* =========================================================
   STEPS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.steps__item { position: relative; padding-top: var(--space-6); border-top: 1px solid var(--border); }
.steps__num { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); font-weight: 600; display: block; margin-bottom: var(--space-3); }
.steps__item h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.steps__item p { color: var(--muted); font-size: 0.92rem; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-9); align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: var(--space-7); } }

.about__copy h2 { margin-bottom: var(--space-5); }
.about__copy p { color: var(--muted); margin-bottom: var(--space-4); }

.checklist { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.checklist li { display: flex; align-items: center; gap: var(--space-3); font-weight: 500; color: var(--text); }
.checklist .icon { color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }

.about-frame {
  aspect-ratio: 1; max-width: 330px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-7);
}

/* =========================================================
   INSTAGRAM
   ========================================================= */
.instagram { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
@media (max-width: 900px) { .instagram { grid-template-columns: 1fr; } }
.instagram h2 { margin-bottom: var(--space-4); }
.instagram .section__lead { margin-bottom: var(--space-6); }

.instagram__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.instagram__grid span {
  aspect-ratio: 1; border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(150deg, var(--surface-2), var(--bg));
}
.instagram__grid span:nth-child(2n) { background: linear-gradient(150deg, rgba(201, 161, 90, 0.22), var(--surface)); }
.instagram__grid span:nth-child(3n) { background: linear-gradient(150deg, rgba(111, 160, 143, 0.18), var(--surface)); }

/* =========================================================
   FAQ / ACCORDION
   ========================================================= */
.accordion { max-width: 780px; border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  text-align: left; padding-block: var(--space-5);
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text);
  transition: color var(--dur-fast) var(--ease);
}
.accordion__trigger:hover { color: var(--gold-bright); }
.accordion__chevron { color: var(--gold); transition: transform var(--dur-med) var(--ease); }
.accordion__trigger[aria-expanded="true"] .accordion__chevron { transform: rotate(180deg); }

.accordion__panel {
  max-height: 0; overflow: hidden; transition: max-height var(--dur-med) var(--ease);
}
.accordion__panel p { padding-bottom: var(--space-5); color: var(--muted); max-width: 62ch; }

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta-final { padding-block: var(--space-9); }
.cta-final__panel {
  position: relative; overflow: hidden;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-5);
}
.cta-final__panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px 260px at 50% 0%, rgba(201, 161, 90, 0.14), transparent 70%);
}
.cta-final h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 22ch; }
.cta-final p { color: var(--muted); font-size: 1.05rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--border-soft); background: var(--bg-alt); padding-block: var(--space-7); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); }
.brand--footer { flex: 1 1 220px; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-5); font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.footer__links a:hover { color: var(--gold-bright); }
.footer__note { flex-basis: 100%; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--border-soft); padding-top: var(--space-5); margin-top: var(--space-2); }
.footer__copy { font-size: 0.78rem; color: var(--muted); }

/* =========================================================
   WHATSAPP FLOATING BUTTON
   ========================================================= */
.wa-float {
  position: fixed; bottom: var(--space-5); right: var(--space-5); z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #06130A;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-fast) var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #06130A; position: relative; z-index: 1; }
.wa-float__pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--whatsapp); opacity: 0.5;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .wa-float__pulse, .brain-word { animation: none; }
}
