/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --navy-950: #071325;
  --navy-900: #0b1f3a;
  --navy-800: #12294b;
  --ink-900:  #142033;
  --slate-600:#5c6676;
  --ivory-100:#f7f5f0;
  --ivory-200:#ede9de;
  --gold-500: #c8a86b;
  --gold-400: #d6ba83;
  --white:    #ffffff;

  --line-soft: rgba(20,32,51,.14);
  --line-dark: rgba(247,245,240,.16);

  --font-title: "Cormorant Garamond", Georgia, serif;
  --font-body:  "Inter", "Segoe UI", Arial, sans-serif;

  --container:    min(1160px, 92vw);
  --section-space:clamp(4rem, 8vw, 7rem);
  --radius-lg: 22px;
  --radius-md: 16px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

body {
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 10% 80%, rgba(200,168,107,.10), transparent 35%),
    var(--ivory-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -1000px; top: -1000px;
  background: var(--navy-900);
  color: var(--ivory-100);
  padding: .7rem 1rem;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ── HEADER / NAV ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--ivory-100) 88%, transparent);
  border-bottom: 1px solid var(--line-soft);
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--navy-900);
}

.brand-mark {
  width: 34px;
  color: var(--gold-500);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-title);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: .012em;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-soft);
  background: var(--white);
  color: var(--ink-900);
  border-radius: 999px;
  font-weight: 600;
  font-size: .84rem;
  padding: .45rem .85rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  font-size: .83rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink-900) 76%, var(--white));
  position: relative;
  transition: color .22s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -.25rem;
  width: 0; height: 1px;
  background: var(--gold-500);
  transition: width .25s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--ink-900); }
.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after { width: 100%; }

.nav-cta {
  border-radius: 999px;
  border: 1px solid var(--navy-900);
  background: var(--navy-900);
  color: var(--ivory-100) !important;
  padding: .62rem .95rem;
}
.nav-cta::after { display: none; }

/* ── SECTIONS BASE ───────────────────────────────────────── */
.section { padding-block: var(--section-space); position: relative; }

.eyebrow {
  display: block;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5.2vw, 3.9rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.01em;
  max-width: 18ch;
}

.section-sub {
  margin-top: 1rem;
  max-width: 76ch;
  color: color-mix(in srgb, var(--ink-900) 77%, var(--white));
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

/* ── 1. HERO ─────────────────────────────────────────────── */
.hero {
  overflow: clip;
  padding-top: clamp(4.2rem, 9vw, 7.2rem);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: min(48vw, 640px); height: min(48vw, 640px);
  left: -12%; top: 44%;
  background: radial-gradient(circle, rgba(200,168,107,.18), transparent 64%);
  filter: blur(2px);
  animation: slowFloat 12s ease-in-out infinite;
}

.hero::after {
  width: min(42vw, 560px); height: min(42vw, 560px);
  right: -11%; top: -6%;
  background: radial-gradient(circle, rgba(18,41,75,.12), transparent 70%);
  filter: blur(2px);
  animation: slowFloat 16s ease-in-out infinite reverse;
}

.hero-content { max-width: 880px; }

.hero-content h1 {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 7.4vw, 5.6rem);
  font-weight: 600;
  line-height: .97;
  letter-spacing: -.015em;
  color: var(--navy-900);
  text-wrap: balance;
  margin-top: .25rem;
}

.hero-lead {
  margin-top: 1.2rem;
  max-width: 66ch;
  color: color-mix(in srgb, var(--ink-900) 78%, var(--white));
  font-size: clamp(1.03rem, 1.4vw, 1.18rem);
}

.hero-actions {
  margin-top: 1.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: .72rem;
}

.hero-points {
  margin-top: 1.45rem;
  list-style: none;
  display: grid;
  gap: .45rem;
}

.hero-points li {
  position: relative;
  padding-left: 1rem;
  color: color-mix(in srgb, var(--ink-900) 80%, var(--white));
  font-size: .95rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .68rem 1.25rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .24s ease, box-shadow .24s ease, color .24s ease, background .24s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-solid {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--ivory-100);
  box-shadow: 0 9px 20px rgba(11,31,58,.16);
}
.btn-solid:hover { box-shadow: 0 15px 24px rgba(11,31,58,.24); }

.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--navy-900) 70%, var(--white));
  color: var(--navy-900);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--gold-500) 15%, transparent);
}

/* ── 2. MANIFESTO ────────────────────────────────────────── */
.manifesto {
  background: var(--ivory-200);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.manifesto-quote {
  font-family: var(--font-title);
  font-size: clamp(1.65rem, 3.5vw, 2.8rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: var(--navy-900);
  max-width: 820px;
  margin-bottom: 1.5rem;
  quotes: "\201C" "\201D";
}

.manifesto-rule {
  width: 2.5rem;
  height: 2px;
  background: var(--gold-500);
  margin-bottom: 1.5rem;
}

.manifesto-body {
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  color: var(--slate-600);
  max-width: 56ch;
  line-height: 1.8;
}

/* ── 3. PROBLEMA ─────────────────────────────────────────── */
.section-dark {
  background:
    radial-gradient(circle at 18% 15%, rgba(35,79,146,.35), transparent 45%),
    radial-gradient(circle at 84% 85%, rgba(17,41,82,.44), transparent 38%),
    linear-gradient(125deg, var(--navy-950), var(--navy-900) 58%, var(--navy-950));
  color: #eef1f8;
}

.section-dark .section-title { color: var(--ivory-100); }
.section-dark .eyebrow       { color: var(--gold-400); }

.problem-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.problem-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.05);
  padding: 1.5rem 1.25rem;
}

.problem-card h3 {
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 600;
  margin-bottom: .65rem;
}

.problem-card ul { list-style: none; display: grid; gap: .5rem; }

.problem-card li {
  position: relative;
  padding-left: 1rem;
  color: color-mix(in srgb, var(--ivory-100) 85%, #72809d);
  font-size: .95rem;
}

.problem-card li::before {
  content: "";
  position: absolute;
  left: 0; top: .63em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-400);
}

.problem-card.highlight {
  background: linear-gradient(160deg, rgba(200,168,107,.18), rgba(255,255,255,.04));
  border-color: rgba(200,168,107,.3);
}

/* ── 4. DIAGNÓSTICO ──────────────────────────────────────── */
.diagnostic-layout {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}

.card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.75);
  padding: 1.4rem 1.25rem;
}

.card h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--navy-900);
  margin-bottom: .75rem;
  padding-bottom: .65rem;
  border-bottom: 1.5px solid var(--gold-500);
}

.card ul  { list-style: none; display: grid; gap: .5rem; }

.card li {
  position: relative;
  padding-left: 1rem;
  color: color-mix(in srgb, var(--ink-900) 80%, var(--white));
  font-size: .92rem;
  line-height: 1.55;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* ── 5. PILARES ──────────────────────────────────────────── */
.section-soft {
  background: linear-gradient(180deg, rgba(11,31,58,.03), transparent 50%);
}

.pillars-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}

.pillar-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 1.4rem 1.25rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.pillar-card:hover {
  border-color: rgba(200,168,107,.45);
  box-shadow: 0 8px 24px rgba(11,31,58,.07);
}

.pillar-card h3 {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 600;
  color: var(--gold-500);
  margin-bottom: .15rem;
}

.pillar-card h4 {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.06;
  color: var(--navy-900);
}

.pillar-card p {
  margin-top: .55rem;
  color: color-mix(in srgb, var(--ink-900) 79%, var(--white));
  font-size: .93rem;
  line-height: 1.6;
}

/* ── 6. JORNADA ──────────────────────────────────────────── */
.journey {
  margin-top: 2rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  counter-reset: journey;
}

.journey li {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: var(--white);
  padding: 1.1rem 1rem;
  counter-increment: journey;
}

.journey span {
  display: inline-block;
  font-family: var(--font-title);
  color: var(--navy-900);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
}

.journey span::before {
  content: "0" counter(journey) ". ";
  color: var(--gold-500);
}

.journey p {
  margin-top: .35rem;
  color: color-mix(in srgb, var(--ink-900) 78%, var(--white));
  font-size: .92rem;
  line-height: 1.6;
}

/* ── 7. ICP ──────────────────────────────────────────────── */
.icp-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .9rem;
}

.icp-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.06);
  padding: 1.1rem 1rem;
}

.icp-card h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ivory-100);
  margin-bottom: .4rem;
}

.icp-card p {
  color: color-mix(in srgb, var(--ivory-100) 82%, #7a88a4);
  font-size: .9rem;
  line-height: 1.6;
}

/* ── 8. FAQ ──────────────────────────────────────────────── */
.faq-list { margin-top: 2rem; display: grid; gap: .75rem; }

.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--white);
  overflow: clip;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-size: .97rem;
  font-weight: 600;
  color: var(--navy-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-body);
}

.faq-question::after {
  content: "+";
  font-size: 1.15rem;
  color: var(--gold-500);
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"]::after { content: "−"; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-answer p {
  padding: 0 1.1rem 1.1rem;
  color: color-mix(in srgb, var(--ink-900) 80%, var(--white));
  font-size: .95rem;
  line-height: 1.7;
}

/* ── 9. CTA ──────────────────────────────────────────────── */
.cta { padding-top: clamp(2.5rem, 5vw, 4rem); }

.cta-panel {
  border: 1px solid color-mix(in srgb, var(--gold-500) 45%, #fff);
  border-radius: 26px;
  padding: clamp(1.6rem, 4vw, 2.75rem);
  background:
    radial-gradient(circle at 92% 14%, rgba(200,168,107,.22), transparent 32%),
    linear-gradient(145deg, #fbf8f1, #f0ebe0);
}

.cta-panel h2 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  font-weight: 600;
  line-height: 1.06;
  color: var(--navy-900);
  max-width: 20ch;
  margin-top: .5rem;
}

.cta-panel p {
  margin-top: .75rem;
  color: color-mix(in srgb, var(--ink-900) 79%, var(--white));
  max-width: 64ch;
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
}

.cta-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.25rem;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: color-mix(in srgb, var(--ink-900) 68%, var(--white));
  font-size: .82rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.footer-link {
  font-size: .82rem;
  font-weight: 600;
  transition: color .22s ease;
}
.footer-link:hover { color: var(--gold-500); }

/* ── REVEAL ANIMATION ────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .72s ease, transform .72s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .icp-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .journey  { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 4vw; right: 4vw; top: 84px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: color-mix(in srgb, var(--ivory-100) 97%, white);
    box-shadow: 0 15px 28px rgba(11,31,58,.12);
  }
  .site-nav.open { display: flex; }

  .nav-cta { width: 100%; justify-content: center; text-align: center; }

  .problem-grid,
  .diagnostic-layout,
  .pillars-grid,
  .journey,
  .icp-grid { grid-template-columns: 1fr; }

  .footer-shell { flex-direction: column; align-items: flex-start; }
}

/* ── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── KEYFRAMES ───────────────────────────────────────────── */
@keyframes slowFloat {
  0%   { transform: translateY(0)   translateX(0); }
  50%  { transform: translateY(-12px) translateX(7px); }
  100% { transform: translateY(0)   translateX(0); }
}
