/* Fuentes autoalojadas (subconjunto latin, variables 400–700) */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #0B1F3A; }
section[id] { scroll-margin-top: 16px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid #2CC5B0;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Fotos: la imagen cubre el placeholder; si no existe, se elimina y queda el placeholder */
.photo-slot { position: relative; overflow: hidden; }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* FAQ con <details> */
.faq summary { list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq[open] .faq-plus, .faq:not([open]) .faq-minus { display: none; }
.faq-minus, .faq-plus { display: inline-flex; }

/* Inscripción */
.ins-h2 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 24px; letter-spacing: -0.015em; }
.ins-lead { margin: 6px 0 22px; color: #4A5B73; }
.ins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 16px; }
.ins-field { display: flex; flex-direction: column; gap: 6px; }
.ins-label { font-size: 15px; font-weight: 600; }
.ins-input {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px;
  border: 1px solid #A9B6C6; border-radius: 10px; font: inherit; font-size: 17px;
  color: #0B1F3A; background: #FFFFFF;
}
select.ins-input { padding: 0 12px; }
.ins-input[aria-invalid="true"] { border-color: #C0392B; }
.ins-fieldset { border: 0; margin: 0; padding: 0; }
.ins-legend { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; margin-bottom: 10px; padding: 0; }
.ins-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative; min-height: 44px; padding: 8px 16px; border: 1px solid #CBD5E1;
  border-radius: 10px; background: #FFFFFF; cursor: pointer; font: inherit; font-size: 16px; color: #0B1F3A;
}
.option {
  position: relative; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 20px;
  border: 1px solid #CBD5E1; border-radius: 16px; background: #FFFFFF; cursor: pointer; font: inherit; color: #0B1F3A;
}
.chip[aria-pressed="true"]::after, .option[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: -1px; border: 2px solid #0E7C70; border-radius: inherit;
  background: rgba(14, 124, 112, 0.06); pointer-events: none;
}
.wa-preview {
  margin: 0; padding: 16px 18px; border-radius: 14px; background: #F4F7FA; border: 1px solid #E3E9F0;
  font: 15px/1.5 'Source Sans 3', system-ui, sans-serif; color: #33425A; white-space: pre-wrap; word-break: break-word;
}
[hidden] { display: none !important; }

/* Móvil: la barra de secciones en una sola fila desplazable */
@media (max-width: 640px) {
  .nav-links {
    order: 3; flex: 1 1 100% !important; flex-wrap: nowrap !important;
    justify-content: flex-start !important; overflow-x: auto; gap: 0 20px !important;
    scrollbar-width: none; margin: 0 -20px; padding: 0 20px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  nav[aria-label="Principal"] { column-gap: 12px !important; }
  .nav-cta { padding: 0 14px !important; font-size: 14px !important; }
}
