/* ============================================================
   Alan Rasgado · Estrategias de Pensión — style.css
   ------------------------------------------------------------
   ÍNDICE
   1. Tokens (:root)
   2. Base / resets
   3. Hero (.hero)
   4. Botones (.btn)
   5. Página legal (body.page-legal)
   6. Animaciones + reduced motion
   7. Print
   ============================================================ */

/* 1 · Tokens */
:root {
  --font-sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Swarsh Daisy', Georgia, serif;
  --font-alt: 'Lenia Sans', 'Manrope', Arial, sans-serif;
  --bg-deep: #070d1f;
  --bg-base: #0a1230;
  --surface: rgba(255, 255, 255, .02);
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(200, 164, 92, .4);
  --accent: #c8a45c;
  --accent-soft: #e0c184;
  --accent-deep: #b8934a;
  --text-clear: #eef1f8;
  --text-mid: #b9c2d8;
  --text-faint: #5c688a;
  --radius: 10px;
  --pad-x: 24px;
  --maxw: 620px;
  --shadow: 0 8px 28px rgba(200, 164, 92, .28);
}

/* 2 · Base */
@font-face { font-family: 'Swarsh Daisy'; src: url('assets/fonts/swarsh-daisy-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Swarsh Daisy'; src: url('assets/fonts/swarsh-daisy-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lenia Sans'; src: url('assets/fonts/lenia-sans-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-clear);
  font-family: var(--font-sans);
  overflow-x: hidden;
}
a { color: var(--accent); }
a:hover { color: var(--accent-soft); }
p { text-wrap: pretty; }
img { max-width: 100%; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #141a2e;
  padding: 10px 18px; font-weight: 700; z-index: 10;
}
.skip-link:focus-visible { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

/* 3 · Hero */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 72px var(--pad-x) 88px;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 55%, #060b1a 100%);
  overflow: hidden;
}
.hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__glow--top {
  top: -180px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(200,164,92,.14) 0%, rgba(200,164,92,.05) 40%, transparent 68%);
  animation: glow-pulse 7s ease-in-out infinite;
}
.hero__glow--bottom {
  bottom: -260px; right: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(58,84,160,.18) 0%, transparent 65%);
}
.hero__inner {
  position: relative; width: 100%; max-width: var(--maxw);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__portrait { position: relative; width: 172px; height: 172px; margin-bottom: 36px; }
.hero__ring {
  position: absolute; inset: -7px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(200,164,92,0) 0%, var(--accent) 18%, rgba(200,164,92,0) 42%, rgba(200,164,92,0) 55%, #8a6f38 70%, rgba(200,164,92,0) 90%);
  animation: ring-spin 14s linear infinite;
}
.hero__ring-mask { position: absolute; inset: -1px; border-radius: 50%; background: var(--bg-base); }
.hero__photo-frame { position: absolute; inset: 4px; border-radius: 50%; overflow: hidden; }
.hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero__logo-box { width: 240px; height: 130px; margin-bottom: 28px; }
.hero__logo { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero__kicker {
  margin: 0 0 14px; font-size: 13px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.hero__title {
  margin: 0 0 22px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 5vw, 58px); line-height: 1.15;
  letter-spacing: .01em; white-space: nowrap;
}
.hero__title-em { font-style: italic; color: var(--accent-soft); }
.hero__lede {
  margin: 0 0 44px; max-width: 52ch;
  font-family: var(--font-alt); font-size: 18px; line-height: 1.75;
  color: var(--text-mid);
}
.hero__lede-link { color: var(--accent-soft); text-decoration: none; }
.hero__lede strong { color: #fff; font-weight: 700; }
.hero__nav {
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column; gap: 14px;
}
.hero__foot {
  margin: 52px 0 0; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint);
}
.hero__foot address { display: inline; font-style: normal; }

/* 4 · Botones */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--font-alt); font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease, color .25s ease;
}
.btn--primary {
  min-height: 56px;
  background: linear-gradient(135deg, #d4b06a, var(--accent-deep));
  color: #141a2e; font-size: 16px; letter-spacing: .06em;
  box-shadow: var(--shadow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(200, 164, 92, .4);
  color: #141a2e;
}
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text-clear); font-size: 15px;
  background: var(--surface);
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: rgba(200, 164, 92, .08);
  transform: translateY(-2px);
  color: #fff;
}
.btn--muted {
  border: 1px solid var(--line);
  color: var(--text-mid); font-size: 14px; background: transparent;
}
.btn--muted:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.btn__icon { flex: none; }

/* 5 · Página legal */
.page-legal { color: var(--text-mid); }
.legal {
  min-height: 100vh; display: flex; justify-content: center;
  padding: 72px var(--pad-x) 88px;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 55%, #060b1a 100%);
}
.legal__inner { width: 100%; max-width: 720px; }
.legal__back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; color: var(--accent);
}
.legal__kicker {
  margin: 0 0 12px; font-size: 13px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.legal__title {
  margin: 0 0 44px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.15; color: var(--text-clear);
}
.legal__section { margin-bottom: 40px; }
.legal__section h2 { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: var(--text-clear); }
.legal__section h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--accent); }
.legal__section p { margin: 0 0 14px; line-height: 1.75; font-size: 16px; }
.legal__section p:last-child { margin-bottom: 0; }
.legal__footer { border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; }
.legal__footer address { font-style: normal; font-size: 14px; line-height: 1.8; color: var(--text-faint); }

/* 6 · Animaciones — fail-safe: contenido visible por defecto;
      solo anima cuando JS confirma capacidad (body.anim-ready) */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes glow-pulse { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
.anim-ready .rise { animation: rise .8s cubic-bezier(.22,1,.36,1) both; animation-delay: var(--rise-delay, 0s); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* 7 · Print */
@media print {
  body { background: #fff; color: #000; }
  .hero, .legal { background: #fff; min-height: auto; }
  .hero__glow, .hero__ring, .hero__nav, .skip-link, .legal__back { display: none !important; }
  .hero__title, .legal__title, .legal__section h2 { color: #000; }
  .hero__lede, .legal__section p { color: #222; }
}
