/* ─── Tokens del Manual de Identidad Visual Regnum Christi ───
   Pantone 187 C · #91152b   — rojo institucional (acento)
   Cool Gray 11  · #474b50   — titulares y texto
   Blanco                    — "respira en blanco"
   Tipografía: Helvetica Neue Medium (títulos) · Helvetica Neue Regular (cuerpo)
*/
:root {
  --rc-red: #91152b;
  --rc-red-dark: #6f0f21;
  --rc-gray: #474b50;
  --rc-gray-soft: #7a7e83;
  --paper: #ffffff;
  --warm: #fbfaf7;
  --rule: #e3e1dc;
  --black: #0d0d0d;

  --gutter: clamp(20px, 6vw, 90px);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--rc-gray);
  font-family: "Helvetica", "Helvetica Neue", "Arial", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ─── Cabecera institucional ─── */
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.head-tag { font-size: 14px; letter-spacing: .18em; color: var(--rc-red); font-weight: 700; }
.head-eyebrow {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--rc-gray-soft); font-weight: 500; text-align: right;
}

/* ─── Eyebrow principal ─── */
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding-top: clamp(28px, 5vw, 42px);
  font-size: clamp(11px, 1.4vw, 14px); letter-spacing: .34em; text-transform: uppercase;
  color: var(--rc-red); font-weight: 700;
}
.eyebrow::before { content: ""; width: 48px; height: 2px; background: var(--rc-red); flex: none; }

/* ─── Hero ─── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 40px);
  align-items: center; padding-top: clamp(20px, 3vw, 34px);
}
.hero-image img {
  display: block; width: 100%; height: 100%; max-height: 460px;
  object-fit: cover; border-radius: 10px;
}
.title { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(40px, 7vw, 84px); line-height: 1; letter-spacing: -.02em; color: var(--rc-gray); margin: 0; text-align: center; }
.title b { font-weight: 700; color: var(--rc-red); }
.title em {
  font-style: normal; font-weight: 300; color: var(--rc-gray-soft);
  display: block; font-size: clamp(19px, 2.6vw, 34px); letter-spacing: -.01em; margin-top: 10px;
}
.verse { padding: 6px 0; margin: 24px auto 0; text-align: center; }
.verse p { margin: 0; font-size: clamp(13px, 1.5vw, 16px); line-height: 1.5; font-style: italic; }
.verse cite {
  display: block; margin-top: 8px; font-style: normal; font-size: 10px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--rc-red); font-weight: 700;
}

/* ─── Datos del encuentro ─── */
.meta {
  margin: clamp(28px, 5vw, 44px) 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}
.meta-cell { padding: 0 clamp(10px, 2vw, 28px); border-right: 1px solid var(--rule); }
.meta-cell:first-child { padding-left: 0; }
.meta-cell:last-child { border-right: 0; padding-right: 0; }
.meta-cell .label {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--rc-red); font-weight: 700; margin-bottom: 7px;
}
.meta-cell .value { font-size: clamp(14px, 1.7vw, 20px); line-height: 1.25; font-weight: 700; }

/* ─── Secciones del formulario ─── */
.section { margin-top: clamp(34px, 6vw, 56px); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--rule); padding-bottom: 10px;
}
.section-head h2 { font-size: clamp(21px, 3vw, 34px); font-weight: 300; letter-spacing: -.015em; margin: 0; }
.section-num { font-size: 10px; letter-spacing: .3em; color: var(--rc-red); font-weight: 700; flex: none; }
.section-lede { font-size: 14px; color: var(--rc-gray-soft); margin: 12px 0 0; }

/* ─── Campos ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 36px); }
.field { margin-top: 22px; }
.field label,
.fieldset-label,
.field-legend {
  display: block; font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--rc-gray-soft); font-weight: 700; margin-bottom: 6px;
}
.req { color: var(--rc-red); }
.field input,
.field textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--rc-gray);
  background: var(--paper); border: 0; border-bottom: 1px solid var(--rule);
  padding: 8px 0; transition: border-color .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus,
.field textarea:focus {
  outline: none; border-bottom-color: var(--rc-red); background: var(--warm);
}
.field input.invalid { border-bottom-color: var(--rc-red); background: rgba(145, 21, 43, .04); }
.field-hint { font-size: 11px; color: var(--rc-gray-soft); margin: 5px 0 0; }
.field-full { grid-column: 1 / -1; }

/* ─── Opción Sí / No ─── */
/* Se escopa con `.choices .choice` para ganar en especificidad a `.field label`
   (que impondría display:block, 10px y mayúsculas sobre estas etiquetas). */
.choices { display: flex; gap: 14px; margin-top: 4px; }
.choices .choice {
  position: relative; flex: 1 1 0; max-width: 200px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 1.5px solid var(--rule); padding: 15px 20px; margin: 0;
  cursor: pointer; font-size: 16px; font-weight: 700; color: var(--rc-gray);
  text-transform: none; letter-spacing: normal;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
/* Indicador propio: círculo que se rellena de rojo al elegir */
.choices .choice::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid var(--rc-gray-soft); background: transparent;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.choices .choice input { position: absolute; opacity: 0; pointer-events: none; }
.choices .choice:hover { border-color: var(--rc-gray-soft); background: var(--warm); }
.choices .choice:has(input:checked) {
  border-color: var(--rc-red); background: rgba(145, 21, 43, .05); color: var(--rc-red);
  box-shadow: 0 4px 14px -6px rgba(145, 21, 43, .45);
}
.choices .choice:has(input:checked)::before {
  border-color: var(--rc-red); background: var(--rc-red);
  box-shadow: inset 0 0 0 3px var(--paper);
}
.choices .choice:has(input:focus-visible) { outline: 2px solid var(--rc-red); outline-offset: 2px; }

/* ─── Bloque informativo ─── */
.note { background: var(--warm); border: 1px solid var(--rule); padding: 20px 22px; margin-top: 22px; }
.note p { margin: 0 0 10px; font-size: 14px; }
.note p:last-child { margin-bottom: 0; }
.note ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.note li { margin-bottom: 4px; }
.price { color: var(--rc-red); font-weight: 700; }

/* ─── Plan de pago ─── */
.plans { margin-top: 8px; }
.plan {
  display: flex; align-items: flex-start; gap: 14px;
  border: 1px solid var(--rule); padding: 16px 18px; margin-top: 10px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.plan:hover { border-color: var(--rc-gray-soft); background: var(--warm); }
.plan:has(input:checked) { border-color: var(--rc-red); background: rgba(145, 21, 43, .03); }
.plan:has(input:focus-visible) { outline: 2px solid var(--rc-red); outline-offset: 2px; }
.plan input { margin: 3px 0 0; accent-color: var(--rc-red); flex: none; }
.plan-title { font-size: 15px; font-weight: 700; display: block; }
.plan-detail { font-size: 13px; color: var(--rc-gray-soft); display: block; margin-top: 3px; }

/* ─── Datos bancarios ─── */
.bank { margin-top: 22px; border-top: 1px solid var(--rule); }
.bank-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--rule); padding: 13px 0;
}
.bank-row dt { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--rc-gray-soft); font-weight: 700; margin: 0; }
.bank-row dd { margin: 0; font-size: 15px; font-weight: 700; text-align: right; word-break: break-word; }

/* ─── Botones ─── */
.btn {
  font-family: inherit; font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  font-weight: 700; padding: 15px 26px; border: 1px solid var(--rc-red);
  background: var(--rc-red); color: #fff; cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover:not(:disabled) { background: var(--rc-red-dark); border-color: var(--rc-red-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--rc-red); }
.btn-ghost:hover:not(:disabled) { background: var(--rc-red); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 19px 26px; font-size: 12px; }

/* ─── Comprobante ─── */
.drop {
  display: block; margin-top: 22px; border: 1px dashed var(--rc-gray-soft);
  background: var(--warm); padding: 40px 24px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.dragover { border-color: var(--rc-red); background: rgba(145, 21, 43, .04); }
.drop-title { display: block; font-size: 16px; font-weight: 700; }
.drop-hint { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--rc-gray-soft); margin-top: 7px; }
.drop-file { display: block; font-size: 16px; font-weight: 700; color: var(--rc-red); word-break: break-all; }
.hidden { display: none !important; }

/* ─── Envío ─── */
.submit-row { margin-top: clamp(30px, 5vw, 46px); }
.submit-note { font-size: 13px; color: var(--rc-gray-soft); text-align: center; margin: 16px 0 0; }

/* ─── Inscripciones cerradas ─── */
.closed { border: 1px solid var(--rule); background: var(--warm); padding: clamp(36px, 7vw, 64px) 24px; text-align: center; margin-top: 40px; }
.closed-label { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--rc-red); font-weight: 700; }
.closed-title { font-size: clamp(30px, 5vw, 48px); font-weight: 300; margin: 10px 0 0; letter-spacing: -.02em; }
.closed p { font-size: 15px; color: var(--rc-gray-soft); margin: 14px 0 0; }

/* ─── Faldón institucional ─── */
.faldon { background: var(--black); color: #fff; margin-top: clamp(48px, 8vw, 80px); }
.faldon-inner { display: flex; align-items: center; gap: 20px; padding: 18px 0; }
.faldon-logo { height: 46px; width: auto; display: block; }
.faldon-hash { font-size: 16px; font-weight: 500; }
.faldon-sep { width: 1px; align-self: stretch; background: rgba(255, 255, 255, .25); }
.faldon-vocations { font-size: 13px; color: #d6d4cf; }
.faldon-vocations span + span::before { content: "•"; margin: 0 10px; color: #8a8680; }

/* ─── Modal ─── */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-veil { position: absolute; inset: 0; background: rgba(13, 13, 13, .6); }
.modal-box { position: relative; background: var(--paper); border-top: 3px solid var(--rc-red); max-width: 420px; width: 100%; padding: 36px 32px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.modal-label { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--rc-red); font-weight: 700; }
.modal-title { font-size: 27px; font-weight: 300; margin: 8px 0 0; letter-spacing: -.015em; }
.modal-text { font-size: 14px; color: var(--rc-gray-soft); margin: 12px 0 0; }
.modal-box .btn { margin-top: 26px; }
.spinner { width: 34px; height: 34px; margin: 0 auto 18px; border: 2px solid var(--rule); border-top-color: var(--rc-red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive ─── */
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { order: 2; }
  .hero-image img { max-height: 320px; }
  .grid-2 { grid-template-columns: 1fr; }
  .meta { grid-template-columns: 1fr; padding: 0; }
  .meta-cell { border-right: 0; border-bottom: 1px solid var(--rule); padding: 16px 0; text-align: center; }
  .meta-cell:last-child { border-bottom: 0; }
  .head-eyebrow { font-size: 9px; letter-spacing: .2em; }
  .faldon-inner { flex-wrap: wrap; gap: 14px; }
  .faldon-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation: none; }
  * { transition: none !important; }
}
