/* ============================================================
   altruia — la IA del altruismo
   Sistema visual: negro · oro metálico · blanco hueso
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #060607;
  --bg-2: #0b0b0d;
  --panel: #101013;
  --ink: #f3f1ea;
  --ink-soft: #9b9ba2;
  --ink-dim: #6f6f76;
  --hair: rgba(255, 255, 255, 0.06);
  --hair-gold: rgba(214, 180, 92, 0.22);

  --gold: #e3c06a;
  --gold-deep: #b88a2d;
  --gold-light: #fff3c9;
  --gold-grad: linear-gradient(105deg, #b88a2d 0%, #e3c06a 28%, #fff3c9 50%, #e3c06a 72%, #9c7322 100%);

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* film grain overlay (texture) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--gold); text-decoration: none; }

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

/* gold text */
.gold {
  background: var(--gold-grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.serif { font-family: "Fraunces", Georgia, serif; }

/* shimmer animation for hero word */
@keyframes shimmer { to { background-position: 200% center; } }
.shimmer {
  background: var(--gold-grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5.5s linear infinite;
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------------- Header ---------------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(6, 6, 7, 0.6);
  border-bottom: 1px solid var(--hair);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 27px; letter-spacing: -0.5px;
  display: inline-flex; align-items: center; gap: 9px;
}
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 14px rgba(227,192,106,.7); }
.brand span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.lnk { color: var(--ink-soft); font-size: 14.5px; position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a.lnk::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold-grad); transition: width .3s var(--ease); }
.nav-links a.lnk:hover { color: var(--ink); }
.nav-links a.lnk:hover::after { width: 100%; }
@media (max-width: 760px) { .nav-links { gap: 18px; } .nav-links a.lnk.hide-sm { display: none; } }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 100px;
  font-weight: 600; font-size: 14.5px; cursor: pointer; border: 0; letter-spacing: .2px;
  background: var(--gold-grad); background-size: 160% auto; color: #1c1505;
  transition: background-position .5s var(--ease), transform .15s var(--ease), box-shadow .3s;
  box-shadow: 0 8px 28px rgba(214, 180, 92, 0.20);
}
.btn:hover { background-position: right center; transform: translateY(-2px); color: #1c1505; box-shadow: 0 14px 40px rgba(214, 180, 92, 0.34); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--hair-gold); box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn.sm { padding: 11px 20px; font-size: 13.5px; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 150px 0 96px; text-align: center; isolation: isolate; }
.hero .aura {
  position: absolute; z-index: -1; top: -160px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(227, 192, 106, 0.18), rgba(184, 138, 45, 0.05) 55%, transparent 72%);
  filter: blur(10px); animation: floaty 12s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateX(-50%) translateY(0) scale(1); } 50% { transform: translateX(-50%) translateY(24px) scale(1.05); } }
.hero .grid-fade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--hair) 1px, transparent 1px), linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}
.kicker {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 12px; border-radius: 100px; margin-bottom: 30px;
  border: 1px solid var(--hair-gold); color: var(--gold-light); font-size: 12.5px; letter-spacing: 1.6px; text-transform: uppercase;
  background: rgba(227, 192, 106, 0.04);
}
.kicker .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(227,192,106,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227,192,106,.55); } 70% { box-shadow: 0 0 0 9px rgba(227,192,106,0); } 100% { box-shadow: 0 0 0 0 rgba(227,192,106,0); } }
.hero h1 {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(44px, 8vw, 92px); line-height: 1.0; letter-spacing: -2px;
  margin: 0 auto 24px; max-width: 14ch;
}
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-soft); max-width: 620px; margin: 0 auto 40px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .chips { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 56px; color: var(--ink-dim); font-size: 13px; letter-spacing: .3px; }
.hero .chips span { display: inline-flex; align-items: center; gap: 8px; }
.hero .chips .d { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: .8; }

/* ---------------- Marquee ---------------- */
.marquee { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 22px 0; overflow: hidden; background: var(--bg-2); }
.marquee .track { display: flex; gap: 56px; white-space: nowrap; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee .item { font-family: "Fraunces", serif; font-size: 20px; color: var(--ink-dim); display: inline-flex; align-items: center; gap: 56px; }
.marquee .item::after { content: "✦"; color: var(--gold); font-size: 13px; }

/* ---------------- Sections ---------------- */
section { padding: 100px 0; }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; font-size: 12px; }
h2 { font-family: "Fraunces", serif; font-weight: 500; font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -1.2px; margin: 12px 0 18px; line-height: 1.08; }
.muted { color: var(--ink-soft); }
.sec-head { max-width: 640px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--hair-gold), transparent); border: 0; margin: 0; }

/* ---------------- Manifesto ---------------- */
.manifesto { text-align: center; }
.manifesto .big {
  font-family: "Fraunces", serif; font-weight: 400; font-size: clamp(26px, 4vw, 44px);
  line-height: 1.32; letter-spacing: -0.6px; max-width: 20ch; margin: 18px auto 0;
}
.manifesto .big em { font-style: italic; }

/* ---------------- Bento services ---------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 48px; }
.tile {
  position: relative; border-radius: 22px; padding: 30px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-2)) padding-box,
              linear-gradient(160deg, var(--hair-gold), rgba(255,255,255,0.03) 40%) border-box;
  border: 1px solid transparent;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tile::before { /* gold spotlight that follows the cursor */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(280px 280px at var(--mx, 50%) var(--my, 0%), rgba(227,192,106,0.16), transparent 65%);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.tile:hover::before { opacity: 1; }
.tile.lg { grid-column: span 3; min-height: 280px; }
.tile.md { grid-column: span 2; min-height: 230px; }
.tile.feat {
  background: linear-gradient(170deg, rgba(227,192,106,0.10), var(--panel) 60%) padding-box,
              linear-gradient(160deg, var(--gold), rgba(255,255,255,0.04) 55%) border-box;
}
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .tile.lg, .tile.md { grid-column: span 1; } }
@media (max-width: 580px) { .bento { grid-template-columns: 1fr; } }

.tile .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  border: 1px solid var(--hair-gold); background: rgba(227,192,106,0.06); }
.tile .ic svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.tile h3 { font-family: "Fraunces", serif; font-weight: 600; font-size: 22px; margin: 0 0 10px; }
.tile p { color: var(--ink-soft); margin: 0; font-size: 14.5px; position: relative; }
.tile .tag { position: absolute; top: 26px; right: 26px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); border: 1px solid var(--hair-gold); border-radius: 100px; padding: 4px 11px; }

/* ---------------- Cyber section ---------------- */
.cyber { background: linear-gradient(180deg, #08080a, var(--bg)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.checklist { list-style: none; padding: 0; margin: 26px 0 0; }
.checklist li { position: relative; padding: 15px 0 15px 40px; color: var(--ink-soft); border-bottom: 1px solid var(--hair); font-size: 15px; }
.checklist li:last-child { border-bottom: 0; }
.checklist li svg { position: absolute; left: 4px; top: 16px; width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.checklist li strong { color: var(--ink); font-weight: 600; }

/* ---------------- Process ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; position: relative; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px; border-radius: 20px; border: 1px solid var(--hair); background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.step .num { font-family: "Fraunces", serif; font-size: 15px; font-weight: 600; color: #1c1505; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); margin-bottom: 16px; }
.step h3 { font-family: "Fraunces", serif; font-weight: 600; font-size: 20px; margin: 0 0 8px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 14.5px; }

/* ---------------- CTA band ---------------- */
.band { position: relative; overflow: hidden; text-align: center; border-radius: 30px; padding: 76px 40px;
  background: radial-gradient(700px 240px at 50% -10%, rgba(227,192,106,0.16), transparent 70%), linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--hair-gold); }
.band h2 { margin-top: 8px; }

/* ---------------- Footer ---------------- */
footer.site { border-top: 1px solid var(--hair); margin-top: 24px; padding: 60px 0 48px; color: var(--ink-soft); font-size: 14px; }
footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer .cols p { margin: 6px 0; }
footer a { color: var(--ink-soft); transition: color .2s; }
footer a:hover { color: var(--gold); }
.legal { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--hair); font-size: 12.5px; line-height: 1.9; color: var(--ink-dim); }

/* ---------------- Stats strip ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { text-align: center; padding: 30px 16px; border-radius: 20px; border: 1px solid var(--hair); background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.stat .n { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(34px, 5vw, 50px); line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: var(--ink-soft); font-size: 13.5px; margin-top: 10px; letter-spacing: .2px; }

/* ---------------- Scroll progress ---------------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 100; background: var(--gold-grad); box-shadow: 0 0 12px rgba(227,192,106,.6); }

/* ---------------- Cursor glow ---------------- */
.cursor-glow { position: fixed; top: 0; left: 0; width: 440px; height: 440px; border-radius: 50%; z-index: 40; pointer-events: none;
  transform: translate(-50%, -50%); margin-left: -220px; margin-top: -220px;
  background: radial-gradient(closest-side, rgba(227,192,106,0.07), transparent 70%);
  transition: opacity .4s ease; opacity: 0; mix-blend-mode: screen; }
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------------- Preloader ---------------- */
.preloader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg);
  transition: opacity .7s var(--ease), visibility .7s; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .pl { font-family: "Fraunces", serif; font-size: 34px; letter-spacing: -.5px; display: inline-flex; align-items: center; gap: 11px;
  background: var(--gold-grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.2s linear infinite; }
.preloader .pl .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 18px rgba(227,192,106,.8); -webkit-text-fill-color: initial;
  animation: plpulse 1.3s var(--ease) infinite; }
@keyframes plpulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .5; } }

/* ---------------- Legal / doc pages ---------------- */
.doc { max-width: 780px; margin: 0 auto; padding: 70px 24px; }
.doc h1 { font-family: "Fraunces", serif; font-weight: 600; font-size: 38px; letter-spacing: -0.6px; }
.doc h2 { font-family: "Fraunces", serif; font-size: 23px; margin-top: 38px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc strong { color: var(--ink); }
.back { display: inline-block; margin-bottom: 28px; color: var(--gold); }

/* ---------------- Form ---------------- */
.field { display: block; margin: 18px 0; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--ink); }
.field input { width: 100%; padding: 14px 15px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--hair); color: var(--ink); font-size: 15px; }
.field input:focus { outline: none; border-color: var(--gold); }
.note { font-size: 13px; color: var(--ink-soft); }
