/* Ministerio de Matrimonios · Iglesia Emmanuel — modelo3 */

:root {
  --blue: #0000D9;
  --ink: #10131F;
  --ink-soft: #3A4258;
  --slate: #7394B5;
  --bg: #FDFDFF;
  --bg-soft: #EDF0FB;
  --lilac: #C3CCEF;
  --lilac-soft: #AFBBE9;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Hanken Grotesk', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

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

em { font-style: italic; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- animations ---------- */
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ringPulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }

[data-reveal], .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.22, .61, .36, 1), transform .9s cubic-bezier(.22, .61, .36, 1);
}
[data-reveal].on, .reveal.on { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 217, .28);
}
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; box-shadow: 0 14px 34px rgba(0, 0, 217, .32); }
.btn-lg:hover { transform: translateY(-3px); }
.btn-outline {
  color: var(--ink);
  padding: 16px 26px;
  font-size: 16px;
  border: 1.5px solid rgba(16, 19, 31, .25);
  background: rgba(255, 255, 255, .5);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-white {
  background: #fff;
  color: var(--blue);
  padding: 18px 36px;
  font-size: 17px;
  box-shadow: 0 16px 40px rgba(0, 0, 217, .4);
}
.btn-white:hover { transform: translateY(-3px); color: var(--blue); }

/* ---------- navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(253, 253, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(115, 148, 181, .18);
}
.navbar-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.navbar-logo { height: 30px; width: auto; }
.navbar-divider { width: 1px; height: 22px; background: rgba(115, 148, 181, .35); }
.navbar-icon { height: 26px; width: 26px; opacity: .85; }
.navbar-links { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.nav-link { color: var(--ink); }
.nav-link:hover { color: var(--blue); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--lilac) 0%, var(--lilac-soft) 42%, #E9EDFB 100%);
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 56px) clamp(72px, 10vw, 140px);
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(0, 0, 217, .10), transparent 70%);
}
.hero-inner {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-copy { flex: 1 1 460px; min-width: 300px; animation: heroIn 1s cubic-bezier(.22, .61, .36, 1) both; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow--pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--blue);
  letter-spacing: .16em;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(0, 0, 217, .15);
  padding: 8px 16px;
  border-radius: 999px;
}

.hero-title {
  margin: 0 0 22px;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.hero-title em { color: var(--blue); }

.hero-lead {
  margin: 0 0 32px;
  max-width: 54ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

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

.hero-media {
  flex: 1 1 380px;
  min-width: 300px;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 10 / 9;
}
.hero-media-item {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(16, 19, 31, .28);
  border: 6px solid #fff;
}
.hero-media-item img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-item--a { top: 6%; left: 4%; width: 62%; height: 62%; --r: -4deg; animation: floaty 7s ease-in-out infinite; }
.hero-media-item--b { bottom: 0; right: 0; width: 56%; height: 74%; --r: 3deg; animation: floaty 8s ease-in-out 1s infinite; }
.hero-ring {
  position: absolute;
  top: 0;
  right: 14%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 217, .4);
  animation: ringPulse 3.2s ease-out infinite;
}

/* ---------- verse ---------- */
.verse {
  background: var(--blue);
  color: #fff;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 56px);
  text-align: center;
}
.verse-inner { max-width: 880px; margin: 0 auto; }
.verse-quote {
  margin: 0 0 16px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
  text-wrap: pretty;
}
.verse-ref {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

/* ---------- cursos ---------- */
.cursos { padding: clamp(72px, 9vw, 130px) clamp(20px, 5vw, 56px); background: var(--bg); }
.section-inner { max-width: 1220px; margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-title {
  margin: 0 0 18px;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.06;
  color: var(--ink);
}
.section-title em { color: var(--blue); }
.section-lead { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}
.curso-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(115, 148, 181, .22);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16, 19, 31, .06);
  transition: transform .35s, box-shadow .35s;
}
.curso-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(0, 0, 217, .14); }
.curso-media { position: relative; aspect-ratio: 4 / 6.2; overflow: hidden; }
.curso-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.curso-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(253, 253, 255, .92);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}
.curso-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 26px; flex: 1; }
.curso-meta { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.curso-title { margin: 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 27px; line-height: 1.1; color: var(--ink); }
.curso-title em { font-style: italic; }
.curso-desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); flex: 1; text-wrap: pretty; }
.curso-link { font-weight: 700; font-size: 15px; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- galería ---------- */
.galeria {
  padding: clamp(64px, 8vw, 110px) 0 clamp(72px, 9vw, 120px);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  overflow: hidden;
}
.galeria .section-head { max-width: 1220px; margin: 0 auto clamp(36px, 4vw, 52px); padding: 0 clamp(20px, 5vw, 56px); }

.marquee-stack { display: flex; flex-direction: column; gap: 18px; }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; gap: 18px; width: max-content; }
.marquee-track img { height: clamp(180px, 24vw, 280px); width: auto; border-radius: 16px; object-fit: cover; }
.marquee-track--left { animation: marquee 46s linear infinite; }
.marquee-track--right { animation: marqueeR 52s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track--left, .marquee-track--right { animation-play-state: paused; }
}

/* ---------- cta ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: clamp(72px, 9vw, 130px) clamp(20px, 5vw, 56px);
  text-align: center;
}
.cta-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgba(0, 0, 217, .35), transparent 70%);
}
.cta-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.cta-title { margin: 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(36px, 5vw, 62px); line-height: 1.08; color: #fff; }
.cta-title em { color: var(--lilac-soft); }
.cta-lead { margin: 0; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .72); max-width: 52ch; text-wrap: pretty; }

/* ---------- footer ---------- */
.site-footer { background: #060810; color: rgba(255, 255, 255, .75); padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 56px); }
.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-icon { height: 34px; width: 34px; filter: invert(1); }
.footer-name { margin: 0; font-weight: 700; color: #fff; }
.footer-sub { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; font-weight: 600; }
.footer-links a { color: rgba(255, 255, 255, .8); }
.footer-links a:hover { color: var(--lilac-soft); }
.footer-note { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .45); }
.footer-note a { color: var(--lilac-soft); }
