/* Zitalo — Programa de Fundadores (fundador.zitalo.app)
   Brand: ink navy + champagne gold (from the app's AppColors palette).
   Display: Fraunces. UI/body: Outfit. */

:root {
  --ink: #0f1d2f;
  --ink-deep: #0a1522;
  --ink-raised: #16273c;
  --champagne: #c8a96c;
  --champagne-bright: #e3c98f;
  --champagne-dark: #a98b4f;
  --paper: #faf8f5;
  --paper-shade: #f1ece3;
  --muted: #b8c0cc;
  --muted-deep: #7f8ea1;
  --ink-text: #1c2b3f;
  --hairline: rgba(200, 169, 108, 0.22);
  --shadow-phone: 0 24px 60px rgba(4, 10, 18, 0.55), 0 6px 18px rgba(4, 10, 18, 0.35);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--champagne); color: var(--ink-deep); }

img { max-width: 100%; display: block; }

a { color: inherit; }

.display {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 340;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.display em {
  font-style: italic;
  font-weight: 420;
  color: var(--champagne-bright);
}

.eyebrow {
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  padding: 22px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img { height: 30px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 4px;
  transition: color 0.2s;
}
.lang-switch:hover, .lang-switch:focus-visible { color: var(--champagne-bright); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 30px;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background-color 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer;
}

.btn:focus-visible { outline: 2px solid var(--champagne-bright); outline-offset: 3px; }

.btn-gold {
  background: linear-gradient(160deg, var(--champagne-bright), var(--champagne) 45%, var(--champagne-dark));
  color: var(--ink-deep);
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(200, 169, 108, 0.28), 0 2px 8px rgba(200, 169, 108, 0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(200, 169, 108, 0.38), 0 4px 12px rgba(200, 169, 108, 0.3); }
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--paper);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--champagne); color: var(--champagne-bright); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); }

.btn-small { padding: 10px 22px; font-size: 0.85rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(90rem 60rem at 82% -20%, rgba(200, 169, 108, 0.16), transparent 55%),
    radial-gradient(70rem 50rem at -10% 110%, rgba(44, 110, 158, 0.12), transparent 60%),
    linear-gradient(180deg, var(--ink-deep), var(--ink) 70%);
  overflow: hidden;
}

.hero::after {
  /* film grain so the big dark field doesn't read flat */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 48px;
  padding-top: 140px;
  padding-bottom: 110px;
  min-height: 92vh;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  margin: 18px 0 22px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 34px;
}

.hero-sub strong { color: var(--paper); font-weight: 500; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-note {
  margin-top: 22px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted-deep);
}

/* ---------- Phone frames ---------- */

.phone {
  position: relative;
  width: 100%;
  max-width: 310px;
  aspect-ratio: 390 / 800;
  border-radius: 46px;
  background: #0b1119;
  padding: 10px;
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(200, 169, 108, 0.35);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 37px;
}

.hero-phone {
  justify-self: center;
  transform: rotate(3.5deg);
}

/* ---------- Section scaffolding ---------- */

section { position: relative; }

.section-head { max-width: 620px; margin-bottom: 56px; }

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-top: 14px;
}

.section-head p { color: var(--muted); margin-top: 14px; }

/* ---------- La Carta del Fundador ---------- */

.carta-section {
  background:
    radial-gradient(60rem 40rem at 50% 0%, rgba(200, 169, 108, 0.1), transparent 60%),
    var(--paper);
  color: var(--ink-text);
  padding: 110px 0 120px;
}

.carta-section .section-head { margin: 0 auto 56px; text-align: center; }
.carta-section .section-head p { color: #5d6b7d; }
.carta-section .eyebrow { color: var(--champagne-dark); }

.carta {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(175deg, #fffdf9, var(--paper) 55%, var(--paper-shade));
  border: 1px solid rgba(169, 139, 79, 0.4);
  outline: 1px solid rgba(169, 139, 79, 0.14);
  outline-offset: 6px;
  border-radius: 6px;
  padding: clamp(34px, 6vw, 64px);
  box-shadow: 0 30px 70px rgba(31, 41, 55, 0.14), 0 6px 20px rgba(31, 41, 55, 0.08);
}

.carta-crest { display: flex; justify-content: center; margin-bottom: 10px; }
.carta-crest img { height: 54px; width: auto; }

.carta-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  margin-bottom: 6px;
}

.carta-kicker {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--champagne-dark);
  margin-bottom: 38px;
}

.clause { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; }

.clause + .clause { border-top: 1px solid rgba(169, 139, 79, 0.22); }

.clause-num {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--champagne-dark);
  line-height: 1;
  padding-top: 4px;
}

.clause h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.clause p { font-size: 0.98rem; line-height: 1.75; color: #46566a; }

.carta-seal {
  margin-top: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.seal-badge {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(169, 139, 79, 0.55);
  outline: 1px solid rgba(169, 139, 79, 0.25);
  outline-offset: 4px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #fffdf9, var(--paper-shade));
}

.seal-badge img { height: 38px; width: auto; }

.carta-sign { text-align: right; }

.carta-sign .sig {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
}

.carta-sign .sig-sub {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne-dark);
  margin-top: 4px;
}

.carta-cta { text-align: center; margin-top: 48px; }

/* ---------- Showcase ---------- */

.showcase { padding: 120px 0 40px; }

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
  padding: 48px 0;
}

.feature-row .phone { justify-self: center; }

.feature-row:nth-child(even) .feature-copy { order: -1; }

.feature-copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 12px 0 14px;
}

.feature-copy p { color: var(--muted); max-width: 26rem; }

.feature-points { list-style: none; margin-top: 20px; display: grid; gap: 10px; }

.feature-points li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-points li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--champagne);
  transform: translateY(-1px);
}

/* ---------- Steps ---------- */

.steps { padding: 100px 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 30px 28px;
  background: linear-gradient(170deg, var(--ink-raised), rgba(22, 39, 60, 0.35));
}

.step-num {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--champagne);
}

.step h3 { font-family: "Outfit", sans-serif; font-size: 1.05rem; font-weight: 600; margin: 12px 0 8px; }

.step p { color: var(--muted); font-size: 0.94rem; }

/* ---------- FAQ ---------- */

.faq { padding: 20px 0 110px; }

.faq .wrap { max-width: 760px; }

.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-of-type { border-bottom: 1px solid var(--hairline); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  font-weight: 500;
  font-size: 1.02rem;
  transition: color 0.2s;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--champagne);
  transition: transform 0.3s var(--ease-spring);
}

.faq details[open] summary { color: var(--champagne-bright); }
.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { padding: 0 4px 24px; color: var(--muted); max-width: 42rem; }

.faq summary:hover { color: var(--champagne-bright); }
.faq summary:focus-visible { outline: 2px solid var(--champagne-bright); outline-offset: 2px; border-radius: 4px; }

/* ---------- Final CTA ---------- */

.final-cta {
  background:
    radial-gradient(70rem 40rem at 50% 120%, rgba(200, 169, 108, 0.18), transparent 60%),
    var(--ink-deep);
  text-align: center;
  padding: 110px 0 100px;
}

.final-cta h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 22ch; margin: 16px auto 18px; }

.final-cta .hero-sub { margin: 0 auto 36px; }

.legal {
  max-width: 620px;
  margin: 46px auto 0;
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--muted-deep);
}

.legal a { color: var(--muted); text-underline-offset: 3px; }
.legal a:hover { color: var(--champagne-bright); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid rgba(200, 169, 108, 0.12); padding: 34px 0; background: var(--ink-deep); }

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 22px; width: auto; }
.footer-brand span { font-size: 0.8rem; color: var(--muted-deep); }

.footer-links { display: flex; gap: 22px; font-size: 0.8rem; }
.footer-links a { color: var(--muted-deep); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--champagne-bright); }

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
  }
  html.js .reveal.is-visible { opacity: 1; transform: none; }

  html.js .hero-seq {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.8s var(--ease-spring) forwards;
  }
  html.js .hero-seq.d1 { animation-delay: 0.05s; }
  html.js .hero-seq.d2 { animation-delay: 0.18s; }
  html.js .hero-seq.d3 { animation-delay: 0.32s; }
  html.js .hero-seq.d4 { animation-delay: 0.46s; }
  html.js .hero-phone.hero-seq { animation-delay: 0.5s; }

  @keyframes rise { to { opacity: 1; transform: rotate(var(--r, 0deg)); } }
  .hero-phone { --r: 3.5deg; transform: rotate(3.5deg) translateY(18px); }
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-top: 120px;
    padding-bottom: 80px;
    gap: 56px;
    min-height: 0;
  }
  .hero-phone { transform: rotate(0deg); --r: 0deg; max-width: 270px; }
  .feature-row { grid-template-columns: 1fr; padding: 40px 0; gap: 36px; }
  .feature-row:nth-child(even) .feature-copy { order: 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .carta-seal { flex-direction: column; align-items: center; }
  .carta-sign { text-align: center; }
  .clause { grid-template-columns: 44px 1fr; gap: 14px; }
}

@media (max-width: 480px) {
  .hero-ctas .btn { width: 100%; }
  .brand img { height: 24px; }
  .header-actions .btn { display: none; }
}
