/* ============================================================
   BISUAL — Concurso Muralismo Barrio Bellavista
   Landing hero — generado desde Figma (node 3330:9)
   ============================================================ */

:root {
  --red: #ff3124;
  --dark: #242424;
  --cream: #e8d9d0;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--red);
  font-family: 'Inter', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body[data-section="inscripcion"],
body[data-section="material"] {
  background: var(--cream);
}

body[data-section="inscripcion"] .site-header,
body[data-section="material"] .site-header {
  background: var(--cream);
}

#app {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
}

/* Jurado, Premios y Material: la ventana queda fija a la altura del
   viewport para que el contenido haga scroll internamente y el pie
   (flor + logo) permanezca siempre visible pegado abajo, sin generar
   scroll de página ni mostrar la barra de scroll del navegador. */
@media (min-width: 861px) {
  body[data-section="jurado"],
  body[data-section="premios"],
  body[data-section="material"] {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }
}

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

a { text-decoration: none; color: inherit; }

/* ---------- Hero container ---------- */
/* Escala 1:1 con el diseño de Figma (1440x700) hasta ese ancho,
   y cambia a layout apilado para pantallas angostas. */

.hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  background: var(--red);
  overflow: hidden;
}

.hero__stage {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* El lienzo se dimensiona con las medidas reales del escenario (cqw/cqh):
     Safari resolvía mal el alto en % dentro de flex y el lienzo quedaba en 0. */
  container-type: size;
}

.hero__canvas {
  position: relative;
  width: auto;
  height: min(100%, 48.611vw); /* respaldo para navegadores sin container queries */
  max-width: 1440px;
  max-height: 100%;
  margin: 0 auto;
  aspect-ratio: 1440 / 700;
}

@supports (width: 1cqw) {
  .hero__canvas {
    width: min(100cqw, 1440px, 100cqh * 1440 / 700);
    height: auto;
    max-height: none;
  }
}

/* ---------- Header / Navbar (fijo, fuera del canvas de cada sección) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--red);
  padding: 28px 15.9% 0;
}

.navbar {
  width: 100%;
  max-width: 982px;
  margin: 0 auto;
  min-height: 30px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  border-radius: 2px;
  padding: 8px 12px;
}

.navbar a {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: clamp(11px, 1.05vw, 15px);
  white-space: nowrap;
}

.navbar__cta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar__icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.navbar a.is-active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Ancho de la barra según la sección: coincide con el borde del contenido
   de abajo en Información, Inscripción y Material (solo escritorio). */
@media (min-width: 861px) {
  .navbar { transition: max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

  body[data-section="informacion"] .site-header,
  body[data-section="inscripcion"] .site-header,
  body[data-section="material"] .site-header {
    padding-left: clamp(24px, 4vw, 56px);
    padding-right: clamp(24px, 4vw, 56px);
  }

  body[data-section="informacion"] .navbar { max-width: 1128px; }

  body[data-section="inscripcion"] .navbar {
    max-width: calc(clamp(280px, 29vw, 430px) + clamp(32px, 4vw, 64px) + 580px);
  }

  body[data-section="material"] .navbar {
    max-width: calc(min(100vw, 1440px) * 0.8334);
  }
}

/* En escritorio el contenedor de enlaces no genera caja: los enlaces siguen
   repartidos en la barra. En móvil se convierte en la capa del menú. */
.navbar__links { display: contents; }

.navbar__current,
.navbar__toggle { display: none; }

#app.is-loading {
  opacity: 0.6;
}

.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 32px);
  color: var(--cream);
}

/* ---------- Brand lockup (logo + presenta) ---------- */

.brand {
  position: absolute;
  left: 21.65%;
  top: 25.71%;
  width: 19.81%;
  height: 7.08%;
  display: flex;
  align-items: center;
  gap: 1.5vw;
}

.brand__mark-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 51%;
}

.brand__mark--wordmark {
  width: 100%;
  height: auto;
}

.brand__mark--sub {
  width: 68.7%;
  height: auto;
}

.brand__presenta {
  width: 32%;
  height: auto;
}

/* ---------- Artwork "BISUAL" ---------- */

.artwork {
  position: absolute;
  left: 17.15%;
  top: 32.05%;
  width: 29.69%;
}

.artwork__title {
  width: 100%;
  height: auto;
}

/* ---------- Headline ---------- */

.headline {
  position: absolute;
  left: 20.39%;
  top: 63.12%;
  width: 21.58%;
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(14px, 1.95vw, 28px);
  line-height: 1.15;
  color: var(--cream);
  text-align: center;
}

.headline em {
  font-weight: 400;
  font-style: italic;
}

/* ---------- Flower/eyes illustration ---------- */

.flower {
  position: absolute;
  left: 48.54%;
  top: 14%;
  width: 35.14%;
}

.flower img { width: 100%; height: auto; }

/* ---------- Dates bar ---------- */

.dates-bar {
  flex: 0 0 auto;
  width: min(68.2vw, 982px);
  margin: 0 auto 20px;
  background: var(--dark);
  padding: 1.7% 5.1%;
  box-sizing: border-box;
}

.dates-bar p {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(12px, 1.95vw, 28px);
  color: var(--white);
  text-align: center;
  white-space: nowrap;
}

body[data-section="inicio"] #app {
  flex: 1 1 0;
  min-height: 0;
  justify-content: flex-start;
  overflow: hidden;
}

body[data-section="inicio"] .hero {
  flex: 1 1 0;
  min-height: 0;
}

/* ============================================================
   Sección "Información"
   ============================================================ */

/* Grilla: caja oscura + bloque BISUAL arriba, caja beige a lo ancho abajo.
   El grupo se centra en ambos ejes dentro del alto disponible. */
.info {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-content: center;
  align-items: center;
  column-gap: clamp(32px, 4vw, 64px);
  row-gap: clamp(24px, 2.8vw, 40px);
  padding: 32px clamp(24px, 4vw, 56px);
  background: var(--red);
}

/* Conserva la composición original del logotipo con la flor (395 x 240 en
   el diseño de 1440 px), escalada al ancho de la columna. */
.info__visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  aspect-ratio: 395 / 240;
}

.info__lockup {
  position: absolute;
  left: 0;
  top: 13%;
  width: 100%;
}

.info__brand {
  position: absolute;
  left: 4.4%;
  bottom: calc(100% + 8px);
  display: flex;
  align-items: center;
  gap: 0.8vw;
}

.info__brand-mark-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 82px;
}

.info__brand-mark { width: 100%; height: auto; }
.info__brand-sub { width: 68.7%; height: auto; }
.info__brand-presenta { width: 66px; height: auto; }

.info__bisual {
  width: 46%;
  height: auto;
}

.info__headline {
  width: 56%;
  margin: 6% 0 0;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(12px, 1.26vw, 18px);
  line-height: 1.2;
  color: var(--cream);
  text-align: left;
}

.info__headline em {
  font-weight: 400;
  font-style: italic;
}

.info__flor {
  position: absolute;
  left: 46.95%;
  top: 13%;
  width: 53.05%;
}

.info__box {
  position: relative;
  border-radius: 8px;
  font-family: 'Inter', Arial, sans-serif;
  text-align: left;
  padding: clamp(24px, 2.6vw, 40px) clamp(24px, 3vw, 44px);
}

.info__box p { margin: 0 0 1em; line-height: 1.55; }
.info__box p:last-child { margin-bottom: 0; }

.info__box--dark {
  grid-column: 1;
  grid-row: 1;
  background: var(--dark);
  color: var(--white);
  font-size: clamp(14px, 1.1vw, 17px);
}

.info__box--cream {
  grid-column: 1 / -1;
  background: #f6c5a7;
  color: var(--dark);
  font-size: clamp(13px, 1vw, 15px);
}

.info__box-title {
  font-size: 1.08em;
  font-weight: 700;
  margin-bottom: 0.9em !important;
}

.info__box--cream ul {
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  column-gap: clamp(32px, 4vw, 56px);
}

.info__box--cream li {
  margin-bottom: 0.7em;
  line-height: 1.5;
  break-inside: avoid;
}
.info__box--cream li:last-child { margin-bottom: 0; }

/* ============================================================
   Sección "Inscripción"
   ============================================================ */

/* Flor y formulario forman un grupo centrado en ambos ejes: el grupo
   se centra horizontalmente y cada columna verticalmente, sin importar
   el alto del paso activo del formulario. */
.inscripcion {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  display: grid;
  grid-template-columns: clamp(280px, 29vw, 430px) minmax(0, 580px);
  justify-content: center;
  align-items: center;
  column-gap: clamp(32px, 4vw, 64px);
  padding: 24px clamp(24px, 4vw, 56px);
  background: var(--cream);
}

.insc__visual {
  position: relative;
  display: grid;
  container-type: inline-size;
}

.insc__visual > * { grid-area: 1 / 1; }

.insc__flor {
  position: relative;
  width: 100%;
}

.insc__flor img { width: 100%; height: auto; }

.insc__logo {
  position: absolute;
  left: 28.5%;
  top: 79%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 27%;
}

.insc__logo img:first-child { width: 100%; }
.insc__logo img:last-child { width: 68.7%; }

.insc__title {
  position: relative;
  align-self: start;
  justify-self: center;
  width: 84%;
  margin: 11% 0 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(24px, 4vw, 58px); /* Safari < 16 no soporta cqi */
  font-size: 13.6cqi;
  color: var(--red);
  text-align: center;
}

.insc__form {
  position: relative;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insc__form.is-success {
  max-width: 520px;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.insc__step.insc__step--proposal.is-active {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px 14px;
}

.insc__step.insc__step--data.is-active {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.insc__step--data > .insc__declaration,
.insc__step--data > .insc__nav,
.insc__step--proposal > #insc-obra-field,
.insc__step--proposal > .insc__field--inline,
.insc__step--proposal > #insc-detalle-ia-field,
.insc__step--proposal > .insc__field--rich,
.insc__step--proposal > .insc__submission-files,
.insc__step--proposal > .insc__declaration,
.insc__step--proposal > .insc__nav {
  grid-column: 1 / -1;
}

.insc__submission-files {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.insc__file-card {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border: 1px solid rgba(36, 36, 36, 0.22);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.insc__file-card .insc__upload {
  flex: 1;
  align-items: stretch;
}

.insc__file-card .insc__upload-hint { line-height: 1.4; }

.insc__file-card .insc__upload-btn { margin-top: auto; }

/* Zona de carga: clic (label del input) o arrastrar y soltar sobre la tarjeta. */
.insc__file-card label.insc__dropzone.insc__upload-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px dashed var(--dark);
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.3;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.insc__dropzone strong { font-weight: 600; }

.insc__drop-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.insc__drop-touch,
.insc__drop-ready { display: none; }

@media (hover: none) {
  .insc__drop-pointer { display: none; }
  .insc__drop-touch { display: inline; }
}

.insc__file-card:has(input[type="file"]:valid) .insc__drop-idle { display: none; }
.insc__file-card:has(input[type="file"]:valid) .insc__drop-ready { display: inline; }
.insc__file-card:has(input[type="file"]:valid) label.insc__dropzone.insc__upload-btn { border-style: solid; }

/* Loaders: vista previa del fotomontaje y subida de la postulación. */
.insc__file-card { position: relative; }

.insc__file-card.is-reading::after,
.insc__form.is-uploading .insc__file-card::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(36, 36, 36, 0.2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: insc-spin 0.8s linear infinite;
}

.insc__form.is-uploading .insc__file-card { opacity: 0.75; }
.insc__form.is-uploading .insc__file-card label.insc__dropzone { pointer-events: none; }

@keyframes insc-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .insc__file-card.is-reading::after,
  .insc__form.is-uploading .insc__file-card::after { animation-duration: 2.4s; }
}

.insc__progress { grid-column: 1 / -1; }
.insc__progress[hidden] { display: none; }

.insc__progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(36, 36, 36, 0.12);
}

.insc__progress-bar {
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.2s ease;
}

.insc__progress-label {
  margin: 6px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--dark);
}

.insc__file-card.is-dragover {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.7);
}

.insc__file-card.is-dragover label.insc__dropzone.insc__upload-btn {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.insc__file-card .insc__preview { margin-top: 0; }

.insc__file-card .insc__preview img { width: 40px; height: 40px; }

.insc__step--proposal #insc-detalle-ia { min-height: 44px; }

.insc__step--proposal > .insc__nav { margin-top: 0; }

.insc__field--inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  align-items: center;
  column-gap: 14px;
}

.insc__field--inline > label { margin: 0; }

.insc__field--inline > .insc__field-error { grid-column: 1 / -1; }

.insc__step--proposal .insc__editor { min-height: 82px; max-height: 82px; }


.insc__success {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.3vw, 19px);
  color: var(--dark);
}

.insc__success p,
.insc__success h3 { margin: 0; }

.insc__success-kicker {
  color: var(--red);
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.insc__success h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.1vw, 46px);
  font-weight: 500;
  line-height: 1.08;
}

.insc__success p:not(.insc__success-kicker) {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
}

.insc__success strong { font-weight: 700; }

.insc__success a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.insc__honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.insc__steps {
  display: flex;
  gap: 16px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
  font-family: 'Playfair Display', serif;
  font-size: clamp(11px, 1.2vw, 15px);
  color: rgba(36, 36, 36, 0.45);
}

.insc__steps li {
  position: relative;
  padding-bottom: 4px;
}

.insc__steps li.is-active {
  color: var(--dark);
  font-weight: 600;
}

.insc__steps li.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
}

.insc__error {
  margin: 0;
  padding: 8px 10px;
  border-radius: 2px;
  background: rgba(255, 49, 36, 0.12);
  border: 1px solid var(--red);
  color: var(--red);
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
}

.insc__step {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.insc__step.is-active { display: flex; }

.insc__field { width: 100%; }

.insc__field label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.25;
  color: var(--dark);
}

.insc__field > .insc__upload-hint { margin-top: 4px; }

.insc__field input,
.insc__field textarea,
.insc__field select {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--dark);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 14px);
  color: var(--dark);
  padding: 8px;
  box-sizing: border-box;
}

.insc__field input { height: 36px; }

.insc__field select { height: 38px; }

.insc__phone-control {
  display: flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--dark);
  border-radius: 2px;
  background: var(--cream);
}

.insc__phone-prefix {
  flex: 0 0 auto;
  padding: 0 0 0 9px;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 14px);
  white-space: nowrap;
}

.insc__phone-control input.insc__phone-input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
}

.insc__phone-control:focus-within {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
}

.insc__phone-control.is-invalid { border-color: var(--red); }

.insc__field textarea {
  min-height: 72px;
  resize: vertical;
}

.insc__field input:invalid.touched,
.insc__field input.is-invalid {
  border-color: var(--red);
}

.insc__field-error {
  margin: 4px 0 0;
  color: var(--red);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

.insc__field-error[hidden] { display: none; }

.insc__editor-box {
  background: var(--cream);
  border: 1px solid var(--dark);
  border-radius: 2px;
  overflow: hidden;
}

.insc__editor-box.is-invalid { border-color: var(--red); }

.insc__editor-box:focus-within {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
}

.insc__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 5px 6px;
  border-bottom: 1px solid rgba(36, 36, 36, 0.22);
}

.insc__toolbar button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--dark);
  cursor: pointer;
}

.insc__toolbar button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.insc__toolbar button svg circle { fill: currentColor; stroke: none; }

.insc__toolbar button.is-active,
.insc__toolbar button:hover,
.insc__toolbar button:focus-visible {
  background: var(--dark);
  color: var(--white);
}

.insc__editor {
  min-height: 120px;
  max-height: 260px;
  overflow-y: auto;
  padding: 9px 10px;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 14px);
  color: var(--dark);
  line-height: 1.4;
}

.insc__editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(36, 36, 36, 0.45);
}

.insc__editor ul,
.insc__editor ol { margin: 0; padding-left: 20px; }

.insc__counter {
  margin: 4px 0 0;
  text-align: right;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(36, 36, 36, 0.55);
}

.insc__counter.is-limit { color: var(--red); }

.insc__upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.insc__upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.insc__field label.insc__upload-btn,
.insc__upload-btn {
  display: inline-block;
  margin: 0;
  padding: 8px 14px;
  text-align: center;
  line-height: 1.2;
  background: var(--white);
  border: 1px solid var(--dark);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--dark);
  cursor: pointer;
}

.insc__field label.insc__upload-btn { font-family: 'Inter', sans-serif; font-size: 13px; }

.insc__upload-btn:hover { background: var(--dark); color: var(--white); }

.insc__upload-btn.is-invalid { border-color: var(--red); }

.insc__upload:focus-within .insc__upload-btn {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
}

.insc__upload-hint {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(36, 36, 36, 0.55);
}

.insc__file-name {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--dark);
}

.insc__declaration {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  column-gap: 8px;
  row-gap: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.insc__declaration > input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--red);
}

.insc__declaration label { margin: 0; }

.insc__declaration a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.insc__declaration .insc__field-error { grid-column: 2; }

.insc__preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.insc__preview[hidden] { display: none; }

.insc__preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--dark);
}

.insc__preview button {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-decoration: underline;
  color: var(--red);
  cursor: pointer;
}

.insc__nav {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.insc__btn,
.insc__submit {
  flex: 1;
  height: 40px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 2px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(13px, 1.53vw, 20px);
  cursor: pointer;
}

.insc__btn--back {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--dark);
}

.insc__btn:hover,
.insc__submit:hover { opacity: 0.9; }

.insc__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================================
   Sección "Jurado"
   ============================================================ */

.jury {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--red);
}

.jury__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 3.5% 19.93% 240px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.jury__scroll::-webkit-scrollbar { display: none; }

.jury__heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jury__heading h1 {
  margin: 0;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5.39vw, 78px);
  font-weight: 400;
  line-height: 0.7;
}

.jury__bisual {
  width: clamp(52px, 7.15vw, 103px);
  height: auto;
}

.jury__members {
  margin-top: 5%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.73%;
}

.jury__member {
  width: 100%;
  color: var(--white);
  font-family: 'Playfair Display', serif;
}

.jury__portrait {
  width: 100%;
  aspect-ratio: 193.027 / 209.667;
  object-fit: cover;
}

.jury__member h2,
.jury__member p {
  margin: 7px 0 0;
  font-size: clamp(14px, 1.67vw, 24px);
  line-height: 1.1;
}

.jury__member h2 { font-weight: 700; }

.jury__member p {
  font-style: italic;
  font-weight: 500;
}

.jury__member--payo h2 { white-space: nowrap; }

.jury__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 210px;
  pointer-events: none;
  z-index: 2;
}

.jury__headline {
  position: absolute;
  left: 17.85%;
  bottom: 24px;
  margin: 0;
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: clamp(14px, 1.69vw, 24px);
  font-weight: 600;
  line-height: 1.1;
}

.jury__headline em {
  font-style: italic;
  font-weight: 400;
}

.jury__flower {
  position: absolute;
  left: 35.25%;
  bottom: -258px;
  width: 32.43%;
}

.jury__sponsor {
  position: absolute;
  left: 73.33%;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 154.9px;
  pointer-events: auto;
}

.jury__sponsor img:first-child { width: 100%; }
.jury__sponsor img:last-child { width: 68.7%; }

/* ============================================================
   Sección "Premios"
   ============================================================ */

.awards {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--red);
  color: var(--white);
  font-family: 'Playfair Display', serif;
}

.awards__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 5% 220px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.awards__scroll::-webkit-scrollbar { display: none; }

.awards__heading {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.awards__heading h1 {
  margin: 0;
  font-size: clamp(54px, 7.29vw, 105px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1;
}

.awards__heading img {
  width: clamp(104px, 14.41vw, 207px);
  height: auto;
}

.awards__amount,
.awards__note,
.awards__production {
  margin: 0;
  white-space: nowrap;
}

.awards__amount {
  margin-top: 14px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(70px, 9.3vw, 134px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1;
}

.awards__note {
  margin-top: 6px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(12px, 1.54vw, 22px);
}

.awards__production {
  margin-top: 10px;
  font-size: clamp(30px, 4.07vw, 59px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1;
}

.awards__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 210px;
  pointer-events: none;
  z-index: 2;
}

.awards__headline {
  position: absolute;
  bottom: 24px;
  left: 17.85%;
  margin: 0;
  color: var(--cream);
  font-size: clamp(14px, 1.69vw, 24px);
  font-weight: 600;
  line-height: 1.1;
}

.awards__headline em {
  font-style: italic;
  font-weight: 400;
}

.awards__flower {
  position: absolute;
  bottom: -258px;
  left: 35.25%;
  width: 32.43%;
}

.awards__sponsor {
  position: absolute;
  bottom: 24px;
  left: 73.33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 154.9px;
  pointer-events: auto;
}

.awards__sponsor img:first-child { width: 100%; }
.awards__sponsor img:last-child { width: 68.7%; }

/* ============================================================
   Sección "Material"
   ============================================================ */

.material {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream);
}

.material__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  align-items: flex-start;
  gap: 4%;
  padding: 5% 8.33% 220px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.material__scroll::-webkit-scrollbar { display: none; }

/* margin-block:auto centra sin desbordar hacia arriba cuando no cabe. */
.material__info {
  flex: 0 1 480px;
  min-width: 260px;
  margin-block: auto;
}

.material__title {
  margin: 0;
  color: var(--red);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, min(5.7vw, 9vh), 82px);
  letter-spacing: -0.07em;
  line-height: 1;
}

.material__bisual {
  display: block;
  margin-top: 8px;
  width: clamp(80px, min(11.39vw, 17vh), 164px);
  height: auto;
}

.material__text {
  margin: 16px 0 0;
  color: var(--dark);
  font-family: 'Playfair Display', serif;
  font-size: clamp(14px, min(1.62vw, 2.7vh), 23px);
  line-height: 1.35;
}

.material__downloads {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
}

.material__cta {
  width: fit-content;
  max-width: 100%;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  text-align: center;
  background: var(--dark);
  color: var(--white);
  border-radius: 2px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(14px, min(1.76vw, 2.9vh), 25px);
  text-decoration: none;
}

.material__cta:hover { opacity: 0.9; }

.material__cta--secondary {
  border: 1px solid var(--dark);
  background: transparent;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: clamp(12px, 1vw, 14px);
}

.material__photo {
  flex: 1 1 528px;
  margin-block: auto;
  width: 100%;
  aspect-ratio: 528 / 375.8;
  max-height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.material__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 210px;
  pointer-events: none;
  z-index: 2;
}

.material__headline {
  position: absolute;
  left: 14.17%;
  bottom: 24px;
  margin: 0;
  color: var(--dark);
  font-family: 'Playfair Display', serif;
  font-size: clamp(14px, 1.69vw, 24px);
  font-weight: 600;
  line-height: 1.1;
}

.material__headline em {
  font-style: italic;
  font-weight: 400;
}

.material__flower {
  position: absolute;
  left: 35.25%;
  bottom: -258px;
  width: 32.43%;
}

.material__sponsor {
  position: absolute;
  left: 73.33%;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 154.9px;
  pointer-events: auto;
}

.material__sponsor img:first-child { width: 100%; }
.material__sponsor img:last-child { width: 68.7%; }

/* ============================================================
   Mobile — layout apilado
   ============================================================ */

@media (max-width: 860px) {

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 32px;
    gap: 20px;
  }

  .hero__stage,
  .hero__canvas {
    display: contents;
  }

  .brand {
    position: static;
    width: auto;
    height: auto;
    order: 2;
    justify-content: center;
  }

  .flower {
    position: static;
    width: 60%;
    order: 3;
  }

  .artwork {
    position: static;
    width: 80%;
    order: 4;
  }

  .headline {
    position: static;
    width: 100%;
    order: 5;
    font-size: 20px;
  }

  .dates-bar {
    position: static;
    transform: none;
    width: 100%;
    order: 6;
    padding: 14px 16px;
  }

  .dates-bar p {
    white-space: normal;
    font-size: 15px;
  }

  /* --- Sección Información --- */

  .info__visual { display: contents; }

  .info__box--cream ul { columns: 1; }

  .info {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 32px;
    gap: 20px;
  }

  .info__lockup {
    position: static;
    width: 100%;
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .info__bisual { width: 52%; }

  .info__headline {
    width: auto;
    text-align: center;
  }

  .info__brand {
    position: static;
    justify-content: center;
    margin-bottom: 8px;
  }

  .info__flor {
    position: static;
    width: 50%;
    order: 3;
  }

  .info__box--dark,
  .info__box--cream {
    position: static;
    width: 100%;
    height: auto;
    padding: 20px;
    font-size: 14px;
  }

  .info__box--dark { order: 4; }
  .info__box--cream { order: 5; }

  /* --- Header --- */

  .site-header {
    padding: 18px 4vw 0;
  }

  .navbar {
    max-width: none;
    justify-content: space-between;
    padding: 6px 6px 6px 16px;
  }

  .navbar__current {
    display: block;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 17px;
  }

  .navbar__toggle {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
  }

  .navbar__toggle-bars,
  .navbar__toggle-bars::before,
  .navbar__toggle-bars::after {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s ease, background-color 0.25s ease;
  }

  .navbar__toggle-bars { position: relative; }

  .navbar__toggle-bars::before,
  .navbar__toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
  }

  .navbar__toggle-bars::before { top: -7px; }
  .navbar__toggle-bars::after { top: 7px; }

  .navbar__toggle[aria-expanded="true"] .navbar__toggle-bars { background: transparent; }
  .navbar__toggle[aria-expanded="true"] .navbar__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .navbar__toggle[aria-expanded="true"] .navbar__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .navbar__toggle:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: -4px;
  }

  .navbar__links {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 80px 24px 40px;
    background: #111;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  }

  .navbar__links.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0s;
  }

  .navbar__links a {
    color: var(--white);
    font-size: 28px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .navbar__links.is-open a {
    opacity: 1;
    transform: none;
  }

  .navbar__links.is-open a:nth-child(2) { transition-delay: 0.04s; }
  .navbar__links.is-open a:nth-child(3) { transition-delay: 0.08s; }
  .navbar__links.is-open a:nth-child(4) { transition-delay: 0.12s; }
  .navbar__links.is-open a:nth-child(5) { transition-delay: 0.16s; }
  .navbar__links.is-open a:nth-child(6) { transition-delay: 0.2s; }
  .navbar__links.is-open a:nth-child(7) { transition-delay: 0.24s; }

  .navbar__links a.is-active {
    font-weight: 600;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
  }

  .navbar__links .navbar__cta {
    margin-top: 10px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 20px;
  }

  html.has-menu-open,
  html.has-menu-open body { overflow: hidden; }

  /* --- Sección Inscripción --- */

  .inscripcion {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 40px;
    gap: 16px;
  }

  .insc__visual { display: contents; }

  .insc__flor {
    position: static;
    width: 70%;
    order: 1;
  }

  .insc__logo {
    position: static;
    width: 45%;
    margin-top: -10%;
    order: 2;
  }

  .insc__title {
    position: static;
    align-self: auto;
    width: 100%;
    margin: 0;
    font-size: 40px;
    order: 3;
  }

  .insc__form {
    position: static;
    width: 100%;
    max-width: 400px;
    overflow: visible;
    padding: 0;
    order: 4;
    gap: 18px;
  }

  .insc__form.is-success {
    width: 100%;
    max-width: 540px;
    transform: none;
  }

  .insc__success { text-align: center; }

  .insc__success h3 { font-size: clamp(30px, 8vw, 42px); }

  .insc__success p:not(.insc__success-kicker) {
    font-size: 16px;
    line-height: 1.55;
  }

  .insc__step.insc__step--proposal.is-active,
  .insc__step.insc__step--data.is-active { grid-template-columns: minmax(0, 1fr); }

  .insc__submission-files { grid-template-columns: minmax(0, 1fr); }


  .insc__field--inline { grid-template-columns: minmax(0, 1fr) 110px; }

  /* --- Sección Jurado --- */

  .jury {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 46px 20px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .jury__scroll,
  .jury__footer {
    display: contents;
  }

  .jury__heading,
  .jury__members,
  .jury__headline,
  .jury__flower,
  .jury__sponsor {
    position: static;
  }

  .jury__heading {
    order: 1;
    margin-bottom: 32px;
  }

  .jury__heading h1 {
    font-size: 52px;
    line-height: 0.8;
  }

  .jury__bisual { width: 74px; }

  .jury__members {
    order: 2;
    width: min(100%, 520px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .jury__member h2,
  .jury__member p {
    font-size: 20px;
    line-height: 1.1;
  }

  .jury__headline {
    order: 3;
    align-self: flex-start;
    margin: 38px 0 0;
    font-size: 20px;
    line-height: 1.1;
  }

  .jury__flower {
    order: 4;
    width: min(70%, 310px);
    margin: 14px 0 -44px;
  }

  .jury__sponsor {
    order: 5;
    width: 130px;
    margin: 0 0 0 auto;
  }

  /* --- Sección Premios --- */

  .awards {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 54px 20px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .awards__scroll,
  .awards__footer {
    display: contents;
  }

  .awards__heading,
  .awards__amount,
  .awards__note,
  .awards__production,
  .awards__headline,
  .awards__flower,
  .awards__sponsor {
    position: static;
    transform: none;
  }

  .awards__heading {
    order: 1;
    gap: 5px;
  }

  .awards__heading h1 { font-size: 56px; }
  .awards__heading img { width: 110px; }

  .awards__amount {
    order: 2;
    margin-top: 24px;
    font-size: clamp(66px, 18vw, 105px);
  }

  .awards__note {
    order: 3;
    margin-top: 4px;
    font-size: 16px;
  }

  .awards__production {
    order: 4;
    margin-top: 34px;
    font-size: clamp(30px, 8vw, 48px);
  }

  .awards__headline {
    order: 5;
    align-self: flex-start;
    margin: 70px 0 0;
    color: var(--cream);
    font-size: 20px;
    line-height: 1.1;
  }

  .awards__flower {
    order: 6;
    width: min(70%, 310px);
    margin: 14px 0 -44px;
  }

  .awards__sponsor {
    order: 7;
    width: 130px;
    margin: 0 0 0 auto;
  }

  /* --- Sección Material --- */

  .material {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 54px 20px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .material__scroll,
  .material__info,
  .material__footer {
    display: contents;
  }

  .material__title,
  .material__bisual,
  .material__text,
  .material__downloads,
  .material__cta,
  .material__photo,
  .material__headline,
  .material__flower,
  .material__sponsor {
    position: static;
  }

  .material__title {
    order: 1;
    align-self: flex-start;
    font-size: 52px;
  }

  .material__bisual {
    order: 2;
    align-self: flex-start;
    width: 110px;
    margin-top: -6px;
  }

  .material__text {
    order: 3;
    align-self: flex-start;
    width: 100%;
    margin-top: 18px;
    font-size: 17px;
  }

  .material__downloads {
    order: 4;
    width: 100%;
    margin-top: 20px;
  }

  .material__cta {
    align-self: flex-start;
    margin-top: 0;
    width: auto;
    height: auto;
    padding: 10px 20px;
    font-size: 18px;
  }

  .material__photo {
    order: 5;
    margin-top: 32px;
    width: 100%;
    height: auto;
    aspect-ratio: 528 / 375.8;
  }

  .material__headline {
    order: 6;
    align-self: flex-start;
    margin: 38px 0 0;
    font-size: 20px;
    line-height: 1.1;
  }

  .material__flower {
    order: 7;
    width: min(70%, 310px);
    margin: 14px 0 -44px;
  }

  .material__sponsor {
    order: 8;
    width: 130px;
    margin: 0 0 0 auto;
  }
}

/* ============================================================
   Visor de PDF (bases legales)
   ============================================================ */

html.has-pdf-viewer,
html.has-pdf-viewer body { overflow: hidden; }

.pdf-viewer {
  width: min(1000px, calc(100vw - 48px));
  height: calc(100vh - 48px); /* Safari < 15.4 no soporta dvh */
  height: calc(100dvh - 48px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #3a3a3a;
  color: var(--white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pdf-viewer[open] {
  display: flex;
  flex-direction: column;
}

.pdf-viewer::backdrop { background: rgba(20, 20, 20, 0.72); }

.pdf-viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px 12px 24px;
  background: var(--dark);
  flex: 0 0 auto;
}

.pdf-viewer__title {
  margin: 0;
  overflow: hidden;
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pdf-viewer__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pdf-viewer__download,
.pdf-viewer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.pdf-viewer__download {
  padding: 0 16px;
  background: var(--red);
  color: var(--white);
}

.pdf-viewer__download:hover { background: #e0271c; }

.pdf-viewer__close {
  width: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
}

.pdf-viewer__close:hover { background: rgba(255, 255, 255, 0.12); }

.pdf-viewer__download svg,
.pdf-viewer__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdf-viewer__download:focus-visible,
.pdf-viewer__close:focus-visible,
.pdf-viewer__body:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.pdf-viewer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 24px;
  overscroll-behavior: contain;
}

.pdf-viewer__status {
  margin: 32px auto;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  text-align: center;
}

.pdf-viewer__status a { color: var(--white); text-decoration: underline; }

.pdf-viewer__pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pdf-viewer__page {
  display: block;
  max-width: 100%;
  height: auto;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

@media (max-width: 860px) {
  .pdf-viewer {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }

  .pdf-viewer__bar { padding: 10px 10px 10px 16px; }

  .pdf-viewer__download { padding: 0 12px; }

  .pdf-viewer__body { padding: 12px; }

  .pdf-viewer__pages { gap: 10px; }
}

@media (max-width: 480px) {
  .pdf-viewer__download-extra { display: none; }
}

/* Jurado, Premios y Material en escritorio: alto mínimo de la ventana en vez
   de alto fijo. El pie (titular, flor y logo) va después del contenido, no
   encima: en pantallas altas se ve igual (pie abajo, flor asomando) y en
   pantallas bajas la página hace scroll en vez de superponer elementos. */
@media (min-width: 861px) {
  body[data-section="jurado"],
  body[data-section="premios"],
  body[data-section="material"] {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .jury,
  .awards,
  .material {
    flex: 1 0 auto;
    height: auto;
  }

  .jury__scroll,
  .awards__scroll,
  .material__scroll {
    flex: 1 0 auto;
    overflow: visible;
    padding-bottom: 32px;
  }

  .jury__footer,
  .awards__footer,
  .material__footer {
    position: relative;
    inset: auto;
    flex: 0 0 210px;
  }

  /* Antes el alto fijo de la sección limitaba la foto; ahora se limita aquí. */
  .material__photo {
    min-width: 0;
    max-height: max(260px, calc(100vh - 330px));
  }
}
