/*
Theme Name: jornadas-academicas.mx
Theme URI: https://jornadas-academicas.mx
Author: Cesar Gerardo Guzman Lopez
Author URI: https://jornadas-academicas.mx
Description: Tema elegante académico — Jornadas Interinstitucionales UAM–UACM sobre IA.
Version: 2.0.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.2
Text Domain: jornadas-academicas-mx
*/

/* ─── Paleta académica violeta ──────────────────────── */
:root {
  --ja-primary: #4c1d95;
  --ja-primary-rgb: 76, 29, 149;
  --ja-primary-light: #7c3aed;
  --ja-primary-lighter: #a78bfa;
  --ja-secondary: #1e1b4b;
  --ja-accent: #06b6d4;
  --ja-accent-warm: #f59e0b;
  --ja-bg: #faf5ff;
  --ja-bg-alt: #f5f3ff;
  --ja-text: #1e1b4b;
  --ja-text-light: #6b7280;
  --ja-surface: rgba(255, 255, 255, 0.72);
  --ja-surface-solid: #ffffff;
  --ja-border: rgba(139, 92, 246, 0.18);
  --ja-shadow: rgba(76, 29, 149, 0.1);
  --ja-radius: 1.25rem;
  --ja-radius-lg: 2rem;
  --ja-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset / Base ──────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--ja-bg);
  color: var(--ja-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--ja-primary-light);
  text-decoration: none;
  transition: color var(--ja-transition);
}
a:hover {
  color: var(--ja-primary);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ja-secondary);
  line-height: 1.25;
}

/* ─── Layout ────────────────────────────────────────── */
.site-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-main {
  padding: 3rem 0 4rem;
  position: relative;
  z-index: 1;
}

footer,
[role="contentinfo"] {
  position: relative;
  z-index: 1;
}

/* ─── Glassmorphism surface ─────────────────────────── */
.glass {
  background: var(--ja-surface);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid var(--ja-border);
  border-radius: var(--ja-radius-lg);
  box-shadow: 0 8px 32px var(--ja-shadow);
}

/* ─── Header ────────────────────────────────────────── */
.site-header {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--ja-secondary) 0%,
    var(--ja-primary) 50%,
    #6d28d9 100%
  );
  color: #fff;
  overflow: hidden;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0 1.15rem;
  position: relative;
  z-index: 2;
  min-height: 104px;
}

.site-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex-shrink: 0;
}

.site-brand a {
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-brand p {
  margin: 0.15rem 0 0;
  opacity: 0.75;
  font-size: 0.85rem;
  font-weight: 400;
}

.site-brand__fallback,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  max-width: 300px;
}

.site-brand__img,
.custom-logo,
.custom-logo-link img {
  display: block;
  width: auto !important;
  height: 76px !important;
  max-width: 280px;
  max-height: 76px !important;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

/* Nav */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}
.site-nav a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1rem;
  border-radius: var(--ja-radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    background var(--ja-transition),
    color var(--ja-transition);
}
.site-nav a:hover,
.site-nav .current-menu-item a {
  background: rgba(15, 23, 42, 0.36);
  color: #f8fbff;
}

/* SVG wave separator */
.header-wave {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -1px;
}

/* ─── Compact homepage intro ───────────────────────── */
.page-intro--compact {
  margin: 0 0 1.5rem;
}

.page-intro--compact .section-title {
  margin-bottom: 1rem;
}

.page-intro--compact h1 {
  margin-bottom: 0.5rem;
}

/* ─── Hero (front-page) ─────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #120b3f 0%, #34126a 42%, #5b21b6 100%);
  color: #f8fbff;
  overflow: hidden;
  padding: 5rem 0 7rem;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 600px 400px at 20% 80%,
      rgba(6, 182, 212, 0.25),
      transparent
    ),
    radial-gradient(
      ellipse 500px 500px at 80% 20%,
      rgba(167, 139, 250, 0.3),
      transparent
    );
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}
.hero .hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  opacity: 0.96;
  margin: 0 0 2rem;
  font-weight: 400;
  line-height: 1.6;
}
.hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition:
    transform var(--ja-transition),
    box-shadow var(--ja-transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.btn--accent {
  background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 100%);
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.22);
}
.btn--accent:hover {
  color: #020617;
}
.btn--glass {
  background: rgba(15, 23, 42, 0.22);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating SVG circles in hero */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-decor circle,
.hero-decor ellipse {
  animation: float-up 18s ease-in-out infinite;
}
@keyframes float-up {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.18;
  }
  50% {
    transform: translateY(-30px) scale(1.08);
    opacity: 0.28;
  }
}

/* ─── Section headings ──────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--ja-primary-light), var(--ja-accent));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}
.section-title p {
  color: var(--ja-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Info cards grid (mesas redondas, etc.) ────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.info-item {
  background: var(--ja-surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ja-border);
  border-radius: var(--ja-radius-lg);
  padding: 2rem;
  text-align: center;
  transition:
    transform var(--ja-transition),
    box-shadow var(--ja-transition);
}
.info-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--ja-shadow);
}
.info-item__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--ja-primary),
    var(--ja-primary-light)
  );
  border-radius: 50%;
  color: #fff;
}
.info-item__icon svg {
  width: 28px;
  height: 28px;
}
.info-item h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.info-item p {
  color: var(--ja-text-light);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* ─── Event details strip ───────────────────────────── */
.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 3rem 0;
}
.event-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--ja-surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ja-border);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.event-detail svg {
  width: 20px;
  height: 20px;
  color: var(--ja-primary-light);
  flex-shrink: 0;
}

.agenda-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

.agenda-layout__days {
  display: grid;
  gap: 1rem;
}

.agenda-day {
  padding: 1.25rem;
}

.agenda-day__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--ja-primary);
}

.agenda-day__items {
  display: grid;
  gap: 0.85rem;
}

.agenda-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(76, 29, 149, 0.18);
}

.agenda-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.agenda-item__content {
  display: grid;
  gap: 0.25rem;
}

.agenda-item__title {
  color: var(--ja-secondary);
  font-weight: 700;
}

.agenda-item__place {
  color: var(--ja-text-light);
  font-size: 0.9rem;
}

.agenda-item__time {
  white-space: nowrap;
  color: var(--ja-primary);
  font-weight: 700;
}

.agenda-layout__calendar {
  padding: 0.75rem;
  position: sticky;
  top: 1rem;
}

.agenda-calendar__img {
  width: 100%;
  border-radius: 1rem;
}

/* ─── Posts list (blog) ─────────────────────────────── */
.posts-list {
  display: grid;
  gap: 2rem;
}

.post-entry {
  background: var(--ja-surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ja-border);
  border-radius: var(--ja-radius-lg);
  padding: 2rem 2.5rem;
  transition:
    transform var(--ja-transition),
    box-shadow var(--ja-transition);
  position: relative;
  overflow: hidden;
}
.post-entry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--ja-primary-light),
    var(--ja-accent)
  );
  border-radius: 4px 0 0 4px;
}
.post-entry:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px var(--ja-shadow);
}
.post-entry__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ja-text-light);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.post-entry__meta svg {
  width: 16px;
  height: 16px;
  color: var(--ja-primary-lighter);
}
.post-entry h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}
.post-entry h2 a {
  color: var(--ja-secondary);
  text-decoration: none;
  transition: color var(--ja-transition);
}
.post-entry h2 a:hover {
  color: var(--ja-primary-light);
}

.post-entry__excerpt {
  color: var(--ja-text-light);
  line-height: 1.7;
  margin: 0;
}

/* ─── Single article ────────────────────────────────── */
.article-single {
  background: var(--ja-surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ja-border);
  border-radius: var(--ja-radius-lg);
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
}
.article-single h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}
.article-single__meta {
  color: var(--ja-text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ja-border);
}
.article-single .entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
}
.article-single .entry-content h2,
.article-single .entry-content h3 {
  margin-top: 2rem;
}
.article-single .entry-content p {
  margin-bottom: 1.25rem;
}
.article-single .entry-content img {
  border-radius: var(--ja-radius);
}
.article-single .entry-content blockquote {
  border-left: 4px solid var(--ja-primary-lighter);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--ja-bg-alt);
  border-radius: 0 var(--ja-radius) var(--ja-radius) 0;
  font-style: italic;
  color: var(--ja-text-light);
}

/* ─── Page template ─────────────────────────────────── */
.page-content {
  background: var(--ja-surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ja-border);
  border-radius: var(--ja-radius-lg);
  padding: 3rem;
}
.page-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 1.5rem;
  position: relative;
  display: inline-block;
}
.page-content h1::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--ja-primary-light), var(--ja-accent));
  border-radius: 2px;
  margin-top: 0.75rem;
}

/* ─── Archive header ────────────────────────────────── */
.archive-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--ja-border);
}
.archive-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
}
.archive-header p {
  color: var(--ja-text-light);
  margin: 0;
}

/* ─── Empty state ───────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--ja-surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ja-border);
  border-radius: var(--ja-radius-lg);
}
.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--ja-primary-lighter);
  margin-bottom: 1.5rem;
}
.empty-state h2 {
  margin: 0 0 0.5rem;
}
.empty-state p {
  color: var(--ja-text-light);
  margin: 0;
}

/* ─── Footer ────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(135deg, var(--ja-secondary) 0%, #312e81 100%);
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(167, 139, 250, 0.15),
    transparent 70%
  );
  pointer-events: none;
}

.footer-wave {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -1px;
}

.site-footer__inner {
  position: relative;
  z-index: 2;
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 0.4rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--ja-transition);
}
.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom nav ul {
  display: flex;
  gap: 1.5rem;
}

/* ─── Pagination ────────────────────────────────────── */
.navigation.pagination {
  margin-top: 2rem;
  text-align: center;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ja-primary);
  border: 1px solid var(--ja-border);
  transition: all var(--ja-transition);
}
.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
  background: var(--ja-primary);
  color: #fff;
  border-color: var(--ja-primary);
}

/* ─── Decorative background blobs ───────────────────── */
.site-motion-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -3;
  opacity: 0.7;
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.35;
  animation: jaBlobFloat 18s ease-in-out infinite;
}
.bg-blob--1 {
  width: 500px;
  height: 500px;
  background: rgba(var(--ja-primary-rgb), 0.15);
  top: -100px;
  left: -100px;
}
.bg-blob--2 {
  width: 400px;
  height: 400px;
  background: rgba(6, 182, 212, 0.12);
  bottom: -50px;
  right: -80px;
  animation-duration: 22s;
}

@keyframes jaBlobFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(26px, -18px, 0) scale(1.08);
  }
}

@keyframes jaPageLogoFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-10deg) scale(1);
  }
  50% {
    transform: translate3d(24px, 18px, 0) rotate(-7deg) scale(1.03);
  }
}

@keyframes jaBackgroundSweep {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-18px, 12px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

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

@keyframes jaBeamPan {
  0%,
  100% {
    opacity: 0.3;
    transform: translateX(0) scaleX(1);
  }
  50% {
    opacity: 0.8;
    transform: translateX(10px) scaleX(1.04);
  }
}

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

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 3rem 0 5rem;
  }
  .agenda-layout,
  .event-details {
    grid-template-columns: 1fr;
  }
  .agenda-layout__calendar {
    position: static;
  }
  .agenda-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-single,
  .page-content {
    padding: 1.5rem;
  }
  .post-entry {
    padding: 1.5rem;
  }
}

/* ─── WordPress admin-bar fix ───────────────────────── */
.admin-bar .site-header {
  top: 0;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE MENU
   ═══════════════════════════════════════════════════════ */

.site-nav--desktop ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav--desktop li {
  position: relative;
}

.site-nav--desktop a {
  display: block;
  padding: 0.5rem 1rem;
  color: #f8fbff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition:
    background 0.2s,
    color 0.2s;
}

.site-nav--desktop a:hover,
.site-nav--desktop .current-menu-item > a,
.site-nav--desktop .current-menu-ancestor > a {
  background: rgba(15, 23, 42, 0.26);
  color: #fff;
}

/* Desktop sub-menu */
.site-nav--desktop .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(30, 27, 75, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 0.75rem;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.25s,
    transform 0.25s,
    visibility 0.25s;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.site-nav--desktop li:hover > .sub-menu,
.site-nav--desktop li.submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav--desktop .sub-menu a {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  border-radius: 0;
}

.site-nav--desktop .sub-menu a:hover {
  background: rgba(167, 139, 250, 0.2);
}

/* Hamburger button */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  color: #fff;
  padding: 0.65rem;
  border-radius: 0.85rem;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  z-index: 220;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.menu-toggle:hover {
  background: rgba(15, 23, 42, 0.44);
  transform: translateY(-1px);
}

/* Mobile navigation overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  z-index: 205;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav__inner {
  width: min(320px, 85vw);
  max-width: 85vw;
  height: 100vh;
  padding: 4.75rem 1.15rem 2rem;
  background: linear-gradient(180deg, #1e1b4b 0%, #4c1d95 100%);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.is-open .mobile-nav__inner {
  transform: translateX(0);
}

.mobile-nav__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.mobile-nav__list,
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav__list li,
.mobile-nav ul li {
  margin-bottom: 0.35rem;
}

.mobile-nav__list a,
.mobile-nav ul a {
  display: block;
  padding: 0.9rem 1rem;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.18);
  transition:
    background 0.2s,
    color 0.2s;
}

.mobile-nav__list a:hover,
.mobile-nav ul a:hover {
  color: #fff;
  background: rgba(15, 23, 42, 0.52);
}

.mobile-nav__list .current-menu-item > a,
.mobile-nav ul .current-menu-item > a {
  color: var(--ja-accent);
}

/* Mobile sub-menu accordion */
.mobile-nav__list .sub-menu {
  list-style: none;
  padding: 0 0 0 1rem;
  margin: 0;
  display: none;
}

.mobile-nav__list .submenu-open > .sub-menu {
  display: block;
}

.mobile-nav__list .sub-menu a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.65rem 0.9rem;
}

.submenu-arrow {
  display: inline-flex;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0.3rem;
  margin-left: auto;
  float: right;
  margin-top: -2rem;
  transition: transform 0.2s;
}

.submenu-open > .submenu-arrow {
  transform: rotate(180deg);
}

.mobile-nav__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

.mobile-nav__social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.mobile-nav__social a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.mobile-nav__social a:hover {
  color: var(--ja-accent);
}

/* Body state when menu open */
body.menu-open {
  overflow: hidden;
}

/* Header shrink on scroll */
.site-header.is-scrolled {
  padding-block: 0.4rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════
   CARTEL SECTION
   ═══════════════════════════════════════════════════════ */
.cartel-section {
  margin-bottom: 3rem;
}

.cartel-frame {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(76, 29, 149, 0.2);
  border: 2px solid rgba(167, 139, 250, 0.3);
  background: var(--ja-surface);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

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

/* ═══════════════════════════════════════════════════════
   PONENTES GRID & CARDS
   ═══════════════════════════════════════════════════════ */
.ponentes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ponentes-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.ponente-card {
  display: block;
  background: var(--ja-surface);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--ja-text);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}

.ponente-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(76, 29, 149, 0.18);
  border-color: var(--ja-primary-lighter);
}

.ponente-card__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--ja-primary) 0%,
    var(--ja-primary-light) 100%
  );
}

.ponente-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ponente-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.4);
}

.ponente-card__placeholder svg {
  width: 48px;
  height: 48px;
}

.ponente-card__body {
  padding: 1rem 1.2rem 1.2rem;
}

.ponente-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ja-secondary);
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.ponente-card__cargo {
  font-size: 0.82rem;
  color: var(--ja-primary-light);
  margin: 0 0 0.2rem;
  font-weight: 500;
}

.ponente-card__inst {
  font-size: 0.8rem;
  color: var(--ja-text-light);
  margin: 0;
}

.ponente-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.6rem;
}

/* ═══════════════════════════════════════════════════════
   PONENTE TAGS
   ═══════════════════════════════════════════════════════ */
.ponente-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(76, 29, 149, 0.08);
  color: var(--ja-primary-light);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.ponente-tag:hover {
  background: var(--ja-primary-light);
  color: #fff;
}

.ponente-tag--sm {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
}

/* ═══════════════════════════════════════════════════════
   PONENTE SINGLE PAGE
   ═══════════════════════════════════════════════════════ */
.ponente-single__header {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.ponente-single__photo {
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--ja-primary) 0%,
    var(--ja-primary-light) 100%
  );
  box-shadow: 0 8px 24px rgba(76, 29, 149, 0.2);
}

.ponente-single__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ponente-single__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.4);
}

.ponente-single__placeholder svg {
  width: 72px;
  height: 72px;
}

.ponente-single__info h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--ja-secondary);
}

.ponente-single__cargo {
  font-size: 1.05rem;
  color: var(--ja-primary-light);
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.ponente-single__detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ja-text-light);
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.ponente-single__detail svg {
  flex-shrink: 0;
  color: var(--ja-primary-lighter);
}

.ponente-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.ponente-single__social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.ponente-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(76, 29, 149, 0.06);
  color: var(--ja-primary-light);
  text-decoration: none;
  border: 1px solid rgba(167, 139, 250, 0.15);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.ponente-social-link:hover {
  background: var(--ja-primary-light);
  color: #fff;
  border-color: var(--ja-primary-light);
}

.ponente-social-link svg {
  width: 14px;
  height: 14px;
}

.ponente-single__bio {
  margin-bottom: 2rem;
}

.ponente-single__bio h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--ja-secondary);
}

.ponente-single__mesas {
  margin-bottom: 2rem;
}

.ponente-single__mesas h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--ja-secondary);
}

.mesas-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mesa-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--ja-surface);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--ja-text);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.mesa-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(76, 29, 149, 0.12);
}

.mesa-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 0.5rem;
  background: rgba(76, 29, 149, 0.08);
  color: var(--ja-primary-light);
}

.mesa-card__body h4 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  color: var(--ja-secondary);
}

.mesa-card__meta {
  font-size: 0.8rem;
  color: var(--ja-text-light);
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.mesa-card__meta svg {
  width: 12px;
  height: 12px;
  vertical-align: -1px;
  margin-right: 0.2rem;
}

/* ═══════════════════════════════════════════════════════
   PONENTE NAVIGATION
   ═══════════════════════════════════════════════════════ */
.ponente-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(167, 139, 250, 0.15);
}

.ponente-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 0.5rem;
  background: rgba(76, 29, 149, 0.06);
  color: var(--ja-primary-light);
  text-decoration: none;
  border: 1px solid rgba(167, 139, 250, 0.15);
  transition:
    background 0.2s,
    color 0.2s;
}

.ponente-nav a:hover {
  background: var(--ja-primary-light);
  color: #fff;
}

.ponente-nav__all {
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════
   ARCHIVE HERO
   ═══════════════════════════════════════════════════════ */
.archive-hero {
  background: linear-gradient(135deg, #120b3f 0%, #34126a 50%, #5b21b6 100%);
  padding: 4rem 0 3rem;
  margin: 1rem 1.5rem 0;
  border-radius: 1.5rem 1.5rem 0 0;
  overflow: hidden;
  text-align: center;
  color: #f8fbff;
  position: relative;
  box-shadow: 0 18px 40px rgba(76, 29, 149, 0.14);
}

.archive-hero__content {
  position: relative;
  z-index: 1;
}

.archive-hero h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.28);
}

.archive-hero p {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1rem;
  margin: 0;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.2);
}

/* ═══════════════════════════════════════════════════════
   FILTER TABS (ponentes / mesas)
   ═══════════════════════════════════════════════════════ */
.ponentes-filter,
.mesas-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.ponentes-filter__tab,
.mesas-filter__tab {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--ja-surface);
  color: var(--ja-text-light);
  text-decoration: none;
  border: 1px solid rgba(167, 139, 250, 0.15);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.ponentes-filter__tab:hover,
.mesas-filter__tab:hover {
  border-color: var(--ja-primary-lighter);
  color: var(--ja-primary-light);
}

.ponentes-filter__tab.is-active,
.mesas-filter__tab.is-active {
  background: var(--ja-primary);
  color: #fff;
  border-color: var(--ja-primary);
  box-shadow: 0 8px 18px rgba(76, 29, 149, 0.18);
}

/* ═══════════════════════════════════════════════════════
   MESAS TIMELINE
   ═══════════════════════════════════════════════════════ */
.mesas-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 120px;
  margin-bottom: 2rem;
}

.mesas-timeline::before {
  content: "";
  position: absolute;
  left: 108px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--ja-primary-lighter),
    rgba(167, 139, 250, 0.1)
  );
}

.mesa-timeline-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2rem;
}

.mesa-timeline-item__time {
  position: absolute;
  left: -120px;
  width: 95px;
  text-align: right;
  display: flex;
  flex-direction: column;
}

.mesa-timeline-item__hora {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ja-primary);
}

.mesa-timeline-item__hasta {
  font-size: 0.78rem;
  color: var(--ja-text-light);
}

.mesa-timeline-item__dot {
  position: absolute;
  left: -16px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ja-primary-light);
  border: 3px solid var(--ja-bg);
  box-shadow: 0 0 0 2px var(--ja-primary-lighter);
  z-index: 2;
}

.mesa-timeline-item__content {
  flex: 1;
  padding: 1.2rem 1.5rem;
}

.mesa-timeline-item__content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.mesa-timeline-item__content h3 a {
  color: var(--ja-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.mesa-timeline-item__content h3 a:hover {
  color: var(--ja-primary-light);
}

.mesa-timeline-item__desc {
  font-size: 0.88rem;
  color: var(--ja-text-light);
  margin: 0 0 0.8rem;
  line-height: 1.6;
}

.mesa-timeline-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ja-text-light);
  margin-bottom: 0.6rem;
}

.mesa-timeline-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.mesa-timeline-item__meta svg {
  flex-shrink: 0;
}

.mesa-timeline-item__avatars {
  display: flex;
  gap: 0;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════
   MESA AVATARS
   ═══════════════════════════════════════════════════════ */
.mesa-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--ja-bg);
  margin-left: -8px;
  background: linear-gradient(
    135deg,
    var(--ja-primary) 0%,
    var(--ja-primary-light) 100%
  );
  text-decoration: none;
  transition:
    transform 0.2s,
    z-index 0.2s;
  position: relative;
}

.mesa-avatar:first-child {
  margin-left: 0;
}

.mesa-avatar:hover {
  transform: scale(1.15);
  z-index: 5;
}

.mesa-avatar__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mesa-avatar__initials {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

.mesa-avatar--more {
  background: rgba(76, 29, 149, 0.15);
  color: var(--ja-primary-light);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: default;
}

/* ═══════════════════════════════════════════════════════
   MESA SINGLE PAGE
   ═══════════════════════════════════════════════════════ */
.mesa-single__header {
  text-align: center;
  margin-bottom: 2rem;
}

.mesa-single__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  background: rgba(76, 29, 149, 0.08);
  color: var(--ja-primary-light);
  margin-bottom: 1rem;
}

.mesa-single__header h1 {
  font-size: 2rem;
  color: var(--ja-secondary);
  margin: 0 0 1rem;
}

.mesa-single__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.mesa-detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(76, 29, 149, 0.06);
  color: var(--ja-text-light);
  border: 1px solid rgba(167, 139, 250, 0.12);
}

.mesa-detail-pill svg {
  width: 14px;
  height: 14px;
  color: var(--ja-primary-lighter);
}

.mesa-single__content {
  margin-bottom: 2.5rem;
}

.mesa-single__ponentes h2 {
  font-size: 1.4rem;
  color: var(--ja-secondary);
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════
   SEDE PANEL (front-page)
   ═══════════════════════════════════════════════════════ */
.sede-panel {
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.sede-panel__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sede-panel__header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.sede-panel__inst {
  color: var(--ja-primary-light);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.sede-panel__dir {
  color: var(--ja-text-light);
  margin: 0 0 1.2rem;
  line-height: 1.7;
}

.sede-panel__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ═══════════════════════════════════════════════════════
   FOOTER SOCIAL
   ═══════════════════════════════════════════════════════ */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.28);
  color: #fff;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.footer-social a:hover {
  background: var(--ja-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE OVERRIDES
   ═══════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .site-nav--desktop {
    display: none !important;
  }
  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    order: -1;
  }
  .site-brand {
    flex: 1;
  }
  .site-header__inner {
    padding-block: 0.8rem;
  }
}

@media (max-width: 768px) {
  .ponente-single__header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ponente-single__photo {
    max-width: 220px;
    margin: 0 auto;
  }
  .ponente-single__social {
    justify-content: center;
  }
  .ponente-single__tags {
    justify-content: center;
  }
  .ponentes-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
  .mesas-timeline {
    padding-left: 0;
  }
  .mesas-timeline::before {
    display: none;
  }
  .mesa-timeline-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  .mesa-timeline-item__time {
    position: static;
    width: auto;
    flex-direction: row;
    gap: 0.5rem;
    text-align: left;
  }
  .mesa-timeline-item__dot {
    display: none;
  }
  .ponente-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
  .archive-hero {
    padding: 2.5rem 0 2rem;
  }
  .archive-hero h1 {
    font-size: 1.5rem;
  }
  .cartel-frame {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════
   REFINAMIENTO VISUAL 2026
   ═══════════════════════════════════════════════════════ */
.site-brand__home {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #fff;
  text-decoration: none;
}

.site-brand__img {
  width: auto;
  height: 76px;
  max-width: 280px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.22));
}

.site-brand__img--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 72px;
  padding: 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.16);
}

.site-brand__copy {
  display: grid;
  gap: 0.15rem;
}

.site-brand__title {
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-brand__tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
}

.site-shell--home {
  position: relative;
}

.site-shell--home > :not(.site-global-ambient) {
  position: relative;
  z-index: 1;
}

.site-global-ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.site-global-ambient::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.1),
      transparent 0 34%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 110px,
      rgba(6, 182, 212, 0.06) 110px 112px,
      transparent 112px 222px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 140px,
      rgba(124, 58, 237, 0.05) 140px 142px,
      transparent 142px 284px
    );
  animation: jaBackgroundSweep 26s linear infinite;
}

.site-global-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 82% 18%,
    rgba(6, 182, 212, 0.12),
    transparent 0 28%
  );
  animation: jaAmbientPulse 12s ease-in-out infinite;
}

.site-global-ambient__logo {
  position: absolute;
  top: -3rem;
  left: -3rem;
  width: min(70vw, 980px);
  min-width: 420px;
  opacity: 0.055;
  filter: drop-shadow(0 24px 56px rgba(76, 29, 149, 0.15));
  transform-origin: top left;
  animation: jaPageLogoFloat 18s ease-in-out infinite;
}

.site-global-ambient__lottie {
  position: absolute;
  top: 2rem;
  right: 1rem;
  width: min(40vw, 480px);
  height: min(40vw, 480px);
  opacity: 0.34;
  filter: saturate(1.05) drop-shadow(0 10px 24px rgba(76, 29, 149, 0.08));
}

.site-global-ambient__lottie svg {
  width: 100%;
  height: 100%;
}

.site-global-ambient__beam {
  position: absolute;
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(6, 182, 212, 0.42) 50%,
    transparent 100%
  );
  opacity: 0.7;
  transform-origin: center;
  animation: jaBeamPan 14s ease-in-out infinite;
}

.site-global-ambient__beam--1 {
  top: 20%;
  left: 4%;
  width: 42%;
  transform: rotate(-12deg);
}

.site-global-ambient__beam--2 {
  top: 48%;
  right: -8%;
  width: 46%;
  transform: rotate(-28deg);
  animation-delay: -5s;
}

.site-global-ambient__beam--3 {
  top: 74%;
  left: 12%;
  width: 38%;
  transform: rotate(8deg);
  animation-delay: -9s;
}

.page-intro-card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 1.5rem;
  background:
    radial-gradient(
      circle at top right,
      rgba(6, 182, 212, 0.1),
      transparent 0 28%
    ),
    linear-gradient(135deg, rgba(76, 29, 149, 0.05), rgba(255, 255, 255, 0.95));
  box-shadow: 0 18px 45px rgba(76, 29, 149, 0.12);
}

.page-intro__eyebrow,
.page-intro__brand-stage,
.page-intro__copy,
.page-intro__meta,
.page-intro__actions {
  position: relative;
  z-index: 1;
}

.page-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--ja-primary);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.page-intro__logo {
  width: auto;
}

.page-intro__copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--ja-secondary);
}

.page-intro__copy p {
  margin: 0;
  max-width: 58rem;
  color: var(--ja-text-light);
  font-size: 1.02rem;
}

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

.page-intro__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.14);
  color: var(--ja-secondary);
  font-weight: 600;
}

.page-intro__chip svg {
  width: 16px;
  height: 16px;
  color: var(--ja-primary-light);
}

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

.btn--ghost {
  color: var(--ja-primary);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.18);
}

.btn--ghost:hover {
  background: rgba(124, 58, 237, 0.14);
}

.site-main .section-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.site-main .section-title p {
  max-width: 46rem;
  margin: 0.35rem auto 0;
}

.ponentes-filter {
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ponentes-filter__tab {
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  background: rgba(255, 255, 255, 0.85);
}

.ponente-card,
.mesa-timeline-item__content,
.ponente-single__header,
.ponente-single__bio,
.ponente-single__mesas,
.mesa-single__header,
.mesa-single__content,
.mesa-single__ponentes,
.sede-panel,
.agenda-day,
.agenda-layout__calendar,
.cartel-frame {
  border: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow: 0 16px 38px rgba(76, 29, 149, 0.08);
}

.ponente-card:hover,
.mesa-timeline-item__content:hover {
  box-shadow: 0 24px 52px rgba(76, 29, 149, 0.14);
}

.agenda-layout__calendar,
.cartel-frame {
  position: relative;
  padding: 1rem;
}

.agenda-layout__calendar::after,
.cartel-frame::after {
  content: none;
  display: none;
}

.agenda-calendar__img,
.cartel-img,
.ponente-single__img,
.is-zoomable {
  cursor: zoom-in;
}

.ja-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 9999;
}

.ja-lightbox.is-open {
  display: flex;
}

.ja-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ja-lightbox__dialog {
  position: relative;
  max-width: min(92vw, 980px);
  max-height: 90vh;
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
  z-index: 1;
}

.ja-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 74vh;
  margin: 0 auto;
  border-radius: 0.85rem;
}

.ja-lightbox__caption {
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--ja-secondary);
  font-weight: 600;
}

.ja-lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(30, 27, 75, 0.92);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

/* ─── Bordes rectos en tarjetas y etiquetas ─────────── */
.page-intro-card,
.glass,
.info-item,
.post-entry,
.ponente-card,
.mesa-timeline-item__content,
.ponente-single__header,
.ponente-single__bio,
.ponente-single__mesas,
.mesa-single__header,
.mesa-single__content,
.mesa-single__ponentes,
.sede-panel,
.agenda-day,
.agenda-layout__calendar,
.cartel-frame,
.archive-hero,
.page-intro__chip,
.ponentes-filter__tab,
.mesas-filter__tab,
.btn,
.mobile-nav,
.mobile-nav__close,
.site-brand__img--fallback {
  border-radius: 0 !important;
}

@media (max-width: 768px) {
  .site-brand__img {
    height: 64px !important;
    max-width: 170px;
    max-height: 64px !important;
  }

  .site-brand__tagline {
    display: none;
  }

  .page-intro-card {
    padding: 1.15rem;
  }

  .site-global-ambient__logo {
    width: 92vw;
    min-width: 240px;
    top: 0;
    left: -4rem;
    opacity: 0.05;
  }

  .site-global-ambient__lottie {
    width: 220px;
    height: 220px;
    right: -1rem;
    top: 4.5rem;
    opacity: 0.28;
  }

  .site-global-ambient__beam--2,
  .site-global-ambient__beam--3 {
    display: none;
  }

  .page-intro__brand-stage {
    min-height: 300px;
  }

  .page-intro__logo--hero {
    max-width: 96%;
  }

  .page-intro__actions,
  .page-intro__meta {
    flex-direction: column;
  }

  .archive-hero {
    margin-inline: 1rem;
  }
}
