/*
  GUÍA DE EDICIÓN DEL CSS
  Sangría: 2 espacios. Cada propiedad ocupa una línea.
  Colores y fuentes: :root, al principio del archivo.
  Logotipo de portada: .hero-identity y .identity-frame.
  Bienvenida centrada y justificada: .welcome-content, al final.
  Móvil y tableta: buscar @media y el ancho de pantalla correspondiente.
  Algunas reglas tienen ajustes posteriores: conservar su orden al editar.
  Se mantiene el mismo orden de reglas y propiedades de la versión anterior.
*/

/* CUIEET34: estilos independientes. Modifica aquí la paleta y la tipografía. */

/* ==============================================================
   PALETA USAL, TIPOGRAFÍAS Y ANCHURA GENERAL
   Editar aquí los colores y las fuentes de toda la web.
   ============================================================== */

:root {
  /* Identidad USAL: códigos hexadecimales de la referencia facilitada. */
  --usal-red: #d22020;
  /* Rojo Vítor */
  --usal-aluminium: #4d4d4d;
  /* Gris aluminio */
  --usal-blue: #385e9d;
  /* Azul Centenario */
  --usal-silver: #eaeaea;
  /* Gris plata */
  --red: var(--usal-red);
  --blue: var(--usal-blue);
  --ink: var(--usal-aluminium);
  --muted: var(--usal-aluminium);
  --silver: var(--usal-silver);
  --paper: #ffffff;
  --line: rgb(77 77 77 / .24);
  --max-width: 1200px;
  --sans: "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

/* ==============================================================
   BASE, ACCESIBILIDAD Y ENLACES
   Normalización general, foco por teclado y salto al contenido.
   ============================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

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

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

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

section[id],
details[id],
div[id] {
  scroll-margin-top: 118px;
}

.container {
  width: min(var(--max-width), calc(100% - 80px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  color: white;
  background: var(--red);
}

.skip-link:focus {
  top: 12px;
}

/* ==============================================================
   CABECERA Y BARRA SUPERIOR
   ============================================================== */

.edition-bar {
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  letter-spacing: .045em;
}

.edition-bar .container {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.edition-status {
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.brand > span {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.055em;
}

.brand-number {
  color: var(--red);
}

.brand small {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  letter-spacing: .015em;
  font-size: 12px;
  color: var(--muted);
}

/* ==============================================================
   MENÚ PRINCIPAL Y DESPLEGABLES
   ============================================================== */

nav {
  display: flex;
  gap: 25px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}

nav > a:not(.nav-cta):hover,
.nav-group summary:hover {
  color: var(--red);
}

.nav-group {
  position: relative;
}

.nav-group summary {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
}

summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "⌄";
  font-size: 15px;
  color: var(--red);
}

.nav-group[open] summary::after {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 224px;
  padding: 12px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 14px 24px rgb(77 77 77 / .08);
}

.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  font-weight: 400;
}

.nav-dropdown a:hover {
  background: var(--silver);
  color: var(--blue);
}

.nav-cta {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  padding: 12px 18px;
  color: white;
  background: var(--red);
}

.nav-cta:hover {
  background: var(--blue);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 8px 12px;
  cursor: pointer;
}

.menu-toggle[hidden] {
  display: none;
}

/* ==============================================================
   INICIO / PORTADA
   El tamaño del logotipo se controla con .hero-identity y .identity-frame.
   ============================================================== */

.hero {
  background: var(--silver);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  align-items: center;
  gap: 52px;
  padding-top: 44px;
  padding-bottom: 28px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--red);
  line-height: 1.5;
  margin: 0 0 20px;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.red-rule {
  width: 30px;
  height: 2px;
  background: var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.045em;
}

h1 {
  font-size: clamp(64px, 7vw, 100px);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -.06em;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -.035em;
  margin-bottom: 22px;
}

.hero-tagline em {
  color: var(--red);
}

.hero .eyebrow {
  font-size: 16px;
  text-transform: none;
  letter-spacing: .035em;
}

h1 em {
  color: var(--red);
  font-weight: 400;
}

.hero-description {
  max-width: 540px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 14px;
}

.hero-intro {
  max-width: 500px;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 27px;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 23px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.button-primary {
  background: var(--red);
  color: white;
}

.button-primary:hover {
  background: var(--blue);
}

.text-link {
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.text-link:hover {
  color: var(--red);
}

.hero-identity {
  max-width: 480px;
  width: 100%;
  justify-self: end;
}

.identity-frame {
  border: 1px solid var(--line);
  padding: 40px;
  background: white;
  position: relative;
}

.identity-frame::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  top: -7px;
  right: -7px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
}

.hero-identity p {
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  margin: 18px 0 0;
  letter-spacing: .035em;
}

.entry-banner {
  margin: 0;
  background: var(--silver);
}

.entry-banner img {
  width: 100%;
  height: auto;
  background: var(--silver);
}

/* ==============================================================
   FRANJA INFORMATIVA OPCIONAL
   Estilos conservados para esta franja; actualmente no está incluida en el HTML.
   ============================================================== */

.event-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.event-strip-inner {
  min-height: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.15fr;
  align-items: center;
}

.event-strip-inner > div {
  border-right: 1px solid var(--line);
  padding-left: 28px;
}

.event-strip-inner > div:first-child {
  padding-left: 0;
}

.meta-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 3px;
}

.event-strip strong {
  font-size: 16px;
  font-weight: 600;
}

.event-strip a {
  font-size: 14px;
  justify-self: end;
  color: var(--red);
  font-weight: 600;
  display: flex;
  gap: 26px;
}

/* ==============================================================
   SECCIONES, TÍTULOS Y COMPONENTES COMPARTIDOS
   ============================================================== */

.section {
  padding-top: 90px;
  padding-bottom: 90px;
}

.section-heading {
  margin-bottom: 44px;
}

.section-heading .eyebrow {
  margin-bottom: 15px;
}

h2 {
  font-size: clamp(32px, 3.7vw, 49px);
  line-height: 1.18;
  margin-bottom: 0;
}

h3 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -.025em;
}

.heading-with-aside {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.section-aside {
  max-width: 315px;
  margin-bottom: 3px;
  font-size: 15px;
  color: var(--muted);
}

/* ==============================================================
   BIENVENIDA: COMPONENTES GENERALES
   La distribución actual se ajusta al final del archivo con .welcome-content.
   ============================================================== */

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 100px;
}

.lead {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.025em;
}

.prose p:not(.lead),
.registration-copy p:not(.lead) {
  color: var(--muted);
}

.prose p {
  margin-bottom: 20px;
}

.welcome-note {
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  gap: 22px;
  align-items: center;
}

.welcome-note > span {
  color: var(--red);
  font-size: 27px;
}

.welcome-note p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.welcome-note strong {
  color: var(--ink);
}

.section-tinted {
  background: var(--silver);
}

.section-tinted .eyebrow,
.hero .eyebrow {
  color: var(--blue);
}

.section-tinted .text-link:hover,
.hero .text-link:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.status-pill {
  display: inline-block;
  align-self: flex-end;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  background: var(--paper);
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 6px 11px;
  border-radius: 2px;
}

/* ==============================================================
   03 / ENVÍO DE TRABAJOS
   ============================================================== */

.participation-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 110px;
}

.small-note {
  font-size: 14px;
  color: var(--muted);
}

.prose .small-note {
  margin-top: 15px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 23px;
  padding: 23px 0;
}

.steps li > span {
  color: var(--red);
  font-size: 15px;
  font-weight: 600;
  padding-top: 3px;
}

.steps h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.steps p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 0;
}

.format-band {
  margin-top: 37px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.format-band > span {
  font-size: 14px;
  color: var(--muted);
}

.format-band p {
  margin: 0;
  font-size: 14px;
}

.format-band i {
  color: var(--red);
  font-style: normal;
  margin: 0 14px;
}

/* ==============================================================
   04 / FECHAS IMPORTANTES
   ============================================================== */

.section-dark {
  color: white;
  background: var(--ink);
}

.section-dark .eyebrow {
  color: var(--paper);
}

.section-dark .section-aside {
  color: var(--silver);
}

.section-dark :focus-visible {
  outline-color: var(--paper);
}

.dates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 50px 0 0;
}

.dates-grid > div {
  border-top: 1px solid rgb(234 234 234 / .4);
  padding-top: 24px;
}

.dates-grid dt {
  font-size: 15px;
  color: var(--silver);
}

.dates-grid dd {
  font-family: var(--serif);
  font-size: 28px;
  margin: 12px 0 5px;
}

.dates-grid p {
  font-size: 14px;
  color: var(--silver);
  margin-bottom: 0;
}

/* ==============================================================
   05 / INSCRIPCIÓN
   ============================================================== */

.registration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
}

.registration-panel {
  padding: 38px;
  background: var(--silver);
  border: 1px solid var(--line);
}

.registration-panel h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
}

.check-list {
  list-style: none;
  padding: 0;
  font-size: 15px;
  margin: 24px 0;
}

.check-list li {
  margin-bottom: 12px;
  padding-left: 22px;
  position: relative;
}

.check-list li::before {
  content: "↗";
  position: absolute;
  left: 0;
  color: var(--red);
}

.panel-status {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: center;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ==============================================================
   06 / PROGRAMA Y DESPLEGABLES
   ============================================================== */

.program-list details {
  border-top: 1px solid var(--line);
}

.program-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.program-list summary {
  display: grid;
  grid-template-columns: 245px 1fr 25px;
  gap: 20px;
  align-items: center;
  list-style: none;
  cursor: pointer;
  padding: 25px 0;
  font-size: 15px;
}

.program-category {
  font-family: var(--serif);
  font-size: 26px;
}

.detail-mark {
  color: var(--red);
  font-size: 22px;
  text-align: right;
}

.program-list details[open] .detail-mark {
  transform: rotate(45deg);
}

.program-content {
  margin-left: 265px;
  max-width: 720px;
  padding-bottom: 22px;
  font-size: 14px;
  color: var(--muted);
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  gap: 8px;
  margin: 22px 0;
}

.inline-list li {
  border: 1px solid var(--line);
  padding: 7px 12px;
  font-size: 14px;
  color: var(--ink);
}

/* ==============================================================
   07 / COMITÉS Y ENTIDADES
   ============================================================== */

.committee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px;
}

.committee-grid article {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.line-icon {
  color: var(--red);
  font-size: 14px;
  display: block;
  margin-bottom: 24px;
}

.committee-grid p {
  color: var(--muted);
  font-size: 14px;
}

.quiet-status {
  font-size: 14px;
  color: var(--muted);
}

.entities-block {
  margin-top: 58px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.entities-block .eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
}

.entities-block h3 {
  font-size: 18px;
  margin-bottom: 0;
}

.entities-block > p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ==============================================================
   08 / SEDE Y ALOJAMIENTO
   ============================================================== */

.venue-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 85px;
}

.venue-visual {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}

.venue-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.venue-visual > div {
  padding: 30px;
}

.venue-visual .eyebrow {
  font-size: 12px;
}

.venue-visual h3 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  margin-top: 12px;
  margin-bottom: 18px;
  line-height: 1.2;
}

.venue-info article {
  display: flex;
  gap: 22px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.venue-info article:first-child {
  padding-top: 0;
  border-top: 0;
}

.venue-info article > span {
  font-size: 14px;
  color: var(--red);
  padding-top: 4px;
}

.venue-info h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.venue-info p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 0;
}

/* ==============================================================
   09 / DOCUMENTACIÓN Y DESCARGAS
   ============================================================== */

.downloads-label {
  font-size: 15px;
  margin-bottom: 20px;
}

.download-list {
  border-top: 1px solid var(--line);
}

.download-list > a {
  display: grid;
  grid-template-columns: 68px 1fr 35px;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 21px 0;
  transition: background .15s;
}

.download-list > a:hover {
  background: var(--silver);
}

.file-type {
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 0;
  text-align: center;
}

.download-list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.download-list small {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 3px;
}

.download-arrow {
  justify-self: end;
  font-size: 22px;
  color: var(--blue);
}

/* ==============================================================
   PREGUNTAS FRECUENTES
   ============================================================== */

.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
}

.faq-grid h2 {
  font-size: 38px;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.faq-list summary::after {
  content: "+";
  color: var(--red);
  font-size: 20px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  font-size: 15px;
  color: var(--muted);
  padding-bottom: 10px;
}

/* ==============================================================
   10 / CONTACTO
   ============================================================== */

.contact-section {
  background: var(--red);
  color: white;
  padding: 65px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 95px;
  align-items: center;
}

.contact-section .eyebrow {
  color: var(--paper);
}

.contact-section h2 {
  font-size: 43px;
}

.contact-section h3 {
  font-size: 17px;
}

.contact-section p:not(.eyebrow) {
  color: var(--paper);
  font-size: 15px;
  margin-bottom: 12px;
}

.contact-status {
  display: block;
  font-size: 14px;
  margin-bottom: 20px;
}

.contact-section .text-link {
  color: var(--paper);
}

.contact-section .text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-section :focus-visible {
  outline-color: white;
}

/* ==============================================================
   PIE DE PÁGINA
   ============================================================== */

.site-footer {
  padding: 35px 0 20px;
  background: white;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 30px;
}

.footer-brand > span {
  font-size: 24px;
}

.footer-brand img {
  width: 60px;
  height: 60px;
}

.footer-brand small {
  font-size: 12px;
  max-width: 280px;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.back-top span {
  color: var(--red);
  font-size: 19px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

/* ==============================================================
   ADAPTACIÓN: (min-width: 1600px)
   Estas reglas ajustan los estilos generales para esta pantalla o modo.
   ============================================================== */

@media (min-width: 1600px) {
  .entry-banner {
    max-width: 1800px;
    margin-inline: auto;
  }
}

/* ==============================================================
   ADAPTACIÓN: (max-width: 1100px)
   Estas reglas ajustan los estilos generales para esta pantalla o modo.
   ============================================================== */

@media (max-width: 1100px) {
  .container {
    width: calc(100% - 56px);
  }

  nav {
    gap: 17px;
    font-size: 14px;
  }

  .brand > span {
    font-size: 23px;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 45px;
  }

  .hero-identity {
    max-width: 460px;
  }

  .welcome-grid,
  .participation-grid,
  .registration-grid,
  .faq-grid {
    gap: 60px;
  }

  .venue-grid {
    gap: 50px;
  }

  .heading-with-aside {
    gap: 30px;
  }

  .status-pill {
    flex-shrink: 1;
    max-width: 240px;
  }
}

/* ==============================================================
   ADAPTACIÓN: (max-width: 900px)
   Estas reglas ajustan los estilos generales para esta pantalla o modo.
   ============================================================== */

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 84px;
    gap: 0;
  }

  .menu-toggle:not([hidden]) {
    display: inline-flex;
    gap: 10px;
    align-items: center;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px;
    padding: 15px 0;
  }

  .js nav:not(.is-open) {
    display: none;
  }

  .js nav.is-open {
    display: flex;
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    box-shadow: none;
    margin-bottom: 12px;
    border: 0;
    border-left: 1px solid var(--line);
    padding: 3px 8px;
  }

  .js nav {
    align-items: stretch;
    flex-direction: column;
    max-height: calc(100dvh - 105px);
    overflow-y: auto;
    padding-bottom: 24px;
  }

  .js nav > a:not(.nav-cta) {
    padding: 10px 0;
  }

  .nav-group summary {
    padding: 10px 0;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-top: 50px;
  }

  .hero-description {
    font-size: 17px;
  }

  .hero-identity {
    max-width: 420px;
    justify-self: center;
  }

  .identity-frame {
    padding: 24px;
  }

  .hero-identity p {
    font-size: 12px;
  }

  .section {
    padding: 65px 0;
  }

  .dates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }

  .format-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .program-list summary {
    grid-template-columns: 185px 1fr 20px;
  }

  .program-category {
    font-size: 23px;
  }

  .program-content {
    margin-left: 205px;
  }

  .committee-grid {
    gap: 25px;
  }

  .contact-grid {
    gap: 40px;
  }

  .contact-section h2 {
    font-size: 35px;
  }
}

/* ==============================================================
   ADAPTACIÓN: (max-width: 650px)
   Estas reglas ajustan los estilos generales para esta pantalla o modo.
   ============================================================== */

@media (max-width: 650px) {
  html {
    scroll-padding-top: 95px;
  }

  section[id],
  details[id],
  div[id] {
    scroll-margin-top: 95px;
  }

  .container {
    width: calc(100% - 36px);
  }

  .edition-bar .container {
    min-height: 30px;
    font-size: 11px;
  }

  .edition-bar .container > span:first-child {
    max-width: 250px;
    line-height: 1.4;
    padding: 7px 0;
  }

  .edition-status {
    font-size: 11px;
  }

  .header-inner {
    min-height: 78px;
  }

  .brand > span {
    font-size: 24px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand small {
    font-size: 11px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 36px;
    gap: 30px;
    padding-bottom: 23px;
  }

  .eyebrow {
    font-size: 12px;
  }

  h1 {
    font-size: clamp(56px, 16vw, 82px);
  }

  .hero-tagline {
    font-size: 29px;
  }

  .hero .eyebrow {
    font-size: 15px;
  }

  .hero-description {
    font-size: 17px;
  }

  .hero-intro {
    font-size: 14px;
  }

  .button-row {
    gap: 18px;
  }

  .button {
    gap: 20px;
    padding: 13px 18px;
    font-size: 14px;
  }

  .text-link {
    font-size: 14px;
    gap: 15px;
  }

  .hero-identity {
    max-width: 300px;
    justify-self: center;
  }

  .hero-identity p {
    margin-top: 12px;
  }

  .entry-banner img {
    min-height: 0;
    width: 100%;
  }

  .event-strip-inner {
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
    padding: 21px 0;
  }

  .event-strip-inner > div {
    padding-left: 0;
    border-right: 0;
  }

  .event-strip-inner > div:nth-child(2) {
    padding-left: 18px;
    border-left: 1px solid var(--line);
  }

  .event-strip a {
    justify-self: start;
    padding-left: 18px;
    gap: 10px;
    font-size: 14px;
  }

  .event-strip strong {
    font-size: 14px;
  }

  .section {
    padding: 50px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .heading-with-aside {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .section-aside {
    max-width: none;
  }

  .status-pill {
    align-self: flex-start;
    max-width: none;
  }

  .welcome-grid,
  .participation-grid,
  .registration-grid,
  .venue-grid,
  .faq-grid,
  .contact-grid,
  .entities-block {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .lead {
    font-size: 21px;
    margin-bottom: 0;
  }

  .prose .lead,
  .registration-copy .lead {
    margin-bottom: 20px;
  }

  .prose p:not(.lead) {
    font-size: 14px;
  }

  .welcome-note {
    margin-top: 18px;
    align-items: flex-start;
    gap: 16px;
  }

  .small-note {
    font-size: 14px;
  }

  .format-band p {
    font-size: 14px;
  }

  .format-band i {
    margin: 0 5px;
  }

  .dates-grid {
    gap: 25px 18px;
    margin-top: 30px;
  }

  .dates-grid dd {
    font-size: 23px;
  }

  .dates-grid dt {
    font-size: 14px;
  }

  .registration-copy p:not(.lead) {
    font-size: 14px;
  }

  .registration-panel {
    padding: 27px;
  }

  .program-list summary {
    grid-template-columns: 1fr 20px;
    gap: 7px 12px;
    padding: 20px 0;
  }

  .program-list summary > span:nth-child(2) {
    grid-row: 2;
    font-size: 14px;
    color: var(--muted);
  }

  .detail-mark {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .program-content {
    margin-left: 0;
  }

  .committee-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .committee-grid p {
    margin-bottom: 12px;
  }

  .line-icon {
    margin-bottom: 13px;
  }

  .entities-block {
    margin-top: 32px;
    gap: 15px;
  }

  .venue-visual img {
    height: auto;
  }

  .venue-visual > div {
    padding: 25px;
  }

  .download-list > a {
    grid-template-columns: 47px 1fr 20px;
    gap: 12px;
    padding: 18px 0;
  }

  .download-list strong {
    font-size: 15px;
  }

  .file-type {
    font-size: 11px;
  }

  .faq-grid h2 {
    font-size: 32px;
  }

  .contact-section {
    padding: 44px 0;
  }

  .contact-section h2 {
    font-size: 32px;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .footer-brand small {
    max-width: 220px;
    line-height: 1.5;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

/* ==============================================================
   ADAPTACIÓN: (prefers-reduced-motion: reduce)
   Estas reglas ajustan los estilos generales para esta pantalla o modo.
   ============================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* ==============================================================
   ADAPTACIÓN: print
   Estas reglas ajustan los estilos generales para esta pantalla o modo.
   ============================================================== */

@media print {
  body {
    font-size: 11pt;
  }

  .site-header {
    position: static;
  }

  nav,
  .menu-toggle,
  .button-row,
  .back-top,
  .skip-link,
  .hero-identity,
  .edition-bar {
    display: none !important;
  }

  .container {
    width: 100%;
  }

  .section,
  .contact-section {
    padding: 24px 0;
  }

  .section-dark,
  .contact-section {
    background: white;
    color: var(--ink);
  }

  .section-dark p,
  .section-dark dt,
  .contact-section p {
    color: var(--muted) !important;
  }

  .hero-grid {
    display: block;
    padding-top: 20px;
  }

  h1 {
    font-size: 36pt;
  }

  h2 {
    font-size: 24pt;
  }

  .entry-banner img {
    max-height: 180px;
    object-fit: contain;
  }

  h2,
  h3,
  summary {
    break-after: avoid;
  }

  .download-list a {
    break-inside: avoid;
  }
}

/* Datos confirmados de sede y contacto. */

/* ==============================================================
   ENLACES DE CALENDARIO, SEDE Y DATOS DE CONTACTO
   ============================================================== */

.calendar-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--silver);
  font-size: 14px;
}

.calendar-link:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.venue-source {
  margin-top: 12px;
  font-size: 14px;
}

.contact-methods {
  display: grid;
  gap: 18px;
  margin: 22px 0 26px;
}

.contact-methods dt {
  font-size: 13px;
  margin-bottom: 3px;
}

.contact-methods dd {
  margin: 0;
}

.contact-email,
.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid currentColor;
  font-size: 20px;
  margin: 0;
  padding-bottom: 4px;
}

.contact-email:hover,
.contact-phone:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==============================================================
   ADAPTACIÓN: (max-width: 650px)
   Estas reglas ajustan los estilos generales para esta pantalla o modo.
   ============================================================== */

@media (max-width: 650px) {
  .contact-email,
  .contact-phone {
    font-size: 19px;
  }
}

/* Del talento al impacto: un recorrido continuo y accesible. */

/* ==============================================================
   UTILIDADES Y AJUSTES COMPLEMENTARIOS
   ============================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.inline-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--red);
}

.hero-tagline {
  font-size: clamp(38px, 4.2vw, 58px);
}

/* ==============================================================
   02 / RECORRIDO DE LOS SEIS MOVIMIENTOS
   ============================================================== */

.journey-map {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0;
  margin: 0 0 38px;
}

.journey-map li {
  position: relative;
  min-width: 0;
}

.journey-map li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 40px;
  right: -1px;
  height: 1px;
  background: rgb(77 77 77 / .35);
}

.journey-map a {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 0 8px 10px 0;
  gap: 4px;
}

.journey-step {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--red);
  border-radius: 50%;
  background: var(--paper);
  color: var(--red);
  font-size: 13px;
  margin-bottom: 13px;
  transition: background .15s, color .15s;
}

.journey-map strong {
  font-size: 13px;
  letter-spacing: .04em;
}

.journey-map a > span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.journey-map a:hover .journey-step,
.journey-map a:focus-visible .journey-step {
  background: var(--red);
  color: white;
}

.journey-map a:hover strong {
  color: var(--blue);
}

.journey-core {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.journey-core > span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.journey-core p {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 29px);
  line-height: 1.3;
  letter-spacing: -.025em;
  margin: 0;
}

.journey-core b {
  color: var(--red);
  font-weight: 400;
  margin: 0 10px;
}

.movement-list {
  list-style: none;
  padding: 0;
  margin: 38px 0 0;
}

.movement {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(240px, .9fr) minmax(0, 1.4fr);
  column-gap: 34px;
  padding: 30px 0 38px;
  scroll-margin-top: 130px;
}

.movement::before {
  content: "";
  position: absolute;
  top: 64px;
  bottom: -30px;
  left: 22px;
  width: 1px;
  background: rgb(77 77 77 / .35);
}

.movement:last-child::before {
  display: none;
}

.movement-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid var(--red);
  border-radius: 50%;
  background: var(--paper);
  color: var(--red);
  font-size: 14px;
}

.movement-heading .eyebrow {
  color: var(--blue);
  margin-bottom: 9px;
  font-size: 12px;
}

.movement h3 {
  font-family: var(--sans);
  font-size: clamp(23px, 2.7vw, 33px);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 9px;
}

.movement-subtitle {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -.025em;
  margin: 0;
  max-width: 300px;
}

.movement-body {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.movement-body > p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
}

.movement-body .movement-academic {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 12px;
}

.movement-body summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
}

.movement-body summary span {
  color: var(--red);
  font-size: 20px;
  line-height: 1;
}

.movement-body details[open] summary span {
  transform: rotate(45deg);
}

.movement-body ul {
  color: var(--muted);
  font-size: 14px;
  padding-left: 20px;
  margin: 12px 0 0;
}

.movement-body li + li {
  margin-top: 7px;
}

.movement:target .movement-number {
  background: var(--red);
  color: white;
}

.journey-invitation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 8px;
}

.journey-invitation p {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
}

/* ==============================================================
   ADAPTACIÓN: (max-width: 900px)
   Estas reglas ajustan los estilos generales para esta pantalla o modo.
   ============================================================== */

@media (max-width: 900px) {
  .journey-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 0;
  }

  .journey-map li:nth-child(3)::after {
    display: none;
  }

  .journey-core {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .movement {
    grid-template-columns: 46px minmax(190px, .9fr) minmax(0, 1.4fr);
    column-gap: 20px;
  }

  .movement-subtitle {
    font-size: 21px;
  }
}

/* ==============================================================
   ADAPTACIÓN: (max-width: 650px)
   Estas reglas ajustan los estilos generales para esta pantalla o modo.
   ============================================================== */

@media (max-width: 650px) {
  .hero-tagline {
    font-size: clamp(34px, 8vw, 46px);
  }

  .journey-map {
    margin-bottom: 22px;
    gap: 22px 0;
  }

  .journey-map strong {
    font-size: 11px;
    letter-spacing: 0;
  }

  .journey-map a > span:last-child {
    font-size: 12px;
  }

  .journey-core b {
    margin: 0 3px;
  }

  .movement-list {
    margin-top: 20px;
  }

  .movement {
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 17px;
    row-gap: 18px;
    padding: 24px 0 12px;
    scroll-margin-top: 100px;
  }

  .movement-number {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }

  .movement::before {
    left: 17px;
    top: 58px;
    bottom: -24px;
  }

  .movement-heading {
    min-width: 0;
  }

  .movement h3 {
    font-size: 25px;
  }

  .movement-subtitle {
    font-size: 22px;
  }

  .movement-body {
    grid-column: 2;
    padding-bottom: 22px;
  }

  .movement-body .movement-academic {
    font-size: 16px;
  }

  .movement-body > p {
    font-size: 14px;
  }

  .journey-invitation {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding-top: 22px;
  }

  .journey-invitation p {
    font-size: 22px;
  }
}

/* ==============================================================
   ADAPTACIÓN: print
   Estas reglas ajustan los estilos generales para esta pantalla o modo.
   ============================================================== */

@media print {
  .journey-map,
  .journey-invitation {
    display: none;
  }

  .movement {
    break-inside: avoid;
    grid-template-columns: 45px 1fr 1.5fr;
    gap: 20px;
    padding-block: 15px;
  }

  .movement::before {
    display: none;
  }

  .movement-body {
    grid-column: auto;
  }
}

/* Bienvenida: introducción seguida de la carta en una columna central amplia. */

/* ==============================================================
   01 / BIENVENIDA CENTRADA
   Anchura de la carta y separación de la frase introductoria.
   ============================================================== */

.welcome-content {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
}

.welcome-content > .lead {
  margin-bottom: 32px;
}

/* ==============================================================
   ADAPTACIÓN: (max-width: 650px)
   Estas reglas ajustan los estilos generales para esta pantalla o modo.
   ============================================================== */

@media (max-width: 650px) {
  .welcome-content > .lead {
    margin-bottom: 24px;
  }
}

/* Alineacion de los parrafos de la carta de bienvenida. */

/* ==============================================================
   01 / ALINEACIÓN DE LA CARTA
   Justificar los párrafos; la firma mantiene su alineación.
   ============================================================== */

.welcome-content .prose > p:not(:last-child) {
  text-align: justify;
  hyphens: auto;
}


/* ==============================================================
   05 / INSCRIPCIONES DESPLEGABLES CUIEET34
   ============================================================== */
.registration-intro { max-width: 900px; margin-bottom: 34px; }
.registration-options { border-top: 1px solid var(--line); }
.registration-option { border-bottom: 1px solid var(--line); }
.registration-option > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
}
.registration-option > summary:hover .registration-option-name { color: var(--blue); }
.registration-option-name { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 27px); line-height: 1.25; }
.registration-option-price { font-family: var(--serif); font-size: clamp(23px, 2.5vw, 30px); color: var(--ink); white-space: nowrap; }
.registration-option-mark { color: var(--red); font-size: 25px; text-align: center; line-height: 1; transition: transform .15s; }
.registration-option[open] .registration-option-mark { transform: rotate(45deg); }
.registration-option-content { padding: 0 0 26px; max-width: 750px; }
.registration-option-content > p { color: var(--muted); font-size: 15px; margin-bottom: 19px; }
.registration-option-content .small-note { margin: 10px 0 0; font-size: 13px; }
.registration-option-content button:disabled { opacity: .65; cursor: not-allowed; }
@media (max-width: 650px) {
  .registration-option > summary { gap: 12px; grid-template-columns: minmax(0, 1fr) auto 20px; padding: 20px 0; }
  .registration-option-name { font-size: 20px; }
  .registration-option-price { font-size: 22px; }
}


/* Detalle informativo de las modalidades CUIEET34 */
.registration-pending-note {
  padding: 15px 19px; border-left: 3px solid var(--blue);
  background: var(--silver); color: var(--ink); font-size: 14px;
  margin: 0 0 25px;
}
.registration-included-label { margin-bottom: 8px !important; }
.registration-included-list { padding-left: 21px; margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.registration-included-list li { margin-bottom: 8px; }
.registration-option-content .registration-date {
  font-weight: 650; color: var(--blue); margin: 16px 0 10px;
}
.registration-option-content > button { margin-top: 12px; }
.registration-option-content > .small-note { line-height: 1.55; }

.registration-travel-note {padding: 15px 19px; border-left: 3px solid var(--red); background: var(--silver); font-size: 14px; margin: 0 0 24px;}


/* 04 / Fechas importantes · diez hitos cronológicos */
.dates-grid--milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 48px; }
.dates-grid--milestones > div { min-width: 0; padding-top: 18px; }
.dates-grid--milestones dd { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.2; }
.dates-grid--milestones .date-conditional dt::after { content: ' · Condicional'; font-weight: 400; font-size: 12px; color: var(--silver); }
@media (max-width: 650px) { .dates-grid--milestones { grid-template-columns: 1fr; gap: 16px; } .dates-grid--milestones dd { font-size: 23px; } }


/* 06 / PROGRAMA DE TRES JORNADAS */
.program-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.program-day { background: var(--paper); padding: 26px 24px; border: 1px solid var(--line); border-top: 3px solid var(--red); }
.program-day-number { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.program-day h3 { font-family: var(--serif); font-size: 29px; font-weight: 400; margin: 5px 0 15px; }
.program-day-highlight { font-size: 17px; font-weight: 700; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.program-day p:not(.program-day-number):not(.program-day-highlight) { font-size: 14px; margin-bottom: 10px; }
.program-day-travel { color: var(--blue); font-weight: 600; }
.program-logistics { margin-top: 26px; padding: 20px 23px; border-left: 3px solid var(--blue); background: var(--paper); }
.program-logistics h3 { font-size: 17px; margin-bottom: 7px; }
.program-logistics p { font-size: 14px; margin-bottom: 0; }
.program-downloads { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; align-items: center; }
.program-future { background: transparent; color: var(--muted); border: 1px solid var(--line); cursor: not-allowed; }
.program-footer-note { margin-top: 12px; }
@media (max-width: 900px) { .program-overview { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .program-day { padding: 22px; } .program-downloads { align-items: stretch; flex-direction: column; } .program-downloads .button { justify-content: center; } }

/* Entrega de documentación y traslados destacados */
.program-documentation { color: var(--ink); font-weight: 600; border-left: 3px solid var(--red); padding-left: 12px; background: var(--silver); padding-block: 8px; }
.program-day-sequence { display: grid; gap: 3px; }


/* Retrato del director en la bienvenida */
.welcome-signature {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.welcome-signature img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  flex: 0 0 96px;
  border: 2px solid var(--line);
}
.welcome-signature-text p {
  margin: 0;
}
.welcome-signature-name {
  margin-bottom: 6px !important;
}
@media (max-width: 650px) {
  .welcome-signature {
    align-items: flex-start;
    gap: 14px;
  }
  .welcome-signature img {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }
}
