:root {
  /* Paleta brasa — colores definitivos de marca Finywell.
     Atardecer junto a una fogata: oscuro cálido + resplandor de brasa. */
  --night:      #2e1e15;  /* fondo — superficie brasa */
  --night-deep: #231711;  /* fondo más profundo */
  --ash:        #3e2a1c;  /* superficies elevadas */
  --ember:      #ff8c1a;  /* brasa viva — acento principal (detalles vivos) */
  --ember-strong:#e07a1a; /* naranja sobrio — superficies / glows grandes */
  --ember-deep: #c75416;  /* naranja quemado — acento profundo */
  --ember-soft: #ffb02e;  /* ámbar vivo */
  --gold:       #f5c469;  /* dorado cálido */
  --cream:      #f3e3d4;  /* texto principal */
  --cream-dim:  #c9b9a6;  /* texto secundario (derivado) */
  --cream-faint:#8c7a66;  /* texto terciario / captions (derivado) */
  --line:       rgba(245,196,105,0.14); /* hairlines cálidas (sobre --gold) */

  --maxw: 1080px;
  --display: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--body);
  background: var(--night);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

/* ---------- NAV ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,11,6,0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800; font-size: 1.4rem; letter-spacing: -0.01em;
  color: var(--cream); text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
/* glifo de brasa del wordmark (provisional, sin la ilustración) */
.wordmark .spark {
  width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold), var(--ember) 60%, var(--ember-deep) 100%);
  box-shadow: 0 0 14px 2px rgba(255,140,26,0.55);
}
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 0.95rem; }
.nav-links a { color: var(--cream-dim); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--cream); }
.nav-links a.nav-cta {
  color: var(--night); background: var(--ember-soft);
  padding: 8px 18px; border-radius: 999px; font-weight: 700;
}
.nav-links a.nav-cta:hover { background: var(--gold); color: var(--night); }
@media (max-width: 640px) { .nav-links .nav-hide { display: none; } }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 120px 0 100px; text-align: center; isolation: isolate; }
/* SIGNATURE: resplandor de brasa que emana desde el centro */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(224,122,26,0.13), transparent 72%),
    radial-gradient(ellipse 40% 35% at 50% 42%, rgba(245,196,105,0.09), transparent 68%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: var(--night);
  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 42%, transparent 20%, black 75%);
          mask: radial-gradient(ellipse 70% 60% at 50% 42%, transparent 20%, black 75%);
}

/* el "corazón" de brasa palpitante detrás del título */
.ember-core {
  position: absolute; top: 38%; left: 50%; z-index: -1;
  width: 280px; height: 280px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,176,46,0.20), rgba(224,122,26,0.07) 45%, transparent 70%);
  filter: blur(8px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.55; }
  50%      { transform: translate(-50%, -50%) scale(1.08); opacity: 0.75; }
}

.eyebrow {
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05; letter-spacing: -0.02em;
  max-width: 14ch; margin: 0 auto 24px;
}
.hero h1 .glow { color: var(--ember-soft); }
.hero .sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--cream-dim); max-width: 38ch; margin: 0 auto 40px;
}
.hero-cta {
  display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--ember-soft), var(--ember));
  color: var(--night-deep);
  box-shadow: 0 10px 30px -8px rgba(255,140,26,0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(255,140,26,0.6); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-note { margin-top: 22px; font-size: 0.85rem; color: var(--cream-faint); }
.hero .hero-note { margin: 0 0 30px; }

/* ---------- MANIFESTO STRIP ---------- */
.manifesto { padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto p {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.35;
  text-align: center; max-width: 20ch; margin: 0 auto;
  color: var(--cream);
}
.manifesto .accent { color: var(--ember-soft); font-style: italic; }

/* ---------- SECTION SHELL ---------- */
section.block { padding: 96px 0; }
#features { border-top: 1px solid var(--line); }
.section-eyebrow {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 18px;
}
.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.12;
  letter-spacing: -0.015em; max-width: 18ch; margin-bottom: 20px;
}
.section-lead { font-size: 1.1rem; color: var(--cream-dim); max-width: 52ch; }

/* ---------- PILLARS ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: linear-gradient(180deg, var(--ash), var(--night-deep));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 34px 30px; position: relative; overflow: hidden;
}
.pillar::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,122,26,0.14), transparent 70%);
}
.pillar .icon { color: var(--ember-soft); margin-bottom: 16px; line-height: 0; }
.pillar .icon svg, .feature .fi svg { width: 26px; height: 26px; }
.pillar h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 10px; color: var(--cream);
}
.pillar p { color: var(--cream-dim); font-size: 0.98rem; }

/* ---------- EMBER SECTION ---------- */
.ember-section { padding: 96px 0; border-top: 1px solid var(--line); }
.ember-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .ember-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Ilustración real de Ember (Dibujantis). PNG con transparencia. */
.ember-illustration {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
}
.ember-copy h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem); line-height: 1.14;
  letter-spacing: -0.015em; margin-bottom: 22px;
}
.ember-copy p { color: var(--cream-dim); font-size: 1.08rem; margin-bottom: 18px; }
.ember-copy p:last-child { margin-bottom: 0; }
.ember-copy .name { color: var(--ember-soft); font-weight: 700; }

/* ---------- FEATURES ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 52px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }
.feature {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 26px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(46,30,21,0.4);
}
.feature .fi { color: var(--ember-soft); flex-shrink: 0; line-height: 0; }
.feature h4 { font-family: var(--display); font-weight: 700; font-size: 1.12rem; margin-bottom: 6px; }
.feature p { color: var(--cream-dim); font-size: 0.95rem; }

/* ---------- CLOSING CTA ---------- */
.closing { padding: 110px 0; text-align: center; position: relative; isolation: isolate; border-top: 1px solid var(--line); }
.closing::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(224,122,26,0.16), transparent 70%);
}
.closing h2 {
  font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15;
  letter-spacing: -0.02em; max-width: 18ch; margin: 0 auto 32px;
}
.closing .accent { color: var(--ember-soft); }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
.footer-brand { max-width: 30ch; }
.footer-brand .wordmark { margin-bottom: 14px; }
.footer-brand p { color: var(--cream-faint); font-size: 0.92rem; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-faint); margin-bottom: 14px; font-weight: 700;
}
.footer-col a { display: block; color: var(--cream-dim); text-decoration: none; font-size: 0.95rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--ember-soft); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: var(--cream-faint);
}

/* ---------- LEGAL PAGES ---------- */
.legal { padding: 80px 0 100px; }
.legal h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem,5vw,3rem);
  margin-bottom: 8px; letter-spacing: -0.02em;
}
.legal .updated { color: var(--cream-faint); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  margin: 36px 0 12px; color: var(--cream);
}
.legal p, .legal li { color: var(--cream-dim); margin-bottom: 14px; font-size: 1rem; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal a.inline { color: var(--ember-soft); }
.legal .back { display: inline-block; margin-bottom: 30px; color: var(--gold); text-decoration: none; font-size: 0.95rem; }
.legal .back:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--ember-soft); outline-offset: 3px; border-radius: 4px; }
