/* ==========================================================================
   XV Simposio de Investigación en Genética Médica
   Identidad: póster (navy / red-orange vascular / blue accents)
   ========================================================================== */

:root {
  --navy-950: #050a18;
  --navy-900: #0a1228;
  --navy-800: #12203d;
  --navy-700: #1a2f55;
  --blue-600: #2e5bff;
  --blue-500: #3e75b8;
  --blue-400: #5b8fd4;
  --cyan-400: #4ecbff;
  --red-500: #e21b3c;
  --red-glow: #ff3a2f;
  --orange-glow: #ff8a1a;
  --white: #ffffff;
  --cream: #e8eef8;
  --muted: #9aadc8;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;

  --header-h: 4.5rem;
  --radius: 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cream);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(46, 91, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(226, 27, 60, 0.12), transparent 50%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 40%, #07101f);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--blue-600);
  color: var(--white);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 10, 24, 0.85);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand__logo {
  width: clamp(7.5rem, 16vw, 9.5rem);
  height: auto;
}

.brand__meta {
  display: none;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand__divider {
  width: 1px;
  height: 1rem;
  background: var(--line-strong);
}

.brand__topic {
  color: var(--cream);
}

@media (min-width: 900px) {
  .brand__meta {
    display: inline-flex;
  }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin-inline: auto;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  padding: 1rem;
  background: rgba(5, 10, 24, 0.96);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.site-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav__link {
  display: block;
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--white);
}

.site-nav__link.is-active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav__link--cta {
  margin-top: 0.5rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), #1a3fd4);
}

.site-nav__link--cta:hover,
.site-nav__link--cta.is-active {
  background: linear-gradient(135deg, #4a73ff, var(--blue-600));
}

@media (min-width: 980px) {
  .site-nav {
    position: static;
    inset: auto;
    padding: 0;
    background: transparent;
    border: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .site-nav__link {
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .site-nav__link--cta {
    margin-top: 0;
    margin-left: 0.35rem;
    padding-inline: 1rem;
  }

  .site-nav__link.is-active {
    border-color: transparent;
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--red-500);
  }

  .site-nav__link--cta.is-active {
    box-shadow: none;
  }
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.section {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.section--tight {
  padding-top: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.section-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

.section-lead {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), #1a3fd4);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #4a73ff, var(--blue-600));
}

.btn--ghost {
  color: var(--white);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Hero (Inicio)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 50% 40% at 70% 55%, rgba(255, 58, 47, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 35% at 30% 40%, rgba(46, 91, 255, 0.16), transparent 65%),
    linear-gradient(180deg, transparent 55%, rgba(5, 10, 24, 0.92));
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 5rem);
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: calc(100svh - var(--header-h) - 2rem);
  }
}

.hero__copy {
  max-width: 36rem;
}

.hero__brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.hero__brand-mark::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--red-glow), var(--orange-glow));
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--white);
}

.hero__title span {
  display: block;
  font-weight: 400;
  opacity: 0.88;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 28rem);
  aspect-ratio: 1;
}

.hero__poster-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(255, 58, 47, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(226, 27, 60, 0.15);
  animation: posterFloat 7s ease-in-out infinite;
}

.hero__poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(5, 10, 24, 0.35));
  pointer-events: none;
}

.hero__xv {
  position: absolute;
  right: -6%;
  bottom: -4%;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
  pointer-events: none;
  animation: xvPulse 4.5s ease-in-out infinite;
}

.hero__xv::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0.18em;
  height: 0.18em;
  background: var(--blue-600);
}

@keyframes posterFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes xvPulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */

.stats {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.stats__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-block: 1.75rem;
}

.stat {
  text-align: center;
  padding: 0.5rem;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  background: linear-gradient(135deg, var(--white), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Explore / links section (below hero)
   -------------------------------------------------------------------------- */

.explore-grid {
  display: grid;
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 720px) {
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .explore-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.explore-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1.6rem 1.4rem 1.4rem;
  background: rgba(8, 14, 30, 0.92);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.explore-item:hover {
  background: rgba(18, 32, 61, 0.95);
  transform: translateY(-2px);
}

.explore-item__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.explore-item__text {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.95rem;
}

.explore-item__cta {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.explore-item:hover .explore-item__cta {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Inner page header
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 18rem;
  background: radial-gradient(circle, rgba(226, 27, 60, 0.2), transparent 65%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Document / resource blocks
   -------------------------------------------------------------------------- */

.doc-panel {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 860px) {
  .doc-panel {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); /* col-8 / col-4 */
    align-items: start;
  }
}

.doc-preview {
  position: relative;
  min-height: 36rem;
  height: min(78vh, 52rem);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.doc-preview__frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 36rem;
  border: 0;
  background: #1a1d24;
}

.doc-preview__fallback {
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-size: 0.85rem;
}

.doc-preview__fallback a {
  color: var(--accent, #4ecbff);
}

.doc-meta {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.doc-meta dl {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.doc-meta div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.doc-meta dt {
  color: var(--muted);
}

.doc-meta dd {
  margin: 0;
  font-weight: 500;
  color: var(--white);
  text-align: right;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 1.5rem;
}

.filter-chip {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--white);
  border-color: rgba(78, 203, 255, 0.45);
  background: rgba(78, 203, 255, 0.08);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--navy-800);
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  cursor: pointer;
  display: block;
  text-align: left;
  font: inherit;
  color: inherit;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--cyan-400, #4ecdc4);
  outline-offset: -2px;
  z-index: 1;
}

.gallery-item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-item__img {
  transform: scale(1.04);
}

.gallery-item__placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 58, 47, 0.25), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(46, 91, 255, 0.28), transparent 50%),
    linear-gradient(145deg, #142448, #0a1428);
}

.gallery-item__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem 1rem 0.95rem;
  background: linear-gradient(transparent, rgba(5, 10, 24, 0.92));
}

.gallery-item__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--white);
}

.gallery-item__caption span {
  font-size: 0.78rem;
  color: var(--muted);
}

.gallery-item.is-hidden,
.work-row.is-hidden {
  display: none;
}

.gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 1.25rem;
}

.gallery-pagination__meta {
  margin: 0 0 0 0.35rem;
}

.filter-chip {
  text-decoration: none;
}

.gallery-lightbox {
  border: 0;
  padding: 0;
  width: min(96vw, 56rem);
  max-width: 96vw;
  background: transparent;
  color: var(--white);
}

.gallery-lightbox::backdrop {
  background: rgba(4, 8, 20, 0.88);
}

.gallery-lightbox__frame {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
  padding: 2.5rem 0.35rem 0.75rem;
}

.gallery-lightbox__figure {
  margin: 0;
  background: #0a1428;
  border: 1px solid var(--line);
}

.gallery-lightbox__figure img {
  display: block;
  width: 100%;
  max-height: min(72vh, 40rem);
  object-fit: contain;
  background: #050a18;
}

.gallery-lightbox__figure figcaption {
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.2rem;
}

.gallery-lightbox__figure strong {
  font-family: var(--font-display);
}

.gallery-lightbox__figure span {
  color: var(--muted);
  font-size: 0.88rem;
}

.gallery-lightbox__close {
  position: absolute;
  top: 0;
  right: 0.35rem;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.gallery-lightbox__nav {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.gallery-lightbox__nav:hover,
.gallery-lightbox__close:hover {
  background: rgba(78, 205, 196, 0.25);
}

@media (max-width: 640px) {
  .gallery-lightbox__frame {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
  }

  .gallery-lightbox__nav--prev {
    order: 2;
  }

  .gallery-lightbox__figure {
    order: 1;
    width: 100%;
  }

  .gallery-lightbox__nav--next {
    order: 3;
  }

  .gallery-lightbox__nav {
    width: 3rem;
  }
}

/* --------------------------------------------------------------------------
   Formatos / Trabajos lists
   -------------------------------------------------------------------------- */

.resource-group + .resource-group {
  margin-top: 2.5rem;
}

.resource-group h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.resource-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.resource-row {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: rgba(8, 14, 30, 0.92);
}

@media (min-width: 720px) {
  .resource-row {
    grid-template-columns: 1fr auto;
  }
}

.resource-row h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

.resource-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.work-list {
  display: grid;
  gap: 1px;
  margin-top: 1.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.works-toolbar {
  display: grid;
  gap: 1rem;
  margin-top: 0.25rem;
}

@media (min-width: 800px) {
  .works-toolbar {
    grid-template-columns: 1fr minmax(14rem, 22rem);
    align-items: center;
  }

  .works-toolbar .filters {
    margin: 0;
  }
}

.works-search input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(8, 14, 30, 0.92);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.works-search input::placeholder {
  color: var(--muted);
}

.works-search input:focus {
  outline: none;
  border-color: rgba(78, 203, 255, 0.45);
}

.works-empty {
  margin-top: 1.25rem;
}

.work-row {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.25rem;
  background: rgba(8, 14, 30, 0.92);
}

@media (min-width: 800px) {
  .work-row {
    grid-template-columns: auto 1fr auto;
  }
}

.work-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.work-badge--oral {
  border-color: rgba(46, 91, 255, 0.5);
  color: #9bb4ff;
}

.work-badge--cartel {
  border-color: rgba(226, 27, 60, 0.5);
  color: #ff8f9c;
}

.work-row h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
}

.work-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.work-row .work-members {
  margin-top: 0.45rem;
  line-height: 1.45;
  color: var(--cream);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Registro form
   -------------------------------------------------------------------------- */

.form-shell {
  margin-top: 2rem;
  max-width: 46rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(8, 14, 30, 0.65);
}

@media (min-width: 720px) {
  .form-shell {
    padding: 2rem;
  }
}

.form-steps {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.form-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(5, 10, 24, 0.65);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field textarea {
  min-height: 6rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(78, 203, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(78, 203, 255, 0.12);
}

.tipo-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.tipo-toggle label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin: 0;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.tipo-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tipo-toggle input:checked + span {
  color: var(--white);
}

.tipo-toggle label:has(input:checked) {
  border-color: rgba(46, 91, 255, 0.7);
  background: rgba(46, 91, 255, 0.15);
}

.integrantes {
  display: grid;
  gap: 1rem;
}

.integrante {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.integrante__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
}

.integrante__grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .integrante__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Tabs (Convocatoria / Criterios shared chrome)
   -------------------------------------------------------------------------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tabs a {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
}

.tabs a.is-active,
.tabs a:hover {
  color: var(--white);
  border-color: rgba(78, 203, 255, 0.4);
  background: rgba(78, 203, 255, 0.08);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-block: 2.5rem 2rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }

  .site-footer__copy {
    grid-column: 1 / -1;
  }
}

.site-footer__brand img {
  width: 9rem;
  margin-bottom: 0.85rem;
}

.site-footer__brand p {
  margin: 0;
  max-width: 24rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.site-footer__contact a:hover {
  color: var(--cyan-400);
}

.site-footer__copy {
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

/* Registro — lista de integrantes y modal */
.member-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.member-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.member-list__item small {
  color: var(--muted);
}

.member-list__remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.25rem;
}

.member-list__remove:hover {
  color: #ff6b5a;
}

.registro-modal {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  width: min(28rem, 94vw);
  background: #0c162c;
  color: var(--white);
}

.registro-modal::backdrop {
  background: rgba(4, 8, 20, 0.72);
}

.registro-modal__inner {
  padding: 1.35rem 1.4rem 1.25rem;
}

.registro-modal__inner h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.registro-modal__url {
  margin: 0.85rem 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  word-break: break-all;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.04);
}

.registro-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.file-drop-zone {
  display: grid;
  place-content: center;
  gap: 0.65rem;
  min-height: 11rem;
  width: 100%;
  padding: 2rem 1.25rem;
  border: 1px dashed rgba(180, 200, 255, 0.35);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-align: center;
}

.file-drop-zone.is-dragover,
.file-drop-zone:focus-visible {
  border-color: var(--cyan-400, #4ecdc4);
  background: rgba(78, 205, 196, 0.08);
  outline: none;
}

.file-drop-hint {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.file-drop-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Motion / reduced preference
   -------------------------------------------------------------------------- */

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

  .hero__poster-frame,
  .hero__xv,
  .explore-item,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}
