:root {
  --bg: #0b0a0c;
  --bg-soft: #131117;
  --line: rgba(255, 255, 255, 0.09);
  --txt: #f4f1ee;
  --muted: #a49fa8;
  --ember: #ff6a3d;
  --gold: #ffc46b;
  --rose: #ff3d77;
  --radius: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; color: var(--muted); }

a { color: inherit; text-decoration: none; }

/* ---------- ambient ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.5;
}

.glow-1 {
  width: 46vw; height: 46vw;
  top: -14vw; right: -10vw;
  background: radial-gradient(circle, var(--ember), transparent 68%);
}

.glow-2 {
  width: 40vw; height: 40vw;
  bottom: 8vh; left: -14vw;
  background: radial-gradient(circle, var(--rose), transparent 70%);
  opacity: 0.28;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11, 10, 12, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-logo {
  width: auto;
  height: 42px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(255, 106, 61, 0.35));
}
.brand-footer .brand-logo { height: 64px; }
.brand-text {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-text em {
  font-style: italic;
  /* padding + margin evitan que la cursiva recorte la "e" final del degradado */
  padding-right: 0.14em;
  margin-right: -0.14em;
  background: linear-gradient(100deg, var(--gold), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links { display: flex; gap: 1.6rem; font-size: 0.9rem; color: var(--muted); }
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--ember);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--txt); }
.nav-links a:hover::after { width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #14100e;
  background: linear-gradient(100deg, var(--gold), var(--ember));
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s;
  box-shadow: 0 10px 30px -12px rgba(255, 106, 61, 0.7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(255, 106, 61, 0.85); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-ghost {
  background: transparent;
  color: var(--txt);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.04); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 8rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vh, 5rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.grad {
  background: linear-gradient(100deg, var(--gold), var(--ember) 45%, var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.lead strong { color: var(--txt); font-weight: 500; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 3.5rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats b {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  font-weight: 500;
}
.hero-stats span { font-size: 0.85rem; color: var(--muted); }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 0.9rem 0;
  background: rgba(255, 255, 255, 0.015);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 42s linear infinite;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-group {
  display: flex;
  gap: 1.4rem;
  padding-right: 1.4rem; /* iguala el gap en la unión de los grupos */
  flex: 0 0 auto;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 11vh, 7rem) clamp(1rem, 4vw, 2.5rem);
}

.section-head { max-width: 60ch; margin-bottom: 3rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.card {
  padding: 2rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255, 196, 107, 0.35); }
.card .num {
  font-family: "Fraunces", serif;
  font-size: 0.9rem;
  color: var(--ember);
  letter-spacing: 0.1em;
}
.card p { margin: 0; font-size: 0.95rem; }

/* ---------- split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.checks { list-style: none; padding: 0; margin: 0 0 2rem; }
.checks li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(100deg, var(--gold), var(--ember));
}

.panel {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(8px);
}
.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.1rem;
}
.panel-row b { color: var(--txt); font-family: "Fraunces", serif; font-weight: 500; }
.bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-top: 0.5rem;
}
.bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--ember));
}
.panel-foot { margin: 1.6rem 0 0; font-size: 0.75rem; letter-spacing: 0.06em; }

/* ---------- quotes ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}
.quote {
  margin: 0;
  padding: 2rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.quote blockquote {
  margin: 0 0 1.2rem;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  line-height: 1.4;
}
.quote figcaption { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* ---------- faq ---------- */
.faq { max-width: 780px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ember); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0.8rem 0 0; font-size: 0.95rem; }

/* ---------- cta ---------- */
.cta { padding: clamp(3rem, 9vh, 6rem) clamp(1rem, 4vw, 2.5rem); }
.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255, 106, 61, 0.18), transparent 60%),
    rgba(255, 255, 255, 0.02);
}
.cta-inner .cta-row { justify-content: center; }
.cta-inner p { max-width: 46ch; margin-inline: auto; }

.fineprint {
  margin-top: 2rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1rem, 4vw, 2.5rem);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}
.footer p { margin: 0; font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; font-size: 0.85rem; color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.footer-address {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 52ch;
}
.footer small { color: rgba(164, 159, 168, 0.65); font-size: 0.75rem; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .nav .brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
