@font-face {
  font-family: Roboto;
  src: url("./fonts/roboto-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url("./fonts/roboto-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url("./fonts/roboto-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url("./fonts/roboto-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url("./fonts/roboto-latin-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("./fonts/lato-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("./fonts/lato-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("./fonts/montserrat-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("./fonts/montserrat-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --background: #f1f6fc;
  --backdrop-image: url("./assets/fondo-orgullo-1200.webp");
  --backdrop-veil: rgb(5 9 26 / 55%);
  --form-surface: #fff;
  --card-border: #d9e3f0;
  --card-shadow: 0 20px 56px rgb(5 9 26 / 24%);
  --footer-surface: rgb(255 255 255 / 94%);
  --form-radius: 48px;
  --brand: #395d8a;
  --heading: #102743;
  --text: #343434;
  --support: #626a73;
  --border: #dbdee2;
  --surface: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  /* La capa oscura atenúa solo la imagen; el contenido conserva su opacidad. */
  background-color: var(--background);
  background-image:
    linear-gradient(var(--backdrop-veil), var(--backdrop-veil)),
    var(--backdrop-image);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--text);
  font:
    17px/1.6 Lato,
    Arial,
    sans-serif;
}
h1,
h2,
h3 {
  font-family: Montserrat, Arial, sans-serif;
  color: var(--heading);
  line-height: 1.35;
}
h1 {
  font-size: 36px;
  line-height: 44px;
  margin: 16px 0 24px;
}
h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 32px 0 16px;
}
h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 20px;
}
p {
  margin: 0 0 24px;
}
a {
  color: var(--brand);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
button,
.button {
  font:
    700 17px/1.4 Lato,
    Arial,
    sans-serif;
  background: var(--heading);
  color: #fff;
  min-height: 52px;
  border: 1px solid var(--heading);
  border-radius: 8px;
  padding: 13px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: var(--brand);
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.secondary {
  color: var(--heading);
  background: #fff;
  border-color: var(--brand);
}
.secondary:hover {
  background: var(--background);
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.logo {
  display: block;
  width: 128px;
  height: 62px;
  object-fit: contain;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: white;
  z-index: 10;
  padding: 16px;
}
.skip:focus {
  top: 8px;
}
.dev-notice {
  background: var(--background);
  text-align: center;
  font-size: 13px;
  line-height: 20px;
  padding: 6px 16px;
  color: var(--heading);
  border-bottom: 1px solid var(--border);
}
footer {
  max-width: 960px;
  margin: 24px auto 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: var(--support);
  background: var(--footer-surface);
  border-radius: 8px;
  padding: 12px 16px;
}
.announcement {
  max-width: 960px;
  margin: 32px auto;
}
.paper {
  position: relative;
  display: flex;
  border: 1px solid var(--card-border);
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.reading {
  width: calc(100% - 116px);
  padding: 48px;
}
.ribbon {
  width: 116px;
  flex: none;
  align-self: stretch;
  background-color: var(--brand);
  background-image: url("./assets/cintilla-colinas.svg");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
}
.institution {
  text-align: center;
}
.institution .logo {
  margin: 0 auto 40px;
}
.eyebrow {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 16px;
}
.institution .eyebrow {
  font-size: 18px;
}
.institution h1 {
  margin-bottom: 24px;
}
.subtitle {
  font-size: 21px;
  line-height: 32px;
  color: var(--support);
  margin: 0 0 40px;
}
.prose p,
.prose li {
  text-align: justify;
  -webkit-hyphens: none;
  hyphens: none;
  overflow-wrap: break-word;
}
.prose h2 {
  margin-top: 32px;
}
.prose ol {
  padding-left: 24px;
}
.prose li {
  margin-bottom: 16px;
}
.prose .deadline {
  color: var(--brand);
  text-align: center;
  margin: 32px 0;
}
.prose .signature p {
  text-align: center;
}
.signature {
  padding: 8px 0 24px;
}
.hashtag {
  font-weight: 700;
  color: var(--brand);
}
.important {
  font-size: 15px;
  line-height: 24px;
}
.acceptance {
  padding: 24px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--background);
  margin-top: 8px;
}
.acceptance h2 {
  font:
    700 15px/24px Lato,
    Arial,
    sans-serif;
  margin: 0 0 16px;
}
.acceptance p {
  margin-bottom: 16px;
}
.checkbox {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 48px;
  cursor: pointer;
  margin: 0 0 16px;
}
.checkbox input {
  width: 24px;
  height: 24px;
  flex: none;
  accent-color: var(--brand);
}
.form-page {
  max-width: 880px;
  /* El blanco facilita la lectura; borde y sombra conectan la tarjeta con el fondo. */
  background: var(--form-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--form-radius);
  box-shadow: var(--card-shadow);
  padding: 32px;
  margin: 32px auto;
}
.form-header .logo {
  margin-bottom: 24px;
}
.form-header p {
  margin-bottom: 16px;
}
.form-header .small {
  margin-bottom: 32px;
}
.form-header .eyebrow {
  font-size: 15px;
}
.small {
  font-size: 15px;
  line-height: 24px;
  color: var(--support);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.field {
  min-width: 0;
  margin: 0 0 8px;
}
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  font:
    400 17px/27.2px Lato,
    Arial,
    sans-serif;
  min-height: 56px;
  border: 1px solid var(--support);
  border-radius: 4px;
  padding: 12px;
  color: var(--text);
  background: #fff;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field-error {
  display: block;
  color: #9b2226;
  font-size: 15px;
  margin-top: 8px;
}
.field [aria-invalid="true"] {
  border-color: #9b2226;
}
.categories {
  margin-top: 32px;
}
.note {
  background: var(--background);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.category {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
  min-width: 0;
}
.category legend {
  color: var(--heading);
  font:
    600 21px/29px Montserrat,
    Arial,
    sans-serif;
  max-width: 100%;
  padding: 0 8px;
}
.category-number {
  color: var(--brand);
}
.category p {
  margin: 16px 0;
}
.status {
  font-size: 15px;
  color: var(--support);
}
.candidate-fields {
  margin-top: 24px;
}
.contact {
  font-size: 15px;
  line-height: 24px;
  margin-top: 32px;
  overflow-wrap: anywhere;
}
.error-summary {
  border: 1px solid #9b2226;
  background: #fff8f8;
  color: #7d191d;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}
.error-summary a {
  color: inherit;
}
.review-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.review-card:first-child,
.omitted {
  background: var(--background);
}
dl {
  margin: 0;
}
dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--support);
  margin-top: 16px;
}
dd {
  margin: 4px 0 0;
  white-space: pre-wrap;
}
.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.reference {
  font-size: 21px;
  font-weight: 700;
  color: var(--heading);
}
@media (max-width: 1000px) {
  :root {
    --backdrop-image: url("./assets/fondo-orgullo-900.webp");
  }
  .announcement {
    margin: 32px;
  }
  .reading {
    padding: 40px;
    width: calc(100% - 100px);
  }
  .ribbon {
    width: 100px;
  }
  .form-page {
    margin: 32px;
    max-width: none;
  }
}
@media (max-width: 600px) {
  :root {
    --backdrop-image: url("./assets/fondo-orgullo-375.webp");
  }
  h1 {
    font-size: 26px;
    line-height: 34px;
  }
  h2 {
    font-size: 21px;
  }
  .announcement {
    margin: 24px 16px;
  }
  .reading {
    width: calc(100% - 48px);
    padding: 24px 20px;
  }
  .ribbon {
    width: 44px;
    margin-right: 4px;
  }
  .institution .logo {
    margin-bottom: 40px;
  }
  .institution .eyebrow {
    font-size: 15px;
  }
  .subtitle {
    font-size: 17px;
    line-height: 27.2px;
    margin-bottom: 40px;
  }
  .institution h1 {
    margin: 16px 0;
  }
  .prose h2 {
    font-size: 21px;
  }
  .acceptance {
    padding: 16px;
  }
  .checkbox {
    align-items: flex-start;
    gap: 12px;
  }
  .checkbox input {
    margin-top: 3px;
  }
  .acceptance button {
    width: 100%;
    padding: 12px;
  }
  .form-page {
    margin: 24px 16px 32px;
    padding: 20px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-header .logo {
    margin-bottom: 24px;
  }
  .category {
    padding: 20px 16px;
  }
  .category legend {
    font-size: 19px;
    line-height: 27px;
    padding: 0 4px;
  }
  .category button {
    width: 100%;
    padding: 12px;
  }
  .review-card {
    padding: 20px;
  }
  .actions {
    flex-direction: column;
  }
  .actions button {
    width: 100%;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
  .note {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* La convocatoria usa Roboto; hereda los tamaños, pesos y cursivas existentes. */
.announcement,
.announcement h1,
.announcement h2,
.announcement h3,
.announcement .eyebrow,
.announcement button {
  font-family: Roboto, Arial, sans-serif;
}

/* Formulario por preguntas: la imagen es la superficie principal, sin tarjeta exterior. */
.wizard-page {
  min-height: 100svh;
  color: #fff;
  font-family: Lato, Arial, sans-serif;
}
.wizard-shell {
  width: min(100%, 1200px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 36px 48px 40px;
  display: flex;
  flex-direction: column;
}
.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 24px;
}
.wizard-header .logo {
  filter: brightness(0) invert(1);
}
.wizard-header h1 {
  margin: 0;
  font-family: Lato, Arial, sans-serif;
  font-weight: 400;
  color: #fff;
  text-align: right;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.02em;
}
.wizard-content {
  width: min(100%, 720px);
  margin: auto;
  padding: 72px 0;
}
.wizard-panel[hidden],
.wizard-page #capture[hidden],
.wizard-page #review[hidden],
.wizard-page button[hidden] {
  display: none !important;
}
.wizard-kicker {
  color: #e8c78a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.035em;
  margin: 0 0 24px;
}
.wizard-page h2 {
  color: #fff;
  font:
    700 clamp(30px, 3.5vw, 48px)/1.2 Montserrat,
    Arial,
    sans-serif;
  margin: 0 0 24px;
}
.wizard-help {
  color: #dce5f2;
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 24px;
}
.wizard-deadline {
  color: #dce5f2;
  font-size: 16px;
  margin: 0;
}
.wizard-page .field {
  margin: 0 0 16px;
}
.wizard-page .field label {
  color: #dce5f2;
  font-size: 15px;
}
.wizard-page .field input,
.wizard-page .field textarea {
  min-height: 78px;
  padding: 20px 24px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 12px;
  background: rgb(255 255 255 / 6%);
  color: #fff;
  font-size: 25px;
  line-height: 1.35;
}
.wizard-page .field textarea {
  min-height: 180px;
  font-size: 20px;
}
.wizard-page .field input:focus-visible,
.wizard-page .field textarea:focus-visible,
.wizard-page button:focus-visible,
.wizard-choice:focus-within {
  outline: 3px solid #e8c78a;
  outline-offset: 3px;
}
.wizard-page .field-error,
.wizard-error {
  color: #ffb9bc;
  font-size: 16px;
  line-height: 1.4;
}
.wizard-page .field [aria-invalid="true"] {
  border-color: #ffb9bc;
}
.wizard-page .wizard-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.wizard-page button {
  min-height: 56px;
  border-radius: 16px;
  padding: 12px 28px;
  font-size: 17px;
  background: #fff;
  color: #102743;
  border: 1px solid #fff;
}
.wizard-page button:hover {
  background: #e8c78a;
  border-color: #e8c78a;
  color: #102743;
}
.wizard-page button.secondary {
  color: #fff;
  background: rgb(255 255 255 / 7%);
  border-color: rgb(255 255 255 / 35%);
}
.wizard-page button.secondary:hover {
  background: rgb(255 255 255 / 18%);
}
.wizard-page button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.wizard-choices {
  display: grid;
  gap: 16px;
}
.wizard-choice {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 16px 20px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 12px;
  background: rgb(255 255 255 / 4%);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}
.wizard-choice:has(input:checked) {
  border-color: #e8c78a;
  background: rgb(232 199 138 / 13%);
}
.wizard-choice input {
  width: 26px;
  height: 26px;
  flex: none;
  margin: 0;
  accent-color: #e8c78a;
}
.wizard-progress {
  margin-top: auto;
  color: #dce5f2;
  font-size: 15px;
}
.wizard-progress p {
  margin: 16px 0 0;
}
.wizard-bars {
  display: flex;
  gap: 8px;
  width: 240px;
}
.wizard-bars span {
  width: 25%;
  height: 4px;
  background: rgb(255 255 255 / 22%);
  border-radius: 2px;
}
.wizard-bars .done {
  background: #e8c78a;
}
.wizard-page .review-card {
  background: rgb(255 255 255 / 6%);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}
.wizard-page .review-card h3 {
  color: #e8c78a;
  margin: 0;
  font-size: 18px;
}
.wizard-page .review-card dt {
  color: #dce5f2;
}
.wizard-page .review-card dd {
  color: #fff;
}
.wizard-page .review-edit {
  margin-top: 16px;
}
.wizard-page .error-summary {
  background: rgb(125 25 29 / 85%);
  color: #fff;
  border-color: #ffb9bc;
}
body:has(.wizard-page) footer {
  background: transparent;
  color: #dce5f2;
  margin-top: 0;
}
body:has(.wizard-page) footer a {
  color: #fff;
}
@media (max-width: 600px) {
  .wizard-shell {
    padding: 24px 16px 32px;
  }
  .wizard-header h1 {
    font-size: 12px;
  }
  .wizard-content {
    padding: 72px 0;
  }
  .wizard-page h2 {
    font-size: 30px;
  }
  .wizard-help {
    font-size: 18px;
  }
  .wizard-page .field input,
  .wizard-page .field textarea {
    font-size: 22px;
  }
  .wizard-choice {
    font-size: 17px;
    min-height: 88px;
  }
  .wizard-page .wizard-actions {
    flex-direction: column;
  }
  .wizard-page .wizard-actions button {
    width: 100%;
  }
}
