:root {
  --cream: #fbf5e6;
  --sand: #f3e6c4;
  --gold: #8a6414;
  --gold-soft: #c9982f;
  --gold-light: #f2cf74;
  --ink: #2f2412;
  --ink-soft: #5c4a2c;
  --night: #1e190f;
  --night-soft: #2b2416;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Josefin Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h2, h3 { font-weight: 500; line-height: 1.15; margin: 0; }
em { font-style: italic; color: var(--gold); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.ico { width: 1.2em; height: 1.2em; flex: none; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

/* ---------- Barra superior ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
}
.brand {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: .22em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--gold);
}
.topnav { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.topnav a {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  opacity: .8;
  transition: opacity .2s, color .2s;
}
.topnav a:hover { opacity: 1; color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--sand); }
.hero img {
  width: 100%;
  max-height: 100svh;
  object-fit: cover;
  object-position: 30% 0%; /* si hay que recortar, que sea abajo y no el título */
}
.hero::after { /* funde la imagen con la sección siguiente */
  content: ""; position: absolute; inset: auto 0 0 0; height: 18%;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
}

/* ---------- Intro ---------- */
.intro {
  text-align: center;
  padding: clamp(40px, 7vw, 88px) 16px clamp(56px, 8vw, 104px);
}
.lead {
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.3;
  margin: 0 auto 2.2rem;
  max-width: 22em;
}
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 1.8em .85em;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  transition: background .25s, color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--gold); color: var(--cream); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: var(--cream); }

/* ---------- Misión ---------- */
.mission {
  background: linear-gradient(180deg, var(--cream), var(--sand));
  padding: clamp(64px, 9vw, 120px) 0;
}
.mission-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.mission h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 1.4rem; }
.mission h2 em { white-space: nowrap; }
.mission-text p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.mission-text strong { color: var(--ink); font-weight: 600; }
blockquote {
  margin: 2rem 0 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold-soft);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
}
.mission-art { margin: 0; }
.mission-art img { width: 100%; max-width: 520px; margin-inline: auto; animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { /* 4 s inhalar, 4 s exhalar */
  0%, 100% { transform: scale(.97); filter: drop-shadow(0 0 0 rgba(242, 207, 116, 0)); }
  50%      { transform: scale(1);   filter: drop-shadow(0 0 28px rgba(242, 207, 116, .75)); }
}

/* ---------- Caminos ---------- */
.paths { padding: clamp(64px, 9vw, 120px) 0; background: var(--cream); }
.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fffdf7;
  border: 1px solid rgba(138, 100, 20, .18);
  border-radius: 20px;
  padding: 36px 30px 32px;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(138, 100, 20, .45); }
.card-ico { width: 48px; height: 48px; color: var(--gold); margin-bottom: 20px; }
.card-kicker {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft);
  margin: 0 0 .5rem;
}
.card h3 { font-size: 1.75rem; margin-bottom: .8rem; }
.card p:last-child { margin: 0; color: var(--ink-soft); font-size: 1.15rem; }

/* ---------- Práctica ---------- */
.practice {
  background: radial-gradient(ellipse at 50% 0%, var(--night-soft), var(--night) 70%);
  color: var(--cream);
  padding: clamp(72px, 10vw, 130px) 0;
}
.practice .eyebrow { color: var(--gold-light); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px);
}
.steps li { border-top: 1px solid rgba(242, 207, 116, .35); padding-top: 24px; }
.step-n { font-family: var(--sans); font-size: .85rem; letter-spacing: .2em; color: var(--gold-light); }
.steps h3 { font-size: 2.2rem; margin: .4rem 0 .6rem; color: #fff8e6; }
.steps p { margin: 0; color: rgba(251, 245, 230, .75); }
.practice-note {
  text-align: center; font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--gold-light); margin: clamp(48px, 7vw, 80px) 0 0;
}

/* ---------- Comunidad ---------- */
.community { padding: clamp(64px, 9vw, 120px) 0; background: linear-gradient(180deg, var(--cream), var(--sand)); }
.socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.social {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 28px 24px;
  background: #fffdf7;
  border: 1px solid rgba(138, 100, 20, .18);
  border-radius: 20px;
  text-decoration: none;
  transition: transform .3s, background .3s, color .3s, border-color .3s;
}
.social .ico { width: 30px; height: 30px; color: var(--gold); margin-bottom: 14px; transition: color .3s; }
.social-name { font-family: var(--sans); font-weight: 600; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; }
.social-handle { font-size: 1.05rem; color: var(--gold); transition: color .3s; }
.social-desc { font-size: 1.05rem; color: var(--ink-soft); transition: color .3s; }
.social:hover { transform: translateY(-4px); background: var(--gold); border-color: var(--gold); color: var(--cream); }
.social:hover .ico, .social:hover .social-handle, .social:hover .social-desc { color: var(--cream); }

/* ---------- Footer ---------- */
.footer {
  background: var(--night);
  color: rgba(251, 245, 230, .7);
  text-align: center;
  padding: 56px 16px 40px;
}
.footer .brand { color: var(--gold-light); margin: 0; font-size: 1.2rem; }
.footer-tag { font-style: italic; margin: .2rem 0 1.4rem; }
.footer-icons { list-style: none; display: flex; justify-content: center; gap: 22px; margin: 0 0 1.6rem; padding: 0; }
.footer-icons a { display: inline-flex; color: rgba(251, 245, 230, .7); transition: color .2s; }
.footer-icons a:hover { color: var(--gold-light); }
.footer-icons .ico { width: 22px; height: 22px; }
.footer-copy { font-family: var(--sans); font-size: .75rem; letter-spacing: .15em; margin: 0; }

/* ---------- Animación de aparición ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mission-art img { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .socials { grid-template-columns: repeat(2, 1fr); }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-art { order: -1; }
  .mission-art img { max-width: 380px; }
}
@media (max-width: 700px) {
  .topbar { display: none; } /* la imagen ya lleva el título */
  .steps { grid-template-columns: 1fr; }
  .socials { grid-template-columns: 1fr; }
  .social { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .social .ico { margin-bottom: 0; }
  .social-desc { flex-basis: 100%; padding-left: 44px; }
  .social-handle { margin-left: auto; }
}
