:root {
  --bg: #0a0806;
  --bg-2: #120c07;
  --orange: #ff6a00;
  --orange-2: #ff8c1a;
  --amber: #ffb547;
  --gold: #ffd166;
  --cream: #f2e2c4;
  --cream-2: #d9c49b;
  --white: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);

  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Anton", var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }

/* ---------- Fondo ---------- */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(255, 106, 0, 0.18), transparent 60%),
    radial-gradient(900px 600px at 10% 20%, rgba(255, 181, 71, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, var(--bg) 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}
.orb--1 { width: 460px; height: 460px; background: #ff5e00; top: -120px; right: -80px; }
.orb--2 { width: 380px; height: 380px; background: #ffb547; top: 45%; left: -140px; animation-delay: -6s; }
.orb--3 { width: 320px; height: 320px; background: #ff8c1a; bottom: -80px; right: 20%; animation-delay: -11s; }

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 50px) scale(1.08); }
}

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.glass--soft {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.grad {
  background: linear-gradient(100deg, var(--gold), var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 28px), var(--max));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  transition: padding 0.3s ease, background 0.3s ease;
}
.nav.is-scrolled { background: rgba(12, 8, 5, 0.72); }

.nav__brand { display: flex; align-items: center; gap: 10px; }
.flame-mini { width: 22px; height: 30px; display: grid; place-items: center; }
.flame-mini svg { width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(255, 120, 0, 0.7)); }
.nav__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--white);
}
.nav__name em { color: var(--orange-2); font-style: normal; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--cream-2);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }

.nav__cta {
  background: linear-gradient(100deg, var(--orange), var(--amber)) !important;
  color: #1a0d00 !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 26px rgba(255, 106, 0, 0.35);
}
.nav__cta:hover { filter: brightness(1.08); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.nav__burger span {
  width: 17px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 130px 22px 90px;
}
.hero__inner {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
}

.hero__logo { position: relative; display: grid; place-items: center; }
.hero__logo picture {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 400px);
}
.logo-aparta {
  width: 100%;
  height: auto;
  max-height: 60svh;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(255, 90, 0, 0.28));
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.hero__copy .eyebrow {
  display: block;
  text-align: center;
  line-height: 1.5;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.01em;
}

.lead {
  margin-top: 18px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(242, 226, 196, 0.82);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(100deg, var(--orange), var(--amber));
  color: #1a0d00;
  box-shadow: 0 16px 40px rgba(255, 106, 0, 0.38);
}
.btn--primary:hover { filter: brightness(1.07); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border);
  color: var(--cream);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--block { width: 100%; margin-top: 6px; }

.hero__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 38px 0 0;
}
.hero__facts li {
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  min-width: 128px;
  display: flex;
  flex-direction: column;
}
.hero__facts strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--white);
}
.hero__facts span { font-size: 0.82rem; color: var(--cream-2); }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: 8px;
}
.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--orange-2);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Secciones ---------- */
.section {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) 0;
}
.section__head { max-width: 780px; margin-bottom: clamp(30px, 4vw, 52px); }
.section__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  text-transform: uppercase;
  color: var(--white);
}
.section__lead {
  margin-top: 16px;
  color: rgba(242, 226, 196, 0.8);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.cards-3, .cards-2 {
  display: grid;
  gap: 20px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(3, 1fr); }

.card, .feature {
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover, .feature:hover, .day:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 140, 26, 0.45);
  background: var(--glass-bg-strong);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 18px;
  color: var(--gold);
  background: linear-gradient(140deg, rgba(255, 106, 0, 0.28), rgba(255, 209, 102, 0.10));
  border: 1px solid rgba(255, 181, 71, 0.28);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3, .feature h3 { font-size: 1.28rem; color: var(--white); margin-bottom: 10px; }
.card p, .feature p { color: rgba(242, 226, 196, 0.76); font-size: 0.97rem; }

.feature__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-2);
  margin-bottom: 12px;
}

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.day { border-radius: var(--radius); padding: 26px; transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.day header { border-bottom: 1px solid rgba(255, 255, 255, 0.09); padding-bottom: 14px; margin-bottom: 14px; }
.day h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  text-transform: uppercase;
  color: var(--white);
}
.day header span { font-size: 0.85rem; color: var(--amber); }
.day ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.day li { display: flex; gap: 12px; font-size: 0.94rem; color: rgba(242, 226, 196, 0.8); }
.day time {
  flex: none;
  min-width: 52px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* ---------- Registro ---------- */
.register {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}
.register__info { position: relative; }
.register__info > :not(.fluid-orb) { position: relative; z-index: 1; }
.register__info h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  text-transform: uppercase;
  color: var(--white);
}
.register__info > p { margin-top: 16px; color: rgba(242, 226, 196, 0.8); max-width: 48ch; }
.register__details { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.register__details li {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.register__details .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(120deg, var(--orange), var(--gold));
  box-shadow: 0 0 0 4px rgba(255, 140, 26, 0.16);
}
.register__details strong { display: block; color: var(--white); font-size: 0.95rem; }
.register__details small { color: var(--cream-2); font-size: 0.86rem; }

.telegram-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  color: var(--cream);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.telegram-cta:hover { transform: translateY(-3px); border-color: rgba(255, 181, 71, 0.45); }
.telegram-cta svg { color: #43a5e0; flex: none; }
.telegram-cta strong { display: block; color: var(--white); font-size: 0.95rem; }
.telegram-cta small { color: var(--cream-2); font-size: 0.84rem; }

.register__card { border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.register__card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.church-logo {
  width: 62px;
  height: auto;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
.register__card-head h3 { font-size: 1.25rem; color: var(--white); }
.register__card-head p { font-size: 0.85rem; color: var(--amber); }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--cream-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.045);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(217, 196, 155, 0.5); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(255, 140, 26, 0.7);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.15);
}
.field select option { background: #17100a; color: var(--cream); }
.field.invalid input, .field.invalid select { border-color: rgba(255, 84, 84, 0.8); }
.field .error { color: #ff9a9a; font-size: 0.78rem; min-height: 0; display: none; }
.field.invalid .error { display: block; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.84rem;
  color: var(--cream-2);
  margin: 6px 0 4px;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; accent-color: var(--orange); margin-top: 2px; flex: none; }
#aceptoError { margin-bottom: 8px; }

.form-note { margin-top: 14px; font-size: 0.88rem; font-weight: 600; color: var(--gold); min-height: 20px; }
.form-note.ok { color: #9dffb0; }
.form-note.error { color: #ff9a9a; }

.form-alt { margin-top: 12px; font-size: 0.85rem; color: var(--cream-2); text-align: center; }
.form-alt a { color: var(--gold); font-weight: 600; }
.form-alt a:hover { text-decoration: underline; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }

/* ---------- Footer ---------- */
.footer {
  width: min(100% - 28px, var(--max));
  margin: 20px auto 28px;
  border-radius: var(--radius);
  padding: 30px clamp(20px, 3vw, 40px);
  display: grid;
  gap: 20px;
}
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand strong { display: block; color: var(--white); }
.footer__brand small { color: var(--cream-2); font-size: 0.85rem; }
.footer__verse {
  font-style: italic;
  color: rgba(242, 226, 196, 0.72);
  border-left: 2px solid rgba(255, 140, 26, 0.6);
  padding-left: 16px;
}
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--cream-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}
.footer__meta a:hover { color: var(--gold); }
.footer__meta span:last-child { margin-left: auto; }

.footer__credit {
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(217, 196, 155, 0.6);
}
.footer__credit strong { color: var(--amber); letter-spacing: 0.16em; }
.footer__credit a { text-decoration: none; }
.footer__credit a:hover strong { color: var(--gold); text-decoration: underline; }

/* ---------- Fluid Orb (WebGL) ---------- */
.fluid-orb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.fluid-orb__canvas { width: 100%; height: 100%; display: block; }

.fluid-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #ffb347 0%, #ff6a00 55%, #c93c00 100%);
  mix-blend-mode: multiply;
}

.fluid-orb--fallback {
  background: radial-gradient(circle at 50% 78%, #fff 0%, #ffb547 32%, #ff6a00 62%, transparent 72%);
  filter: blur(6px);
}

.fluid-orb--hero {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(96%, 440px);
  opacity: 0.55;
  z-index: 0;
  filter: blur(9px);
  animation: orbPulse 9s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.46; }
  50% { transform: scale(1.06); opacity: 0.66; }
}

.fluid-orb--accent {
  position: absolute;
  top: -34px;
  right: 0;
  width: clamp(110px, 15vw, 165px);
  opacity: 0.4;
  z-index: 0;
  filter: blur(3px);
}

@media (prefers-reduced-motion: reduce) {
  .fluid-orb--hero { animation: none; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__logo { order: -1; }
  .lead { margin-inline: auto; }
  .hero__actions, .hero__facts { justify-content: center; }
  .hero__logo picture { width: min(100%, 320px); }
  .logo-aparta { max-height: 46svh; }
  .cards-3, .cards-2, .timeline { grid-template-columns: repeat(2, 1fr); }
  .register { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { border-radius: 24px; align-items: flex-start; padding: 12px 14px; }
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(12, 8, 5, 0.92);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 12px 14px; }
  .nav__cta { text-align: center; }

  .cards-3, .cards-2, .timeline { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .footer__meta span:last-child { margin-left: 0; }
}

/* Foto obligatoria en el registro */
.req { color: var(--amber); font-weight: 500; }
.field input[type="file"] {
  padding: 10px 12px;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
}
.file-preview { margin-top: 12px; }
.file-preview img {
  max-width: 130px;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid rgba(255, 181, 71, 0.45);
}
