/* ProBogota Mesa de Expertos — mesa-expertos.css v1.5.9
   Sincronizado con index_v11.html (maqueta de referencia)     */

/* ─── VARIABLES ─────────────────────────────────────────────────── */
:root {
  --dock-scroll-extra: 680px;
  --pb-blue:           #1a3090;
  --pb-blue-dark:      #111f6e;
  --pb-blue-mid:       #2040b8;
  --pb-blue-light:     #e8ecf8;
  --pb-blue-hero:      #1428a0;
  --pb-white:          #ffffff;
  --pb-off-white:      #f8f8f8;
  --pb-gray-1:         #f2f2f2;
  --pb-gray-2:         #e5e5e5;
  --pb-gray-3:         #aaaaaa;
  --pb-gray-4:         #666666;
  --pb-gray-5:         #333333;
  --pb-black:          #111111;
  --cat-movilidad:     #2d5fa5;
  --font:              system-ui, 'Inter', sans-serif;
  --font-tight:        'Inter Tight', system-ui, sans-serif;
  --max-w:             1200px;
  --pad:               0 32px;
  --radius:            6px;
  --radius-lg:         12px;
  --ease:              cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --stage-h:           440px;
  --expert-h:          400px;
  --mesa-bottom:       28%;
  --mesa-h:            110px;
  --header-h:          88px;
}

/* ─── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--pb-black); background: var(--pb-white); overflow-x: hidden; line-height: 1.6; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: var(--pad); }

/* ─── FIX CAMPO BLANCO (WordPress theme streetstyle-blog) ────────
   El theme inyecta padding-top en el contenedor de contenido.
   Solo aplica en .pb-mesa-page para no romper otras páginas.    */
.pb-mesa-page .page-content,
.pb-mesa-page .content-wrap,
.pb-mesa-page .entry-content,
.pb-mesa-page #content > .container,
.pb-mesa-page main > .container,
.pb-mesa-page #main,
.pb-mesa-page #content,
.pb-mesa-page .page-wrapper,
.pb-mesa-page .site-content,
.pb-mesa-page .trx-content-wrap,
.pb-mesa-page .page-wrap,
.pb-mesa-page main {
  padding-top: 0 !important;
  margin-top:  0 !important;
}
/* Apuntar solo al primer hijo directo de main/content — evita romper secciones internas */
.pb-mesa-page main > *:first-child,
.pb-mesa-page #content > *:first-child,
.pb-mesa-page .page-content > *:first-child {
  margin-top:  0 !important;
  padding-top: 0 !important;
}

/* ─── ANIMACIONES ─────────────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.65s;
  transition-timing-function: cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
[data-animate], [data-animate="fade-up"]   { transform: translateY(22px); }
[data-animate="fade-left"]                 { transform: translateX(22px); }
[data-animate="fade-right"]                { transform: translateX(-22px); }
[data-animate].is-visible                  { opacity: 1; transform: translate(0,0); }
[data-animate-delay="50"]  { transition-delay: .05s; }
[data-animate-delay="100"] { transition-delay: .10s; }
[data-animate-delay="150"] { transition-delay: .15s; }
[data-animate-delay="200"] { transition-delay: .20s; }
[data-animate-delay="250"] { transition-delay: .25s; }
[data-animate-delay="300"] { transition-delay: .30s; }
[data-animate-delay="350"] { transition-delay: .35s; }
[data-animate-delay="400"] { transition-delay: .40s; }
[data-animate-delay="500"] { transition-delay: .50s; }
[data-animate-delay="600"] { transition-delay: .60s; }
[data-animate-delay="700"] { transition-delay: .70s; }
[data-animate-delay="800"] { transition-delay: .80s; }

/* ─── SCROLL PROGRESS ─────────────────────────────────────────────── */
.scroll-progress-bar-track {
  position: fixed; top: calc(var(--header-h) - 4px); left: 0; right: 0;
  height: 4px; background: #cccec3; z-index: 1001; pointer-events: none;
}
.scroll-progress-bar-track.drawer-open { opacity: 0 !important; }
.scroll-progress-bar {
  position: fixed; top: calc(var(--header-h) - 4px); left: 0;
  height: 4px; width: 0; background: #C7E054; z-index: 1002;
  transition: width .1s linear; border-radius: 0 2px 2px 0; pointer-events: none;
}
.scroll-progress-bar.drawer-open { opacity: 0 !important; }

/* ─── HEADER ──────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: #F2F7FC; border-bottom: 4px solid rgba(199,224,84,1);
  height: var(--header-h);
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 100%;
}
.header-logo-section { display: flex; align-items: center; gap: 14px; }
.header-logo-box {
  background: #0A1697; padding: 8px 12px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
}
.header-logo-name { font-family: var(--font-tight); font-weight: 900; font-size: 1.2rem; color: var(--pb-white); letter-spacing: -.5px; }
.header-divider    { width: 3px; height: 38px; background: #C7E054; }
.header-logo-sub   { font-size: .65rem; color: #A1A6B0; display: block; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.header-nav {
  background: transparent; border-top: none; position: relative;
  height: 100%; display: flex; align-items: center;
}
.header-nav::before, .header-nav::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 32px;
  pointer-events: none; z-index: 2; display: none;
}
.header-nav::before { left: 0;  background: linear-gradient(90deg,  #E4EAF1, transparent); }
.header-nav::after  { right: 0; background: linear-gradient(-90deg, #E4EAF1, transparent); }
.header-nav ul {
  display: flex; align-items: center; justify-content: flex-end;
  list-style: none; max-width: none; margin: 0; padding: 0 32px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  white-space: nowrap; flex-wrap: nowrap; height: 100%;
}
.header-nav ul::-webkit-scrollbar { display: none; }
.header-nav a {
  display: flex; align-items: center; padding: 0 18px;
  font-size: .75rem; font-weight: 700; color: #0A1697;
  border-bottom: 3px solid transparent; white-space: nowrap;
  transition: all .2s; letter-spacing: .5px; height: 100%;
}
.header-nav a:hover, .header-nav a.active { color: #0A1697; border-bottom-color: #C7E054; }

/* ─── HERO ───────────────────────────────────────────────────────── */
.mesa-hero {
  background: var(--pb-blue-hero);
  padding: 120px 0 72px;
  margin-top: var(--header-h);   /* FIX: compensa header fijo, sin espacio extra */
  position: relative;
  overflow: hidden;
}
.mesa-hero-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1.5'%3E%3Ccircle cx='30' cy='40' r='14'/%3E%3Ccircle cx='30' cy='40' r='6'/%3E%3Ccircle cx='90' cy='40' r='14'/%3E%3Ccircle cx='90' cy='40' r='6'/%3E%3Crect x='14' y='22' width='92' height='26' rx='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}
.hero-content { position: relative; max-width: 680px; color: var(--pb-white); }
.cat-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 20px; backdrop-filter: blur(8px);
}
.mesa-hero h1 {
  font-family: var(--font-tight) !important; font-weight: 900 !important;
  font-size: clamp(2rem, 4.5vw, 3.6rem) !important; line-height: 1.06 !important;
  letter-spacing: -1px; margin-bottom: 18px; color: var(--pb-white) !important;
}
/* FIX #13: em en hero es blanco semitransparente (no verde) */
.mesa-hero h1 em { font-style: italic !important; color: rgba(255,255,255,.7) !important; }
.mesa-hero p.lead { font-size: 1rem; line-height: 1.72; color: rgba(255,255,255,.72); max-width: 560px; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.18); padding-top: 28px; }
.hero-stat  { display: flex; flex-direction: column; gap: 3px; }
.hero-stat strong { font-family: var(--font-tight); font-size: 2.4rem; font-weight: 900; color: var(--pb-white); line-height: 1; }
.hero-stat span   { font-size: .75rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .5px; font-weight: 500; }

/* ─── SECTION LABELS / TITLES ─────────────────────────────────────── */
.section-label {
  font-size: .7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--pb-blue);
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.section-label::before { content: ''; width: 22px; height: 2px; background: var(--pb-blue); }
.section-title {
  font-family: var(--font-tight); font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.5px;
  color: var(--pb-black); margin-bottom: 4px; line-height: 1.1;
}

/* ─── DOCK DE EXPERTOS ───────────────────────────────────────────── */
/* FIX #9: overflow:visible (no overflow-x:hidden) */
.expertos-section {
  background: var(--pb-off-white); padding: 56px 0 0;
  border-bottom: 1px solid var(--pb-gray-2);
  overflow: visible;
}
.dock-hint { font-size: .78rem; color: var(--pb-gray-3); margin-top: 14px; display: flex; align-items: center; gap: 6px; }
.dock-hint svg { width: 13px; height: 13px; }
/* FIX #5: padding-top 80px (no 120px) como en la maqueta */
.dock-stage {
  position: relative; width: 100%;
  height: calc(var(--stage-h) + 80px);
  padding-top: 80px;
  overflow: visible;
  margin-top: 28px;
}
/* FIX #8: bottom sin +1px extra */
.mesa-surface {
  position: absolute; left: 0; right: 0; bottom: var(--mesa-bottom);
  z-index: 0; pointer-events: none; width: 100%;
}
.mesa-surface img { width: 100%; height: var(--mesa-h); object-fit: fill; display: block; }
.dock-fade-left, .dock-fade-right {
  position: absolute; top: 0; bottom: 0; width: 80px; pointer-events: none; z-index: 5;
}
.dock-fade-left  { left: 0;  background: linear-gradient(90deg,  var(--pb-off-white) 0, transparent 100%); }
.dock-fade-right { right: 0; background: linear-gradient(-90deg, var(--pb-off-white) 0, transparent 100%); }
/* FIX #6: overflow:visible en desktop (el drag lo gestiona el JS) */
.dock-scroll-wrap {
  position: absolute; left: 0; right: 0; bottom: 0; top: 0; z-index: 2;
  overflow: visible;
  scrollbar-width: none;
}
.dock-scroll-wrap::-webkit-scrollbar { display: none; }
/* FIX #7: justify-content:center como en la maqueta */
.dock-track {
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 60px; width: 100%; min-width: max-content;
  overflow: visible; box-sizing: border-box; height: 100%;
}
.dock-item {
  position: relative; border: none; background: transparent; padding: 0;
  cursor: pointer; display: flex; flex-direction: column; align-items: center;
  gap: 5px; transform-origin: bottom center; flex: 0 0 130px; width: 130px;
  outline: none; overflow: visible;
  transition: transform 0.55s cubic-bezier(0.18,0.89,0.32,1.28), z-index 0s;
  will-change: transform;
}
.dock-item:last-child    { padding-left: 18px; }
.dock-item.is-clicked    { pointer-events: none; }
.dock-item:nth-child(14) { margin-right: 32px; }
.dock-item.is-active     { pointer-events: none; }
.dock-item.is-active .dock-expert { transform: none !important; }
.dock-expert {
  width: 100%; height: var(--expert-h);
  display: flex; align-items: flex-end; justify-content: center;
  transform-origin: bottom center; overflow: visible;
  transition: transform 0.55s cubic-bezier(0.18,0.89,0.32,1.28), filter 0.35s cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
}
.dock-expert img { width: auto; max-width: none; height: 100%; object-fit: contain; object-position: bottom center; display: block; pointer-events: none; overflow: visible; }
.dock-expert-placeholder { width: 60px; height: 180px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.dock-expert-placeholder span {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pb-blue), var(--pb-blue-mid));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-tight); font-size: 1rem; font-weight: 900; color: var(--pb-white);
}
.dock-name {
  font-size: .68rem; font-weight: 700; color: var(--pb-gray-4);
  white-space: nowrap; text-align: center; transition: color .2s;
  padding: 0 4px; position: relative; z-index: 3; margin-bottom: 12px;
}
.dock-item.is-active .dock-name,
.dock-item.is-hover  .dock-name,
.dock-item.is-clicked .dock-name,
.dock-item:hover .dock-name { color: var(--pb-blue); }
.dock-item.is-active .dock-name::after,
.dock-item.is-clicked .dock-name::after {
  content: ''; display: block; width: 5px; height: 5px;
  border-radius: 50%; background: var(--pb-blue); margin: 4px auto 0;
}

/* ─── PANEL DE EXPERTO ───────────────────────────────────────────── */
.expert-panel {
  position: relative; /* contiene las .expert-side-arrow absolutas */
  background: var(--pb-white); padding: 56px 0 72px;
  border-top: 3px solid var(--pb-blue);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.expert-panel.is-loading { opacity: 0; transform: translateY(10px); pointer-events: none; }
.expert-panel-mode {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .64rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--pb-gray-3); margin-bottom: 20px; transition: color .2s;
}
.expert-panel-mode.is-click { color: var(--pb-blue); }
.expert-panel-mode svg { width: 12px; height: 12px; }
.expert-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 60px;
  align-items: start; position: relative; padding: 0 32px; margin: 0 -32px;
}
.expert-photo-col { position: sticky; top: calc(var(--header-h) + 20px); }
.expert-photo { width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; background: var(--pb-gray-1); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.expert-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.expert-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--pb-blue-light), #c9d4f0);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-tight); font-size: 4rem; font-weight: 900; color: rgba(26,48,144,.25);
}
.expert-socials  { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.social-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--pb-gray-2);
  font-size: .73rem; font-weight: 600; color: var(--pb-gray-4);
  background: var(--pb-white); transition: all .2s;
}
.social-pill:hover { border-color: var(--pb-blue); color: var(--pb-blue); background: var(--pb-blue-light); }
.expert-cargo { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--pb-blue); margin-bottom: 8px; }
.expert-name  { font-family: var(--font-tight); font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.05; letter-spacing: -.5px; margin-bottom: 6px; }
.expert-rule  { width: 36px; height: 3px; background: var(--pb-blue); border-radius: 2px; margin-bottom: 20px; }
/* Bio corta: siempre visible, sin recorte */
.expert-bio   { font-size: .97rem; line-height: 1.78; color: var(--pb-gray-4); max-width: 580px; margin-bottom: 32px; }
.expert-ficha-completa { position: relative; border-top: none; padding-top: 0; margin-top: 16px; }

/* ─── FLECHAS LATERALES ──────────────────────────────────────────
   FIX #10: sin top ni transform en CSS — el JS los asigna inline.
   FIX #1:  display:flex añadido (faltaba en v1.5.1).
   Ocultas por defecto con opacity:0, visibles con .is-visible.   */
.expert-side-arrow {
  position: absolute; /* ancladas a .expert-panel (position:relative) */
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.expert-side-arrow.is-visible   { opacity: 1; pointer-events: all; }
.expert-side-arrow-prev         { left: 16px; }
.expert-side-arrow-next         { right: 16px; }
.expert-side-arrow .expert-arrow-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: #C7E054; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  pointer-events: all;
}
.expert-side-arrow .expert-arrow-btn:hover  { transform: scale(1.12); box-shadow: 0 6px 24px rgba(199,224,84,.5); }
.expert-side-arrow .expert-arrow-btn:active { transform: scale(0.95); }
.expert-side-arrow .expert-arrow-btn svg    { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.5; fill: none; }

/* Flechas de navegación alternativa (wrapper full-width — maqueta v11) */
.expert-nav-arrows {
  position: fixed; left: 0; right: 0; top: 50%;
  transform: translateY(-50%); pointer-events: none;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 200; padding: 0 16px; width: 100%;
}
.expert-arrow-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: #C7E054; border: none; color: var(--pb-white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .25s; font-weight: 700; pointer-events: all; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.expert-arrow-btn:hover  { transform: scale(1.12); box-shadow: 0 6px 20px rgba(199,224,84,.4); }
.expert-arrow-btn:active { transform: scale(0.95); }
.expert-arrow-btn svg    { width: 18px; height: 18px; color: var(--pb-white); stroke-width: 2.5; }
.expert-arrow-prev { margin-left: 0; }
.expert-arrow-next { margin-right: 0; }

/* ─── FICHA EXPANDIBLE ───────────────────────────────────────────── */
.ficha-expandible {
  max-height: 0; overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.22,1,0.36,1), opacity 0.4s ease;
  opacity: 0;
}
.ficha-expandible.is-open { max-height: 4000px; opacity: 1; }
.btn-toggle-ficha {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 10px 20px;
  background: transparent; color: var(--pb-blue);
  border: 1.5px solid var(--pb-blue); border-radius: var(--radius);
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; cursor: pointer; transition: all .2s;
}
.btn-toggle-ficha:hover { background: var(--pb-blue); color: var(--pb-white); }
.btn-toggle-ficha svg { width: 14px; height: 14px; transition: transform .3s ease; }
.btn-toggle-ficha.is-open svg { transform: rotate(180deg); }
.btn-ver-ficha {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: transparent; color: #C7E054;
  border: 1px solid #C7E054; border-radius: 3px;
  font-size: .68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .8px; cursor: pointer; transition: all .2s; margin-top: 12px;
}
.btn-ver-ficha:hover { background: #C7E054; color: #fff; border-color: #C7E054; }
.btn-ver-ficha svg { width: 12px; height: 12px; }

/* ─── PUBLICACIONES ──────────────────────────────────────────────── */
.pubs-heading {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--pb-black);
  border-bottom: 2px solid var(--pb-gray-2); padding-bottom: 12px;
  margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between;
}
.pubs-count  { font-size: .68rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--pb-blue-light); color: var(--pb-blue); }
.pub-card    { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--pb-gray-2); transition: background .15s; cursor: pointer; text-decoration: none; }
.pub-card:hover { background: var(--pb-off-white); margin: 0 -16px; padding: 16px 16px; }
.pub-body    { flex: 1; }
.pub-cat     { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--cat-movilidad); margin-bottom: 3px; }
.pub-title   { font-size: .88rem; font-weight: 600; line-height: 1.35; margin-bottom: 3px; color: var(--pb-black); }
.pub-date    { font-size: .7rem; color: var(--pb-gray-3); }
.pub-arrow   { font-size: 1.2rem; color: var(--pb-gray-3); margin-top: 4px; transition: transform .2s, color .2s; }
.pub-card:hover .pub-arrow { transform: translateX(3px); color: var(--pb-blue); }
.pub-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.pub-filter-btn {
  padding: 4px 12px; border-radius: 999px; font-size: .65rem; font-weight: 700;
  cursor: pointer; border: 1.5px solid #aaa; background: transparent; color: #333; transition: all .18s;
}
.pub-filter-btn.active { background: #aaa; color: #fff; }
.btn-ver-mas {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; padding: 10px 22px;
  border: 1.5px solid #C7E054; border-radius: var(--radius);
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: #C7E054; cursor: pointer; background: transparent; transition: all .2s;
}
.btn-ver-mas:hover { background: #C7E054; border-color: #C7E054; color: #fff; }

/* ─── TIMELINE ───────────────────────────────────────────────────── */
.timeline-section { background: #0e1d6e; padding: 80px 0 100px; }
.timeline-section .section-label         { color: rgba(255,255,255,.5); }
.timeline-section .section-label::before { background: rgba(255,255,255,.3); }
.timeline-section .section-title         { color: var(--pb-white); }
.timeline-section .section-title em      { font-style: italic; color: rgba(255,255,255,.5); }
#timelineWrap {
  position: relative; margin-top: 52px; padding: 0 0 8px;
}
#timelineWrap::before {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 2px; background: rgba(255,255,255,.15); z-index: 0;
}
.tl-row { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 16px; min-height: 160px; }
.tl-dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: #0e1d6e; border: 2px solid rgba(255,255,255,.4);
  z-index: 2; flex-shrink: 0; transition: border-color .25s, background .25s, box-shadow .25s;
}
.tl-row:hover .tl-dot, .tl-row.active .tl-dot {
  background: var(--pb-blue-mid); border-color: var(--pb-white);
  box-shadow: 0 0 0 4px rgba(255,255,255,.1);
}
.tl-half       { width: calc(50% - 36px); display: flex; }
.tl-half-left  { justify-content: flex-end; }
.tl-half-right { justify-content: flex-start; }
.tl-spacer     { width: 72px; flex-shrink: 0; }
.tl-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 20px 22px 18px;
  width: 100%; max-width: 460px;
  transition: background .25s, border-color .25s, transform .25s var(--ease); cursor: pointer;
}
.tl-card:hover, .tl-row.active .tl-card { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.25); transform: translateY(-3px); }
.tl-num  { font-family: var(--font-tight); font-size: 2rem; font-weight: 900; color: rgba(255,255,255,.1); line-height: 1; letter-spacing: -2px; margin-bottom: 8px; transition: color .25s; }
.tl-card:hover .tl-num, .tl-row.active .tl-card .tl-num { color: rgba(255,255,255,.22); }
.tl-date { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.45); margin-bottom: 6px; }
.tl-card h3 { font-size: .9rem; font-weight: 700; line-height: 1.38; color: var(--pb-white); margin-bottom: 8px; }
.tl-card p  { font-size: .76rem; line-height: 1.6; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.tl-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: rgba(255,255,255,.65); text-decoration: none; transition: all .2s;
}
.tl-badge:hover { background: rgba(255,255,255,.1); color: var(--pb-white); border-color: rgba(255,255,255,.4); }
.tl-badge svg   { width: 11px; height: 11px; flex-shrink: 0; }
.tl-sin-pdf     { font-size: .65rem; font-weight: 600; color: rgba(255,255,255,.22); text-transform: uppercase; letter-spacing: .5px; }

/* ─── GALERÍA ────────────────────────────────────────────────────── */
.gallery-section { background: var(--pb-white); padding: 80px 0; border-top: 1px solid var(--pb-gray-2); }
.gallery-section .section-label { color: var(--pb-blue); }
.gallery-section .section-title { color: var(--pb-black); }
.slideshow-wrap { position: relative; margin-top: 36px; border-radius: var(--radius-lg); overflow: hidden; background: var(--pb-gray-1); aspect-ratio: 16/7; }
.slideshow-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(0.77,0,0.175,1); will-change: transform; }
.slide    { flex: 0 0 100%; position: relative; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(14,29,110,.7)); padding: 40px 32px 24px; color: var(--pb-white); }
.slide-caption h3 { font-family: var(--font-tight); font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.slide-caption p  { font-size: .78rem; color: rgba(255,255,255,.7); }
.ss-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: background .2s, transform .2s;
}
.ss-arrow:hover { background: var(--pb-white); transform: translateY(-50%) scale(1.08); }
.ss-arrow svg   { width: 16px; height: 16px; color: var(--pb-blue); }
.ss-prev  { left: 16px; }
.ss-next  { right: 16px; }
.ss-dots  { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.ss-dots:has(.ss-dot:only-child) { display: none; } /* ocultar si solo 1 imagen */
.ss-dot   { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); border: none; cursor: pointer; padding: 0; transition: background .25s, transform .25s; }
.ss-dot.active { background: var(--pb-white); transform: scale(1.3); }
.ss-counter { position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); color: var(--pb-white); font-size: .7rem; font-weight: 700; letter-spacing: .5px; padding: 4px 12px; border-radius: 999px; z-index: 10; }

/* ─── DOCUMENTOS ─────────────────────────────────────────────────── */
.docs-section { background: var(--pb-white); padding: 80px 0; border-top: 1px solid var(--pb-gray-2); }
.docs-intro   { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.docs-intro-text p { font-size: .92rem; color: var(--pb-gray-4); line-height: 1.7; margin-top: 10px; }
.docs-filter  { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn   { padding: 7px 16px; border: 1.5px solid var(--pb-gray-2); border-radius: 999px; font-size: .72rem; font-weight: 600; cursor: pointer; color: var(--pb-gray-4); background: var(--pb-white); transition: all .18s; }
.filter-btn:hover  { border-color: var(--pb-blue); color: var(--pb-blue); }
.filter-btn.active { background: var(--pb-blue); border-color: var(--pb-blue); color: var(--pb-white); }
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.doc-card  {
  display: flex; flex-direction: column; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--pb-gray-2); background: var(--pb-white);
  cursor: pointer; text-decoration: none;
  transition: box-shadow .25s, transform .25s var(--ease);
}
.doc-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.1); transform: translateY(-4px); }
.doc-thumb  { height: 200px; position: relative; overflow: hidden; background: var(--pb-blue-light); display: flex; align-items: center; justify-content: center; }
.doc-cover  {
  width: 110px; height: 155px; background: var(--pb-blue); border-radius: 4px;
  box-shadow: 6px 6px 24px rgba(0,0,0,.22);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 16px; position: relative; overflow: hidden;
}
.doc-cover::before    { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 60%); }
.doc-cover-logo       { font-family: var(--font-tight); font-size: .55rem; font-weight: 900; color: rgba(255,255,255,.85); letter-spacing: .5px; text-align: center; line-height: 1.2; }
.doc-type-badge       { position: absolute; top: 12px; right: 12px; padding: 3px 10px; border-radius: 999px; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.doc-body  { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.doc-cat   { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--cat-movilidad); }
.doc-title { font-size: .95rem; font-weight: 700; line-height: 1.35; color: var(--pb-black); transition: color .2s; }
.doc-card:hover .doc-title { color: var(--pb-blue); }
.doc-excerpt { font-size: .78rem; color: var(--pb-gray-4); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-footer  { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--pb-gray-2); }
.doc-date    { font-size: .7rem; color: var(--pb-gray-3); font-weight: 500; }
.doc-download { display: inline-flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--pb-blue); transition: gap .2s; }
.doc-card:hover .doc-download { gap: 11px; }
.btn-load-more {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 28px;
  border: 1.5px solid var(--pb-blue); border-radius: var(--radius);
  background: transparent; color: var(--pb-blue);
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; transition: all .2s;
}
.btn-load-more:hover { background: var(--pb-blue); color: #fff; }
.docs-remaining { font-size: .72rem; opacity: .65; font-weight: 500; text-transform: none; letter-spacing: 0; }

/* ─── MEDIOS ─────────────────────────────────────────────────────── */
.medios-section { background: var(--pb-off-white); padding: 80px 0; border-top: 1px solid var(--pb-gray-2); }
.medios-grid    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.medio-card {
  display: flex; flex-direction: column; background: var(--pb-white);
  border: 1px solid var(--pb-gray-2); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; text-decoration: none;
  transition: box-shadow .22s, transform .22s var(--ease);
}
.medio-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-3px); }
.medio-thumb {
  height: 140px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--pb-blue-light), #d8dfef);
  display: flex; align-items: center; justify-content: center;
}
.medio-thumb img  { width: 100%; height: 100%; object-fit: cover; display: block; }
.medio-thumb-icon { display: flex; align-items: center; justify-content: center;
                    width: 100%; height: 100%; position: absolute; inset: 0; }
.medio-thumb svg  { width: 36px; height: 36px; color: var(--pb-blue); opacity: .35; }
.medio-badge {
  position: absolute; bottom: 10px; left: 10px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px;
  background: #C7E054; color: #1a2e00;
}
.medio-badge--tv      { background: #e0f0ff; color: #0066cc; }
.medio-badge--digital { background: #e8f8f0; color: #1a7a4a; }
.medio-badge--podcast { background: #f0e8ff; color: #6633cc; }
.medio-body   { padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; }
.medio-source { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--pb-blue); }
.medio-title  { font-size: .85rem; font-weight: 600; line-height: 1.4; color: var(--pb-black); transition: color .2s; }
.medio-card:hover .medio-title { color: var(--pb-blue); }
.medio-date   { font-size: .68rem; color: var(--pb-gray-3); margin-top: 4px; }

/* ─── CTA ────────────────────────────────────────────────────────── */
.cta-section { background: var(--pb-blue); padding: 64px 0; }
.cta-inner   { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
/* FIX #12: selector .cta-text h2 con tamaños de la maqueta */
.cta-text h2 { font-family: var(--font-tight); font-weight: 900; font-size: clamp(1.5rem, 2.5vw, 2.2rem); color: var(--pb-white); letter-spacing: -.5px; line-height: 1.1; margin-bottom: 8px; }
.cta-text p  { font-size: .92rem; color: rgba(255,255,255,.65); max-width: 460px; line-height: 1.65; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-white {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px;
  background: var(--pb-white); color: var(--pb-blue);
  border: 2px solid var(--pb-white); border-radius: var(--radius);
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; transition: all .2s;
}
.btn-white:hover { background: transparent; color: var(--pb-white); }
.btn-ghost-white {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px;
  background: transparent; color: var(--pb-white);
  border: 2px solid rgba(255,255,255,.4); border-radius: var(--radius);
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; transition: border-color .2s;
}
.btn-ghost-white:hover { border-color: var(--pb-white); }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.site-footer   { background: var(--pb-blue-dark); padding: 36px 0; text-align: center; }
.site-footer p { font-size: .73rem; color: rgba(255,255,255,.35); }

/* ─── HAMBURGER ───────────────────────────────────────────────────── */
.hamburger-btn {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; width: 40px; height: 40px;
  background: transparent; border: none; cursor: pointer; padding: 4px;
  z-index: 400; flex-shrink: 0;
}
.hamburger-btn span { display: block; width: 24px; height: 2px; background: #0A1697; border-radius: 2px; transition: all .3s cubic-bezier(0.22,1,0.36,1); }
.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE NAV ──────────────────────────────────────────────────── */
.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(10,22,151,0.55);
  backdrop-filter: blur(4px); z-index: 350; opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-nav-overlay.is-open { opacity: 1; pointer-events: all; }
.mobile-nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 85vw);
  background: #0A1697; z-index: 360; transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.22,1,0.36,1);
  display: flex; flex-direction: column;
}
.mobile-nav-drawer.is-open { transform: translateX(0); }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; border-bottom: 3px solid #C7E054; flex-shrink: 0; }
.mobile-nav-logo   { font-family: var(--font-tight); font-weight: 900; font-size: 1.1rem; color: #fff; letter-spacing: -.5px; }
.mobile-nav-close  { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.12); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.mobile-nav-close:hover { background: rgba(255,255,255,.25); }
.mobile-nav-close svg  { width: 16px; height: 16px; stroke: #fff; stroke-width: 2.5; fill: none; }
.mobile-nav-drawer ul  { list-style: none; padding: 12px 0; margin: 0; display: flex; flex-direction: column; flex: 1; }
.mobile-nav-drawer ul li a { display: block; padding: 16px 24px; font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.75); letter-spacing: .8px; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.08); transition: background .15s, color .15s; }
.mobile-nav-drawer ul li a:hover,
.mobile-nav-drawer ul li a.active { background: rgba(255,255,255,.08); color: #fff; }
.mobile-nav-drawer ul li a.active { border-left: 3px solid #C7E054; padding-left: 21px; }

/* ─── MOBILE NAV EXPERTOS (dentro del panel) ───────────────────── */
.expert-mobile-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.expert-mobile-nav .expert-arrow-btn { width: 40px; height: 40px; border-radius: 50%; background: #C7E054; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.15); flex-shrink: 0; }
.expert-mobile-nav .expert-arrow-btn svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.5; fill: none; }
.expert-mobile-nav-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--pb-gray-3); flex: 1; text-align: center; }

/* ─── RESPONSIVE 768px ────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --stage-h:   300px;
    --expert-h:  240px;
    --mesa-h:     72px;
    --header-h:  100px;
  }
  .mesa-hero { padding: 100px 0 48px; }
  .hero-stats { gap: 24px; }
  .hero-stat strong { font-size: 1.8rem; }
  .hamburger-btn { display: flex; }
  .header-nav { display: none; }
  /* Flechas laterales: ocultas en móvil (se usa expert-mobile-nav) */
  .expert-side-arrow  { display: none !important; }
  .expert-nav-arrows  { display: none !important; }
  /* FIX #14: en móvil el dock-scroll-wrap necesita overflow-x:auto + top:0 */
  .dock-scroll-wrap {
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    top: 0;
  }
  .dock-scroll-wrap:active { cursor: grabbing; }
  .dock-stage  { padding-top: 40px; height: calc(var(--stage-h) + 40px); }
  .dock-track  { justify-content: flex-start !important; width: max-content !important; min-width: 100%; padding: 0 40px; }
  .dock-item   { flex: 0 0 70px !important; width: 70px !important; }
  .expert-layout { grid-template-columns: 1fr; gap: 28px; }
  .expert-photo-col { position: static; width: 100%; }
  .expert-photo { aspect-ratio: 2/3; width: 100%; max-width: 320px; margin: 0 auto; }
  .expert-photo img { object-fit: cover; object-position: center top; }
  .expert-name { font-size: 1.6rem; }
  .expert-bio  { font-size: .9rem; }
  .docs-grid   { grid-template-columns: 1fr; }
  .medios-grid { grid-template-columns: 1fr; }
  .docs-intro  { flex-direction: column; align-items: flex-start; }
  .cta-inner   { flex-direction: column; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .btn-white, .btn-ghost-white { justify-content: center; }
  #timelineWrap::before { left: 20px; transform: none; }
  .tl-row    { flex-direction: column; align-items: flex-start; padding-left: 48px; min-height: auto; margin-bottom: 24px; }
  .tl-dot    { left: 20px; top: 24px; transform: translateX(-50%); }
  .tl-half, .tl-spacer { width: 100%; }
  .tl-half-left  { justify-content: flex-start; }
  .tl-card   { max-width: 100%; }
}

/* ─── RESPONSIVE 480px ────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --stage-h: 260px; --expert-h: 200px; }
  .container  { padding: 0 16px; }
  .dock-item  { flex: 0 0 60px !important; width: 60px !important; }
  .dock-track { padding: 0 28px !important; }
  .header-top { padding: 12px 16px; }
  .header-logo-name { font-size: 1.3rem; }
  .dock-stage { padding-top: 48px !important; height: calc(var(--stage-h) + 48px) !important; }
}

/* ─── v1.5.9: botón cargar más ─────────────────────────────────────── */
.medios-load-more-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
}
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pb-blue);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 12px rgba(26,48,144,.25);
}
.btn-load-more:hover  { background: #0e1d6e; transform: translateY(-1px); }
.btn-load-more:active { transform: translateY(0); }
.btn-load-more svg    { flex-shrink: 0; }
