:root {
  --ink: #0a1427;
  --muted: #667083;
  --ivory: #f8f6f0;
  --paper: #fffefb;
  --blue: #075df5;
  --blue-soft: #dfe9fa;
  --night: #06162a;
  --gold: #d5a243;
  --line: rgba(10, 20, 39, 0.12);
  --shadow: 0 24px 60px rgba(23, 43, 73, 0.1);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(213, 162, 67, 0.06), transparent 28rem),
    var(--ivory);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(1200px, calc(100% - 48px));
  min-height: 82px;
  margin: 16px auto 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-bottom: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: rgba(240, 244, 249, 0.82);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.brand strong { color: var(--blue); }
.site-nav { display: flex; gap: 34px; align-items: center; }
.site-nav a { font-size: 14px; font-weight: 600; text-decoration: none; }
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.nav-cta {
  padding: 10px 22px;
  border-radius: 11px;
  color: white;
  background: var(--blue);
  box-shadow: 0 10px 28px rgba(7, 93, 245, .22);
}
.menu-toggle { display: none; }

main { display: block; }

.hero {
  position: relative;
  display: grid;
  width: min(1200px, calc(100% - 48px));
  min-height: min(620px, calc(100vh - 96px));
  margin: 0 auto;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-top: 0;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: #eef2f6;
  box-shadow: var(--shadow);
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/hero-discernimiento.webp") center / cover no-repeat;
  transform: scale(1.012);
  animation: hero-breathe 12s ease-in-out infinite alternate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(245, 247, 249, .98) 0%, rgba(245, 247, 249, .91) 35%, rgba(245, 247, 249, .1) 63%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 610px;
  align-self: center;
  flex-direction: column;
  align-items: flex-start;
  padding: 52px 0 36px 58px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .17em;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; line-height: 1.08; }

h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: -.055em;
}

.hero__lead {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  min-height: 48px;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.button svg, .principle-card > a svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.button--primary { color: white; background: var(--blue); box-shadow: 0 14px 32px rgba(7, 93, 245, .23); }
.button--ghost { border-color: rgba(7, 93, 245, .42); color: var(--ink); background: rgba(255, 255, 255, .6); }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(7, 93, 245, .27); }

.hero__stats {
  position: relative;
  z-index: 3;
  display: flex;
  width: min(640px, 100%);
  min-height: 105px;
  margin: 0;
  align-self: end;
  align-items: stretch;
  grid-column: 1 / -1;
  padding: 0 28px;
  border-top: 1px solid rgba(10, 20, 39, .09);
  border-right: 1px solid rgba(10, 20, 39, .07);
  border-radius: 0 28px 0 0;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
}

.hero__stats > div { display: flex; min-width: 170px; gap: 12px; align-items: center; padding: 19px 30px; }
.hero__stats > div + div { border-left: 1px solid var(--line); }
.hero__stats dt { margin: 0; color: var(--blue); font-family: "Manrope", sans-serif; font-size: 40px; font-weight: 500; line-height: 1; }
.hero__stats dd { margin: 0; color: var(--muted); font-size: 13px; }
.hero__stats strong { color: var(--ink); font-weight: 600; }
.hero__mission .spark { color: var(--gold); font-size: 30px; }

.section-shell { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.principles {
  position: relative;
  padding: 112px 0 120px;
  background: url("assets/principios-bg.webp") center / cover no-repeat;
}

.section-heading { max-width: 690px; margin: 0 auto 52px; text-align: center; }
.section-heading .ornament { display: block; width: 58px; height: 14px; margin: 0 auto 17px; }
.section-heading .ornament::before, .section-heading .ornament::after { display: inline-block; width: 25px; height: 1px; content: ""; vertical-align: middle; background: var(--gold); }
.section-heading .ornament::after { box-shadow: -28px 0 0 -12px var(--gold); }
.section-heading h2 { margin-bottom: 16px; font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.045em; }
.section-heading p { max-width: 590px; margin-inline: auto; color: var(--muted); }

.principles__grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.principle-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 28px 30px 30px;
  border: 1px solid rgba(10, 20, 39, .1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 16px 38px rgba(31, 43, 60, .06);
  backdrop-filter: blur(12px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.principle-card:hover, .principle-card:focus-within { transform: translateY(-8px); box-shadow: 0 24px 54px rgba(31, 43, 60, .12); }
.principle-card h3 { max-width: 270px; margin-bottom: 14px; font-size: 25px; letter-spacing: -.035em; }
.principle-card > p:not(.card-number) { color: var(--muted); font-size: 15px; }
.card-number { margin-bottom: 7px; color: var(--gold); font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.principle-card > a { position: absolute; right: 28px; bottom: 26px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(7, 93, 245, .2); border-radius: 50%; color: var(--blue); }

.principle-art { position: relative; height: 145px; margin: -2px -2px 23px; }
.principle-art--truth .orbit { position: absolute; top: 12px; left: 50%; width: 118px; height: 118px; border: 1px solid rgba(7, 93, 245, .24); border-radius: 50%; transform: translateX(-50%); }
.principle-art--truth .orbit::after { position: absolute; inset: 18px -26px; content: ""; border: 1px dashed rgba(213, 162, 67, .5); border-radius: 50%; transform: rotate(32deg); }
.principle-art--truth .axis { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(var(--gold), transparent); }
.principle-art--truth .dot { position: absolute; top: 48%; right: 26%; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: -90px -35px 0 -3px var(--gold); }

.principle-art--people { display: flex; align-items: flex-end; justify-content: center; }
.principle-art--people span { position: relative; display: block; width: 54px; height: 72px; border-radius: 30px 30px 7px 7px; background: #ccd4df; }
.principle-art--people span::before { position: absolute; top: -32px; left: 11px; width: 32px; height: 32px; content: ""; border-radius: 50%; background: inherit; }
.principle-art--people span:nth-child(2) { z-index: 2; width: 70px; height: 94px; background: linear-gradient(160deg, #f4d48e, var(--gold)); }
.principle-art--people span:nth-child(2)::before { top: -41px; left: 14px; width: 42px; height: 42px; }
.principle-art--people span:first-child { background: #173865; transform: translateX(8px); }
.principle-art--people span:last-child { transform: translateX(-8px); }

.principle-art--purpose { display: flex; gap: 6px; align-items: flex-end; justify-content: center; }
.principle-art--purpose span { width: 42px; background: linear-gradient(180deg, rgba(7,93,245,.12), rgba(7,93,245,.8)); }
.principle-art--purpose span:nth-child(1) { height: 35px; }
.principle-art--purpose span:nth-child(2) { height: 60px; }
.principle-art--purpose span:nth-child(3) { height: 90px; }
.principle-art--purpose span:nth-child(4) { height: 125px; position: relative; }
.principle-art--purpose span:nth-child(4)::after { position: absolute; top: -20px; right: -12px; width: 32px; height: 32px; content: ""; border-radius: 50%; background: var(--gold); box-shadow: 0 0 28px rgba(213, 162, 67, .35); }

.compass {
  position: relative;
  display: grid;
  min-height: 720px;
  overflow: hidden;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  padding: 90px max(48px, calc((100% - 1200px) / 2));
  color: white;
  background: var(--night) url("assets/brujula-bg.webp") center / cover no-repeat;
}
.compass::after { position: absolute; inset: 0; pointer-events: none; content: ""; background: linear-gradient(90deg, transparent 38%, rgba(6, 22, 42, .18) 53%, rgba(6, 22, 42, .9) 75%); }
.compass__visual { position: relative; z-index: 1; width: min(540px, 45vw); aspect-ratio: 1; }
.compass__ring { position: absolute; inset: 18%; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; animation: spin 26s linear infinite; }
.compass__ring::before { position: absolute; inset: 12%; content: ""; border: 1px dashed rgba(213, 162, 67, .38); border-radius: 50%; }
.compass__ring--two { inset: 30%; border-color: rgba(7, 93, 245, .62); animation-direction: reverse; animation-duration: 18s; }
.compass__needle { position: absolute; top: 50%; left: 50%; width: 4px; height: 42%; border-radius: 50% 50% 3px 3px; background: linear-gradient(var(--gold), #fff, var(--blue)); box-shadow: 0 0 30px rgba(213, 162, 67, .6); transform: translate(-50%, -50%) rotate(22deg); transform-origin: 50% 50%; animation: needle 7s ease-in-out infinite alternate; }

.compass__content { position: relative; z-index: 2; max-width: 570px; justify-self: end; }
.section-heading--light { margin: 0 0 42px; text-align: left; }
.section-heading--light .ornament { margin-left: 0; }
.section-heading--light h2 { font-size: clamp(36px, 4vw, 56px); }
.section-heading--light p { margin-left: 0; color: #b8c5d8; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; gap: 24px; grid-template-columns: 48px 1fr; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.steps li > span { color: var(--blue); font-family: "Manrope", sans-serif; font-size: 27px; font-weight: 700; }
.steps h3 { margin-bottom: 6px; font-size: 20px; }
.steps p { margin: 0; color: #aebdd0; font-size: 14px; }

.resources {
  position: relative;
  padding: 112px 0 120px;
  background: url("assets/recursos-bg.webp") center / cover no-repeat;
}
.resources__grid { display: grid; gap: 20px; grid-template-columns: 1.15fr .85fr; }
.guide-card, .signup-card { border: 1px solid rgba(10, 20, 39, .1); border-radius: var(--radius-lg); box-shadow: 0 18px 50px rgba(36, 51, 75, .09); }
.guide-card { display: grid; min-height: 470px; gap: 35px; grid-template-columns: .72fr 1.28fr; padding: 26px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); }
.guide-cover { position: relative; display: flex; min-height: 390px; overflow: hidden; flex-direction: column; padding: 28px 24px; border-radius: 12px 18px 18px 12px; color: white; background: linear-gradient(145deg, #071a31, #0d376e); box-shadow: 12px 18px 30px rgba(5, 23, 45, .22); transform: perspective(900px) rotateY(4deg); }
.guide-cover::after { position: absolute; inset: 0; content: ""; opacity: .55; background: radial-gradient(circle at 90% 12%, rgba(213,162,67,.55), transparent 26%), repeating-radial-gradient(circle at 70% 55%, transparent 0 22px, rgba(255,255,255,.09) 23px 24px); }
.guide-cover > * { position: relative; z-index: 1; }
.guide-cover > span { font-family: "Manrope", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.guide-cover > span strong { color: #5f99ff; }
.guide-cover h3 { max-width: 190px; margin-top: 70px; font-size: 25px; }
.guide-cover small { margin-top: auto; color: #cbd6e5; line-height: 1.4; }
.guide-mark { display: grid; width: 60px; height: 60px; margin-top: 28px; place-items: center; border: 1px solid rgba(213,162,67,.6); border-radius: 50%; }
.guide-mark span { width: 28px; height: 28px; border: 1px solid var(--gold); transform: rotate(45deg); }

.guide-copy { align-self: center; }
.resource-label { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.guide-copy h3, .signup-card h3 { margin-bottom: 17px; font-size: clamp(27px, 2.4vw, 36px); letter-spacing: -.035em; }
.guide-copy > p:not(.resource-label), .signup-card > p { color: var(--muted); }
.guide-copy ul { margin: 24px 0 28px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.guide-copy li { position: relative; padding: 5px 0 5px 27px; }
.guide-copy li::before { position: absolute; top: 8px; left: 0; display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; content: "✓"; color: white; background: var(--blue); font-size: 10px; }

.signup-card { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 46px; background: rgba(255, 255, 255, .76); backdrop-filter: blur(14px); }
.mail-icon { display: grid; width: 55px; height: 55px; margin-bottom: 25px; place-items: center; border: 1px solid rgba(213,162,67,.7); border-radius: 50%; color: var(--gold); }
.mail-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.signup { margin-top: 22px; }
.signup label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.signup input { width: 100%; min-height: 52px; margin-bottom: 12px; padding: 12px 16px; border: 1px solid rgba(10, 20, 39, .15); border-radius: 12px; outline: none; background: rgba(255, 255, 255, .78); transition: border-color .2s, box-shadow .2s; }
.signup input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(7, 93, 245, .1); }
.signup input[aria-invalid="true"] { border-color: #b83b3b; box-shadow: 0 0 0 4px rgba(184, 59, 59, .08); }
.signup .button { width: 100%; border: 0; cursor: pointer; }
.signup__note { margin: 13px 0 0; color: #7f8999; font-size: 11px; }
.signup__status { min-height: 25px; margin: 8px 0 0; color: var(--blue); font-size: 13px; font-weight: 600; }

.site-footer { display: flex; width: min(1200px, calc(100% - 48px)); min-height: 110px; margin-inline: auto; gap: 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal][data-visible="true"] { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid rgba(7, 93, 245, .38); outline-offset: 4px; }

@keyframes hero-breathe { from { transform: scale(1.012) translate3d(0, 0, 0); } to { transform: scale(1.035) translate3d(-5px, -3px, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes needle { from { transform: translate(-50%, -50%) rotate(18deg); } to { transform: translate(-50%, -50%) rotate(30deg); } }

@media (max-width: 960px) {
  .site-header, .hero, .section-shell, .site-footer { width: min(100% - 28px, 760px); }
  .site-header { padding-inline: 22px; }
  .hero { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto auto; padding-top: 390px; }
  .hero__art { background-position: 62% center; }
  .hero::after { background: linear-gradient(0deg, #f4f6f8 0%, rgba(244, 246, 248, .97) 49%, rgba(244, 246, 248, .12) 78%, transparent 100%); }
  .hero__content { padding: 26px 34px 40px; }
  .hero__stats { width: 100%; border-radius: 0; }
  .hero__stats > div { min-width: 0; flex: 1; padding-inline: 18px; }
  .principles { padding-block: 90px; }
  .principles__grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 340px; }
  .compass { min-height: 1040px; grid-template-columns: 1fr; grid-template-rows: 480px 1fr; padding: 60px 44px 78px; background-position: 38% center; }
  .compass::after { background: linear-gradient(0deg, rgba(6, 22, 42, .98) 0%, rgba(6, 22, 42, .83) 52%, transparent 82%); }
  .compass__visual { width: min(540px, 78vw); justify-self: center; }
  .compass__content { max-width: 680px; justify-self: center; }
  .resources__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { min-height: 70px; margin-top: 8px; border-radius: 22px 22px 0 0; }
  .brand { font-size: 15px; }
  .menu-toggle { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 10px; background: white; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 3px; background: var(--ink); transition: transform .2s; }
  .site-nav { position: absolute; top: 60px; right: 16px; left: 16px; display: none; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
  .site-nav[data-open] { display: flex; }
  .site-nav a { width: 100%; padding: 11px 13px; }
  .nav-cta { text-align: center; }
  .hero { padding-top: 300px; border-radius: 0 0 22px 22px; }
  .hero__art { background-position: 68% center; }
  .hero__content { padding: 18px 22px 30px; }
  .eyebrow { margin-bottom: 12px; font-size: 10px; }
  h1 { font-size: clamp(38px, 12vw, 52px); }
  .hero__lead { font-size: 15px; }
  .hero__actions, .hero__actions .button { width: 100%; }
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
  .hero__stats > div { min-height: 82px; padding: 15px; }
  .hero__stats > div + div { border-left: 1px solid var(--line); }
  .hero__stats .hero__mission { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .hero__stats dt { font-size: 32px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: 34px; }
  .principles, .resources { padding-block: 72px; }
  .principle-card { min-height: 390px; padding: 24px; }
  .compass { min-height: 1010px; grid-template-rows: 350px 1fr; padding: 40px 24px 64px; }
  .compass__visual { width: 90vw; }
  .steps li { gap: 14px; grid-template-columns: 42px 1fr; }
  .guide-card { grid-template-columns: 1fr; }
  .guide-cover { min-height: 360px; }
  .signup-card { padding: 30px 24px; }
  .site-footer { flex-direction: column; padding-block: 35px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

