/* Capa final de publicación: movimiento discreto, jerarquía editorial y escala contenida. */
:root {
  --motion-fast: 180ms;
  --motion-base: 360ms;
  --motion-slow: 700ms;
}

html { scroll-behavior: smooth; }
::selection { color: #fff; background: #087b80; }
img, video, svg { max-inline-size: 100%; }
/* Imágenes institucionales legibles, sin ocupar una pantalla completa. */
.institutional-image-wrap, .hero-media, .hero-visual, .feature-image, .image-panel {
  max-block-size: min(56svh, 34rem);
  overflow: hidden;
}
.institutional-image-wrap img, .hero-media img, .hero-visual img, .feature-image img, .image-panel img {
  max-block-size: min(56svh, 34rem);
  object-fit: cover;
}

.site-header {
  box-shadow: 0 1px 0 rgba(10,40,15,.07), 0 10px 28px rgba(10,40,15,.035);
}
.site-header .brand, .site-header .nav-list a, .site-header .account-link, .site-header .icon-button {
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-fast) ease;
}
.site-header .brand:hover { transform: translateY(-1px); }
.site-header .nav-list a { position: relative; }
.site-header .nav-list a::after {
  position: absolute; right: .8rem; bottom: .38rem; left: .8rem; height: 2px;
  background: var(--cn-teal, #087b80); content: ''; transform: scaleX(0); transform-origin: left; transition: transform var(--motion-base) cubic-bezier(.2,.75,.25,1);
}
.site-header .nav-list a:hover::after, .site-header .nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.portal-hero, .research-hub-hero { isolation: isolate; }
.portal-hero::before, .research-hub-hero::before {
  position: absolute; z-index: -1; width: 28rem; height: 28rem; border: 1px solid rgba(231,212,166,.18); border-radius: 50%; content: '';
  filter: blur(.2px); opacity: .55; transform: translate3d(-28%, -36%, 0); animation: cn-orbit 14s ease-in-out infinite alternate;
}
.portal-hero-grid { min-height: 0; height: min(29rem, calc(100svh - 5rem)); }
.portal-hero-copy { padding-block: clamp(1.8rem, 3.4vw, 3.3rem); animation: cn-enter .8s cubic-bezier(.2,.75,.25,1) both; }
.portal-hero h1 { font-size: clamp(2.55rem, 4.55vw, 4.45rem); }
.portal-hero-statline { margin-top: clamp(1.15rem, 2.2vw, 2rem); }
.portal-hero-media { min-height: 0; height: auto; }
/* La imagen usa posicionamiento absoluto: llena el panel de la cuadrícula y nunca deja una franja vacía. */
.portal-hero-media > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: cover; object-position: 70% center; transform: scale(1.015); transition: transform 1.1s cubic-bezier(.2,.75,.25,1), filter var(--motion-slow) ease; }
.portal-hero:hover .portal-hero-media > img { filter: saturate(.9) contrast(1.03); transform: scale(1.045); }
.portal-hero-statline { animation: cn-enter .8s .18s cubic-bezier(.2,.75,.25,1) both; }

.portal-history-grid figure { min-height: clamp(20rem, 34vw, 26rem); box-shadow: 18px 18px 0 rgba(188,147,57,.13); }
.portal-history-grid img { min-height: 0; height: 100%; max-height: 26rem; object-position: center; transition: transform var(--motion-slow) cubic-bezier(.2,.75,.25,1); }
.portal-history-grid figure:hover img { transform: scale(1.035); }

.research-command-grid, .research-card, .call-card, .topic-cloud a, .agenda-strip, .community-band aside {
  transition: transform var(--motion-base) cubic-bezier(.2,.75,.25,1), box-shadow var(--motion-base) ease, border-color var(--motion-base) ease, background-color var(--motion-base) ease;
}
.research-command-grid { overflow: hidden; box-shadow: 0 18px 38px rgba(10,40,15,.055); }
.research-command-grid a { position: relative; overflow: hidden; }
.research-command-grid a::before { position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg,#087b80,#bc9339); content: ''; transform: scaleX(0); transform-origin: left; transition: transform var(--motion-base) ease; }
.research-command-grid a:hover::before { transform: scaleX(1); }
.research-card:hover, .call-card:hover, .topic-cloud a:hover { border-color: rgba(8,123,128,.48); box-shadow: 0 16px 34px rgba(10,40,15,.10); transform: translateY(-5px); }
.agenda-strip { border: 1px solid rgba(10,40,15,.08); }
.agenda-strip:hover { box-shadow: 0 14px 34px rgba(10,40,15,.08); }

.research-hub-hero { padding-block: clamp(3.5rem, 6vw, 5.6rem) 3rem; }
.research-hub-hero .container { animation: cn-enter .75s cubic-bezier(.2,.75,.25,1) both; }
.research-overview { box-shadow: 0 16px 34px rgba(10,40,15,.08); }
.research-search > div { box-shadow: 0 10px 24px rgba(0,0,0,.14); transition: box-shadow var(--motion-base) ease, transform var(--motion-base) ease; }
.research-search:focus-within > div { box-shadow: 0 15px 34px rgba(0,0,0,.24); transform: translateY(-2px); }

.page-hero, .app-hero { overflow: hidden; }
.page-hero .container, .app-hero .container { position: relative; }
.page-hero .container::after, .app-hero .container::after { position: absolute; top: -5rem; right: 3%; width: 14rem; height: 14rem; border: 1px solid rgba(200,241,208,.28); border-radius: 50%; content: ''; pointer-events: none; }

.site-footer { position: relative; overflow: hidden; }
.site-footer::before { position: absolute; top: -7rem; right: 6%; width: 20rem; height: 20rem; border: 1px solid rgba(231,212,166,.14); border-radius: 50%; content: ''; }
.site-footer > * { position: relative; }

@keyframes cn-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cn-orbit { from { transform: translate3d(-28%,-36%,0) rotate(0deg); } to { transform: translate3d(-21%,-26%,0) rotate(11deg); } }

@media (max-width: 980px) {
  .portal-hero-grid { height: auto; }
  .portal-hero-media { min-height: 21rem; max-height: 24rem; }
  .portal-hero-media > img { min-height: 0; max-height: none; }
  .portal-history-grid figure, .portal-history-grid img { min-height: 0; max-height: 22rem; }
}

/* En monitores bajos la portada se compacta para quedar completa en el primer vistazo. */
@media (min-width: 981px) and (max-height: 720px) {
  .portal-hero-grid { height: calc(100svh - 1.25rem); max-height: 27rem; }
  .portal-hero-copy { padding-block: .85rem; }
  .portal-hero h1 { margin: .35rem 0 .8rem; font-size: clamp(2.1rem, 3.45vw, 3.15rem); }
  .portal-hero .lead { margin: 0; font-size: .93rem; line-height: 1.4; }
  .portal-hero .hero-actions { margin-top: .9rem; }
  .portal-hero-statline { gap: 1.25rem; margin-top: .7rem; }
  .portal-hero-statline div { padding-left: .7rem; }
  .portal-hero-statline dt { font-size: .62rem; }
  .portal-hero-statline dd { margin-top: .15rem; font-size: .71rem; }
  .portal-hero-carousel-caption { bottom: 3.85rem; padding: .72rem .8rem; }
}

@media (max-width: 680px) {
  .portal-hero-copy { padding-block: 3.25rem; }
  .portal-hero-media { min-height: 18rem; max-height: 19rem; }
  .portal-hero-media > img { max-height: none; }
  .portal-history-grid figure, .portal-history-grid img { max-height: 18rem; }
  .page-hero .container::after, .app-hero .container::after { width: 9rem; height: 9rem; right: -2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Biblioteca de conferencias y primera plana: alto contraste, movimiento visible y escala contenida. */
.portal-hero { position: relative; overflow: hidden; }
.portal-hero::after { position: absolute; z-index: -1; inset: -30% -18%; background: linear-gradient(112deg, transparent 34%, rgba(188,147,57,.16) 46%, transparent 58%); content: ''; mix-blend-mode: screen; animation: cn-hero-sweep 8s ease-in-out infinite; pointer-events: none; }
.portal-hero-media img { animation: cn-hero-pan 12s cubic-bezier(.45,.05,.25,1) infinite alternate; }
.portal-hero-copy h1 { text-shadow: 0 5px 18px rgba(0,0,0,.18); }

/* Primera plana dentro de la imagen principal. Las piezas destacadas aparecen aquí sin agrandar la portada. */
.portal-hero-media::after { z-index: 1; }
.portal-hero-carousel { position: absolute; z-index: 2; inset: 0; overflow: hidden; background: #0D3715; }
.portal-hero-carousel-slide { position: absolute; inset: 0; display: block; overflow: hidden; color: #fff; opacity: 0; pointer-events: none; transform: scale(1.035); transition: opacity .68s ease, transform .95s cubic-bezier(.2,.75,.25,1); }
.portal-hero-carousel-slide.is-active { opacity: 1; pointer-events: auto; transform: scale(1); }
.portal-hero-carousel-image, .portal-hero-carousel-slide > .event-poster-fallback { position: absolute !important; inset: 0; display: block; width: 100% !important; height: 100% !important; min-height: 0 !important; max-height: none !important; object-fit: cover !important; object-position: center; background: #0D3615; filter: saturate(.76) contrast(1.04); animation: cn-hero-pan 12s cubic-bezier(.45,.05,.25,1) infinite alternate; }
.portal-hero-carousel-slide > .event-poster-fallback { display: grid; place-items: center; }
.portal-hero-carousel-slide::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,19,29,.04) 35%, rgba(3,19,29,.82) 100%), linear-gradient(90deg, rgba(3,19,29,.3), transparent 70%); content: ''; }
.portal-hero-carousel-caption { position: absolute; z-index: 2; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(4.6rem, 8vw, 6rem); left: clamp(1rem, 2.5vw, 2rem); display: grid; gap: .28rem; max-width: 25rem; padding: .9rem 1rem; background: rgba(3,21,31,.72); border-left: 3px solid #e7d4a6; backdrop-filter: blur(9px); box-shadow: 0 12px 26px rgba(0,0,0,.24); }
.portal-hero-carousel-caption b { color: #f2d896; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.portal-hero-carousel-caption strong { color: #fff; font-family: var(--serif); font-size: clamp(1.28rem, 2.4vw, 2rem); font-weight: 400; line-height: 1.02; }
.portal-hero-carousel-caption small { color: rgba(255,255,255,.8); font-size: .78rem; }
.portal-hero-carousel-caption em { margin-top: .2rem; color: #f2d896; font-size: .77rem; font-style: normal; font-weight: 800; }
.portal-hero-carousel-controls { z-index: 4; right: .85rem; bottom: .85rem; }
.portal-hero-carousel-controls button { width: 2rem; height: 2rem; }

/* El carrusel se integra con el azul de la portada: sin una arista vertical ni margen vacío al extremo derecho. */
.portal-hero-media { background: transparent; }
.portal-hero-carousel { background: transparent; }
.portal-hero-carousel-image, .portal-hero-carousel-slide > .event-poster-fallback {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.15) 5%, #000 18%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.15) 5%, #000 18%, #000 100%);
}
.portal-hero-no-frontpage .portal-hero-copy { max-width: 54rem; }
.portal-hero-institutional-media::before { position: absolute; z-index: 2; inset: -20% auto -20% -45%; width: 42%; background: linear-gradient(105deg, transparent 18%, rgba(240,215,158,.04) 36%, rgba(255,255,255,.28) 50%, rgba(240,215,158,.05) 63%, transparent 82%); content: ''; mix-blend-mode: screen; pointer-events: none; transform: skewX(-18deg) translateX(-160%); animation: cn-institutional-sheen 10s ease-in-out infinite; }
.portal-hero-institutional-caption { right: max(clamp(1rem, 3vw, 3rem), calc((100vw - var(--container)) / 2 + 1rem)); }
.portal-hero-institutional-caption { position: absolute; z-index: 3; bottom: clamp(2rem, 5vw, 4.25rem); display: grid; gap: .35rem; max-width: min(24rem, 78%); padding-left: 1rem; border-left: 2px solid rgba(231,212,166,.82); color: #fff; text-shadow: 0 3px 14px rgba(0,0,0,.3); }
.portal-hero-institutional-caption span { color: #f0d79e; font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.portal-hero-institutional-caption strong { color: #fff; font-family: var(--serif); font-size: clamp(1.45rem, 2.7vw, 2.25rem); font-weight: 400; line-height: 1.04; }
.portal-hero-institutional-caption a { margin-top: .35rem; color: #f0d79e; font-size: .8rem; font-weight: 800; text-decoration: none; }
.portal-hero-institutional-caption a:hover, .portal-hero-institutional-caption a:focus-visible { color: #fff; text-decoration: underline; }
@keyframes cn-institutional-sheen { 0%, 56% { transform: skewX(-18deg) translateX(-165%); opacity: 0; } 63% { opacity: 1; } 82%, 100% { transform: skewX(-18deg) translateX(450%); opacity: 0; } }
@media (min-width: 981px) {
  .portal-hero-media { margin-right: calc((100vw - 100%) / -2); }
  /* La figura se extiende al borde derecho; la leyenda debe calcularse desde
     el borde izquierdo visible, nunca desde ese margen negativo. */
  .portal-hero-institutional-caption { left: clamp(1.25rem, 3.8vw, 3.25rem); right: auto; width: min(23rem, calc(100vw - 3rem)); max-width: none; }
}

/* Trámites personales: cada expediente vive en una vista dedicada, legible y sin elementos comprimidos. */
.application-page { min-height: calc(100svh - var(--header-height)); padding: clamp(2rem, 4vw, 4.5rem) 0 clamp(3rem, 6vw, 6rem); background: linear-gradient(145deg, #f4f7f7 0%, #fff 46%, #edf6f5 100%); }
.application-page .breadcrumbs { margin-bottom: clamp(1.35rem, 2.4vw, 2rem); }
.application-page-heading { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.application-page-heading h1 { max-width: 17ch; margin: .4rem 0 .85rem; color: #104319; font-family: var(--serif); font-size: clamp(2.45rem, 5vw, 4.55rem); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.application-page-heading > p:last-child { max-width: 66ch; margin: 0; color: #425963; font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.68; }
.application-workspace { display: grid; grid-template-columns: minmax(17rem, .62fr) minmax(0, 1.38fr); align-items: start; gap: clamp(1.5rem, 4vw, 4rem); }
.application-guide { position: sticky; top: calc(var(--header-height) + 1.25rem); padding: clamp(1.45rem, 2.5vw, 2.25rem); color: #dcecef; background: linear-gradient(150deg, #0C3112 0%, #13511E 100%); border-radius: 1.15rem; box-shadow: 0 22px 44px rgba(10,40,15,.16); }
.application-guide .card-tag { color: #11461A; background: #e5d09d; }
.application-guide h2 { margin: 1rem 0 .65rem; color: #fff; font-family: var(--serif); font-size: clamp(1.7rem, 2.5vw, 2.35rem); font-weight: 400; line-height: 1.04; }
.application-guide > p { margin: 0; color: rgba(235,247,248,.87); font-size: .98rem; line-height: 1.6; }
.application-guide .text-link { display: inline-block; margin-top: 1.5rem; color: #f2d896; font-size: .93rem; font-weight: 800; text-decoration: none; }
.application-guide .text-link:hover, .application-guide .text-link:focus-visible { color: #fff; text-decoration: underline; }
.application-stepper { display: grid; gap: .85rem; padding: 0; margin: 1.6rem 0 0; list-style: none; }
.application-stepper li { display: grid; grid-template-columns: 2.35rem 1fr; gap: .75rem; align-items: start; padding: .85rem 0; border-top: 1px solid rgba(230,246,244,.2); }
.application-stepper li:first-child { border-top: 0; }
.application-stepper b { display: grid; width: 2.1rem; height: 2.1rem; place-items: center; color: #104319; background: #f0d79e; border-radius: 50%; font-size: .72rem; letter-spacing: .04em; }
.application-stepper strong, .application-stepper span { display: block; }
.application-stepper strong { color: #fff; font-size: .98rem; line-height: 1.25; }
.application-stepper span { margin-top: .22rem; color: rgba(235,247,248,.82); font-size: .86rem; line-height: 1.42; }
.application-form-stage { min-width: 0; }
.application-form-stage > .dashboard-card, .application-form-stage > .app-alert, .application-form-stage > .notice { margin-bottom: 1rem; }
.application-form-stage .membership-workflow-card, .application-form-stage .certification-workflow-card { padding: clamp(1.5rem, 3.6vw, 3rem); background: #fff; border: 1px solid rgba(10,40,15,.1); border-radius: 1.15rem; box-shadow: 0 18px 42px rgba(10,40,15,.1); }
.application-form-stage .membership-workflow-card h3, .application-form-stage .certification-workflow-card h3 { margin: .7rem 0 .8rem; color: #104319; font-size: clamp(1.55rem, 2.8vw, 2.2rem); line-height: 1.08; }
.application-form-stage .membership-workflow-card > p, .application-form-stage .certification-workflow-card > p { max-width: 64ch; color: #425963; font-size: 1.02rem; line-height: 1.62; }
.application-form-stage .form-grid { gap: 1.25rem; margin-top: 1.7rem; }
.application-form-stage .field > label { color: #104319; font-size: 1rem; font-weight: 800; }
.application-form-stage .field input, .application-form-stage .field select, .application-form-stage .field textarea { min-height: 3.25rem; padding: .72rem .85rem; font-size: 1rem; }
.application-form-stage .field input[type="file"] { padding: .55rem; }
.application-form-stage .help { display: block; margin-top: .45rem; color: #5a6d75; font-size: .88rem; line-height: 1.45; }
.application-form-stage .btn { min-height: 3.05rem; padding-inline: 1.25rem; font-size: .98rem; }
.application-form-stage .workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin: 1.5rem 0; }
.application-form-stage .workflow-steps li { min-height: 7.35rem; padding: 1rem; }
.application-form-stage .workflow-steps strong { font-size: .96rem; }
.application-form-stage .workflow-steps span { font-size: .87rem; line-height: 1.45; }
.membership-public-cta .membership-start-card-wide, .certification-start-card { align-self: center; padding: clamp(1.5rem, 3vw, 2.25rem); }
.membership-public-cta .membership-start-card-wide h3, .certification-start-card h3 { color: #104319; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.12; }
.membership-public-cta .membership-start-card-wide p, .certification-start-card p { color: #465d66; font-size: 1rem; line-height: 1.6; }
@media (max-width: 860px) {
  .application-workspace { grid-template-columns: 1fr; }
  .application-guide { position: relative; top: auto; }
}
@media (max-width: 580px) {
  .application-page { padding-top: 1.4rem; }
  .application-page-heading h1 { max-width: 13ch; font-size: clamp(2.2rem, 12vw, 3.3rem); }
  .application-guide, .application-form-stage .membership-workflow-card, .application-form-stage .certification-workflow-card { padding: 1.25rem; border-radius: .9rem; }
  .application-form-stage .workflow-steps { grid-template-columns: 1fr; }
  .application-form-stage .form-grid { grid-template-columns: 1fr; }
}

.frontpage-feature { padding: clamp(1.5rem, 4vw, 3.5rem) 0; background: linear-gradient(145deg, #09260E, #11421A 56%, #123f46); color: #fff; overflow: hidden; }
.frontpage-feature-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1rem; }
.frontpage-feature-heading h2 { margin: 0; color: #fff; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 400; }
.frontpage-feature-heading .text-link { color: #f2d896; }
.frontpage-rotator { position: relative; min-height: clamp(22rem, 35vw, 28rem); overflow: hidden; border: 1px solid rgba(244,224,171,.26); border-radius: 1rem; background: #0A280F; box-shadow: 0 24px 58px rgba(0,0,0,.32); }
.frontpage-rotator::before { position: absolute; z-index: 2; inset: 0; background: linear-gradient(105deg, rgba(9,38,14,.97) 4%, rgba(9,38,14,.82) 48%, rgba(9,38,14,.16) 84%); content: ''; pointer-events: none; }
.frontpage-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(16rem, .88fr); align-items: stretch; opacity: 0; pointer-events: none; transform: translateX(4.5%); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.75,.25,1); }
.frontpage-slide.is-active { position: relative; opacity: 1; pointer-events: auto; transform: translateX(0); }
.frontpage-slide-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 43rem; padding: clamp(2rem, 5vw, 4.5rem); }
.frontpage-slide-copy .card-tag { color: #0E3B16; background: #f0d79e; }
.frontpage-slide-meta { margin: 1rem 0 .35rem; color: #b8d9e2; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.frontpage-slide h2 { max-width: 16ch; margin: 0; color: #fff; font-family: var(--serif); font-size: clamp(2rem, 4vw, 4rem); font-weight: 400; line-height: .98; }
.frontpage-slide-copy > p:last-of-type { max-width: 47ch; color: rgba(255,255,255,.84); }
.frontpage-slide-media { position: relative; z-index: 1; display: grid; min-height: 100%; overflow: hidden; place-items: center; background: linear-gradient(145deg, #d8e6e8, #87a6aa); }
.frontpage-slide-media::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,38,14,.5), transparent 55%); content: ''; }
.frontpage-slide-poster { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #edf1ee; animation: cn-poster-float 5s ease-in-out infinite alternate; }
.frontpage-controls { position: absolute; z-index: 5; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .5rem; padding: .45rem; background: rgba(3,18,28,.76); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; backdrop-filter: blur(10px); }
.frontpage-controls button { display: grid; width: 2.2rem; height: 2.2rem; padding: 0; place-items: center; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; cursor: pointer; font: inherit; }
.frontpage-controls button:hover, .frontpage-controls button:focus-visible { color: #0A2C10; background: #f0d79e; border-color: #f0d79e; outline: none; }
.frontpage-dots { display: flex; gap: .35rem; }
.frontpage-dots .frontpage-dot { width: .55rem; height: .55rem; border: 0; background: rgba(255,255,255,.5); }
.frontpage-dots .frontpage-dot.is-active { width: 1.3rem; border-radius: 999px; background: #f0d79e; }

.conference-hero { background: linear-gradient(130deg, #09270E, #13491D); }
.conference-library-intro { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; color: #ddecf0; background: #113F19; border-left: 4px solid #c79b42; }
.conference-library-intro span { color: #f0d79e; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.conference-library-intro p { max-width: 60ch; margin: 0; }
.conference-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.conference-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid rgba(10,40,15,.1); border-radius: .9rem; box-shadow: 0 12px 28px rgba(10,40,15,.08); transition: transform .32s ease, box-shadow .32s ease; }
.conference-card:hover { box-shadow: 0 20px 42px rgba(10,40,15,.16); transform: translateY(-6px); }
.conference-card-media { display: grid; height: 13rem; padding: .7rem; place-items: center; overflow: hidden; background: linear-gradient(145deg, #e7eeee, #f8f9f6); }
.conference-card-poster { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.conference-poster-fallback { display: flex; width: 100%; height: 100%; min-height: 10rem; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 1rem; color: #f4e4ba; background: linear-gradient(145deg, #0F3E17, #0D2D13); }
.conference-poster-fallback span { font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.conference-poster-fallback strong { color: #fff; font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 400; line-height: 1; }
.conference-poster-fallback small { margin-top: .45rem; color: #c6d9de; }
.conference-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.2rem; }
.conference-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #4D7D55; font-size: .78rem; }
.conference-card h2 { margin: .9rem 0 .3rem; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; line-height: 1.05; }
.conference-card h2 a { color: #0D3514; text-decoration: none; }
.conference-card p { color: #3E6945; }
.conference-speaker { margin: 0; color: #0a6670 !important; font-size: .88rem; font-weight: 700; }
.conference-card .text-link { margin-top: auto; }
.conference-detail-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem); align-items: center; gap: 2rem; }
.conference-detail-poster { width: min(100%, 16rem); max-height: 20rem; justify-self: end; object-fit: contain; background: #eef3ef; box-shadow: 13px 13px 0 rgba(188,147,57,.25); }
.conference-detail-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, .7fr); gap: 2rem; align-items: start; }
.conference-watch { min-width: 0; }
.conference-player, .conference-player-frame { display: block; width: 100%; overflow: hidden; background: #08200C; border-radius: .9rem; box-shadow: 0 17px 40px rgba(10,40,15,.2); }
.conference-player { max-height: 42rem; }
.conference-player-frame { position: relative; aspect-ratio: 16 / 9; }
.conference-player-frame iframe { position: absolute; width: 100%; height: 100%; border: 0; }
.conference-locked { display: grid; min-height: 20rem; padding: clamp(1.5rem, 5vw, 3rem); place-items: start; align-content: center; color: #fff; background: linear-gradient(135deg, #09270E, #175522); border-radius: .9rem; }
.conference-locked h2 { margin: 1rem 0 .25rem; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.conference-locked p { max-width: 45ch; color: #dcecf0; }
.conference-access-granted { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; margin-top: .8rem; border-left: 4px solid #087b80; background: #edf7f5; }
.conference-access-granted p { margin: 0; color: #275456; }
.conference-summary { padding: 1.4rem; background: #f1f4f1; border-top: 4px solid #c79b42; }
.conference-summary h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
.conference-admin-preview { display: grid; grid-template-columns: 8rem minmax(0, 1fr); align-items: center; gap: 1rem; grid-column: 1 / -1; color: #526772; font-size: .86rem; }
.conference-admin-poster { width: 8rem; height: 10rem; object-fit: contain; background: #eff4f1; }
.conference-admin-notice { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem; background: #ecf5f6; border-left: 4px solid #087b80; }
.conference-admin-notice span { color: #49606b; }

/* Navegación institucional única: los accesos principales nunca cambian de
   posición y las secciones secundarias permanecen agrupadas bajo «Más». */
.site-header .nav-dropdown { position: relative; }
.site-header .nav-dropdown details { position: relative; }
.site-header .nav-dropdown summary {
  display: inline-flex; align-items: center; gap: .34rem; padding: .62rem .68rem;
  color: #0E3E17; cursor: pointer; border-radius: .45rem; font-size: .86rem;
  font-weight: 650; list-style: none; user-select: none; white-space: nowrap;
}
.site-header .nav-dropdown summary::-webkit-details-marker { display: none; }
.site-header .nav-dropdown summary:hover,
.site-header .nav-dropdown details[open] > summary,
.site-header .nav-dropdown summary.is-current { color: #0E3E17; background: #f0f7fc; }
.site-header .nav-dropdown summary span { color: #087b80; font-size: .78em; transition: transform .18s ease; }
.site-header .nav-dropdown details[open] > summary span { transform: rotate(180deg); }
.site-header .nav-dropdown-menu {
  position: absolute; top: calc(100% + .55rem); left: 0; right: auto; z-index: 1100;
  display: grid; min-width: 13.5rem; padding: .45rem; margin: 0; list-style: none;
  background: rgba(255,255,255,.98); border: 1px solid rgba(10,40,15,.12);
  border-radius: .75rem; box-shadow: 0 16px 32px rgba(10,40,15,.15);
}
.site-header .nav-dropdown-menu a { display: flex; width: 100%; padding: .68rem .76rem; color: #0E3E17; border-radius: .48rem; font-size: .84rem; }
.site-header .nav-dropdown-menu a:hover,
.site-header .nav-dropdown-menu a[aria-current="page"] { background: #edf7f5; color: #0E3E17; }

@media (max-width: 1080px) {
  .site-header .nav-dropdown summary {
    display: flex; width: 100%; min-height: 2.85rem; padding: .78rem .9rem;
    color: #fff; border-radius: var(--radius-sm); font-size: 1rem;
  }
  .site-header .nav-dropdown summary:hover,
  .site-header .nav-dropdown details[open] > summary,
  .site-header .nav-dropdown summary.is-current { color: #fff; background: rgba(255,255,255,.12); }
  .site-header .nav-dropdown summary span { margin-left: auto; color: #C8F1D0; }
  .site-header .nav-dropdown-menu {
    position: static; display: grid; min-width: 0; padding: .15rem 0 .3rem .7rem;
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
  }
  .site-header .nav-dropdown-menu a,
  .site-header .nav-dropdown-menu a:hover,
  .site-header .nav-dropdown-menu a[aria-current="page"] { color: #e4f1f7 !important; background: transparent; font-size: .93rem !important; }
}

@keyframes cn-hero-sweep { 0%, 25% { transform: translateX(-24%) rotate(-8deg); opacity: .18; } 55% { opacity: .78; } 100% { transform: translateX(28%) rotate(-8deg); opacity: .14; } }
@keyframes cn-hero-pan { from { transform: scale(1.02) translate3d(-1.5%,0,0); } to { transform: scale(1.09) translate3d(2%, -1%,0); } }
@keyframes cn-poster-float { from { transform: translateY(0) scale(1); } to { transform: translateY(-5px) scale(1.018); } }

@media (max-width: 780px) {
  .frontpage-feature-heading, .conference-library-intro { align-items: flex-start; flex-direction: column; }
  .frontpage-slide { grid-template-columns: 1fr; }
  .frontpage-slide-media { position: absolute; inset: 0; opacity: .46; }
  .frontpage-slide-copy { min-height: 24rem; }
  .frontpage-slide h2 { max-width: 14ch; }
  .conference-detail-header, .conference-detail-layout { grid-template-columns: 1fr; }
  .conference-detail-poster { justify-self: start; width: 11rem; max-height: 14rem; }
}

@media (max-width: 540px) {
  .frontpage-rotator { min-height: 25rem; border-radius: .65rem; }
  .frontpage-slide-copy { padding: 1.7rem; }
  .frontpage-controls { right: .65rem; bottom: .65rem; }
  .frontpage-controls button { width: 2rem; height: 2rem; }
  .frontpage-controls [data-frontpage-pause] { display: none; }
  .conference-card-media { height: 11.5rem; }
}
