* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-style: normal;
    font-display: swap;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ── TOKENS ─────────────────────────────── */
:root {
  --ink:#1a1a1a; --paper:#fff; --paper-d:#fff;
  --red:#c0392b; --red-l:#e74c3c; --gold:#b8963e;
  --muted:#6b6560; --border:#d4cfc8;
  --r:6px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--paper);color:var(--ink);font-family:'Source Serif 4',serif;line-height:1.6}

/* ── HERO ────────────────────────────────── */
#hero{
    background-color: #FFFDEF;
    border-bottom: 1px solid #000;
    padding: 80px 40px 0;
    text-align:center;
    position:relative;overflow:hidden;
    /*max-width: 1290px;*/
    margin: 0 auto 40px;
}
    #hero img{
        display: block;
        margin: 0 auto;
        max-width: 600px; 
    }
.hero-eyebrow{
  font-family:'DM Sans',sans-serif;font-size:.75rem;letter-spacing:.2em;
  text-transform:uppercase;color:#b8963e;margin-bottom:20px;
}
.hero-title{
    color: #000;
    font-family:"ivypresto-headline",serif;
    font-size:clamp(2.2rem,5vw,3.2rem);
    font-weight:900;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-title span{color:var(--red-l)}
.hero-sub{
    color: #000;
    font: 1rem/1.5 'Roboto', sans-serif; 
    max-width: 800px;
    margin: 0 auto 36px;   
}
.hero-filters{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.hf-btn{
  font-family:'DM Sans',sans-serif;font-size:.85rem;font-weight:600;
  padding:10px 28px;border-radius:40px;cursor:pointer;
  border:1px solid #000;background:transparent;color:#000;
  transition:all .2s;
}
.hf-btn.active,.hf-btn:hover{background:#000;color:#fff}
.hero-search{position:relative;margin:20px auto 0;max-width:420px}
.hero-search-input{
  width:100%;padding:12px 48px 12px 22px;
  border-radius:40px;border:1px solid #ccc;
  font-family:'Roboto',sans-serif;font-size:.9rem;
  background:#fff;outline:none;box-sizing:border-box;
  transition:border-color .2s;
}
.hero-search-input:focus{border-color:#555}
.hero-search-icon{
  position:absolute;right:18px;top:50%;transform:translateY(-50%);
  width:18px;height:18px;color:#aaa;pointer-events:none;
}
.hero-search-clear{
  display:none;position:absolute;right:16px;top:50%;transform:translateY(-50%);
  background:none;border:none;cursor:pointer;
  width:22px;height:22px;border-radius:50%;
  align-items:center;justify-content:center;
  color:#888;font-size:.85rem;padding:0;line-height:1;
  transition:color .15s;
}
.hero-search-clear:hover{color:#333}
.hero-search.has-value .hero-search-clear{display:flex}
.hero-search.has-value .hero-search-icon{display:none}

/* ── SECTION SCAFFOLD ────────────────────── */
section{padding:70px 40px}
.sec-label{
  font-family:'DM Sans',sans-serif;font-size:.7rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--muted);margin-bottom:8px;
}
.sec-title{
    font-family: "ivypresto-headline", serif;
    font-size:clamp(1.6rem,3vw,1.7rem);
    font-weight:600;line-height:1.2;margin-bottom:32px;
    text-align: center;
}
span.indicacion{
  display:block;
  font: .8rem/1.1 'Roboto', sans-serif; 
  color: var(--muted);
  margin-top:-20px;
  margin-bottom:32px;
  text-align: center;
}
.sec-title em{font-style:normal;color:var(--red)}

/* ── BANCADAS ───────────────────────────── */
#bancadas{
    background:var(--paper);
    max-width: 1024px;
    margin: 0 auto;
    padding: 10px 20px 50px !important;
}
.bancadas-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 5px;
    margin-bottom: 32px;
    align-items: self-start;
    text-align: center;
}
.box-bancadas{
  max-width: 900px;
  margin: 0 auto;
}
.bancada-card{
    border: 1.5px solid #e7e7e7;
    border-radius: 15px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: all .2s;
    margin: 0 auto;
    min-height: 145px;
    width: 80%;
}
.bancada-card:hover,.bancada-card.open{
  border-left-color: #000;
  border-right-color: #000;
  border-bottom-color: #000;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.bancadas-grid:has(.bancada-card.open) .bancada-card:not(.open){
  opacity: .35;
}
.bc-sigla{
  font-family:'DM Sans',sans-serif;font-size:1.4rem;font-weight:700;
  margin-bottom:6px;
}
    .bc-sigla img{
        width: 50px;
        height:auto;
        display:block;
        margin:0 auto
    }
.bc-nombre{font-size:.75rem;color:var(--muted);margin-bottom:10px;line-height:1.3}
.bc-total{
      font-family: "ivypresto-headline", serif;font-size:1.8rem;font-weight:600;color:#000;
}
.bc-total-lbl{font-size:.65rem;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}
.bancada-panel{
    display:none;
    border:1.5px solid var(--border);
    border-radius:var(--r);
    background:#fff;
    overflow:hidden;
    max-width: 800px;
    margin: 0 auto;
}
.bancada-panel.open{display:flex}
.panel-list{
  width:260px;flex-shrink:0;border-right:1px solid var(--border);
  overflow-y:auto;max-height:500px;
}
.panel-list-item{
  display:flex;align-items:center;gap:10px;padding:12px 16px;
  cursor:pointer;border-bottom:1px solid #f0ede8;transition:background .15s;
}
.panel-list-item:hover,.panel-list-item.active{background:#fdf9f4}
.panel-list-item--pendiente{opacity:.5;filter:grayscale(1);}
.panel-list-item--pendiente:hover,.panel-list-item--pendiente.active{background:#f0f0f0;}
.ficha-nota-dark{
  background:#111;color:#fff;border-radius:14px;
  padding:16px 20px;font-size:.88rem;line-height:1.5;margin-bottom:12px;
}
.pi-avatar{
  width:36px;height:36px;border-radius:50%;background:var(--paper-d);
  font-family:'DM Sans',sans-serif;font-size:.8rem;font-weight:600;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  color:var(--muted);
}
    .pi-avatar img{
        width: 100%;
        height:100%;
        border-radius:50%;
        display:block;
    }
.pi-name{
    font-family:'Roboto', sans-serif; 
    font-size:.89rem;
    font-weight: 600;
    line-height:1.3
}
.pi-badge{    
    font-size:.6rem;
    padding:2px 6px;
    border-radius:12px;
    margin-left:auto;
    flex-shrink:0;
}
.panel-cv{flex:1;padding:28px;overflow-y:auto;max-height:500px}
.cv-placeholder{
    font: .9rem/1.1 'Roboto', sans-serif; 
    display:flex;
    align-items:center;
    justify-content:center;
    height:100%;
    color:var(--muted);
}
.box-header-cv{
    border: 1px solid #ED6A08;
    border-radius: 10px;
    margin: 0 auto;
    max-width: 390px;
    padding: 10px 20px 30px;
    text-align: center;
}
    .box-datos-header-cv{
        display: inline-block;
        text-align: left;
        vertical-align: top;
        width: 250px;
    }
    .box-datos-header-cv-avatar{
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: var(--paper-d);
        font-family: 'DM Sans', sans-serif;
        font-size: .8rem;
        font-weight: 600;
        color: var(--muted);
        display: inline-block;
        vertical-align: top;
    }
        .box-datos-header-cv-avatar img{
            width: 100%;
            height: 100%;
            border-radius: 50%;
            display: block;
        }

.cv-name{font-family:'Roboto', sans-serif; font-size:1.3rem; font-weight: 900;margin-bottom: 4px}
.cv-meta{font-family:'DM Sans',sans-serif;font-size:.8rem;color:var(--muted);margin-bottom:20px}
.cv-section{margin-bottom:16px}
.cv-section-lbl{
  font-family:'DM Sans',sans-serif;font-size:.65rem;text-transform:uppercase;
  letter-spacing:.12em;color:var(--muted);margin-bottom:4px;
}
.cv-section-edad{
    margin-bottom: 5px;
}
.cv-section-val,
.cv-region{
    color: #989898;
    font: .9rem/1.1 'Roboto', sans-serif; 
    font-weight: 700;
}
.cv-region{
    letter-spacing: 0;
    text-transform: none;
}
.cv-tag{
  display:inline-block;font-family:'DM Sans',sans-serif;font-size:.7rem;
  padding:3px 8px;border-radius:12px;margin-right:4px;margin-bottom:4px;
}
.tag-alerta{background:#fde8e8;color:#c0392b; opacity: 0;}
.tag-ok{background:#e8f8ef;color:#1e8449}
.tag-info{background:#e8f0fd;color:#1a5276}

/* ── HEMICICLOS ─────────────────────────── */
#hemiciclos{background: #F5F5F5;     padding-top: 70px;}
/* ── HEM-IMAGE-BLOCK (reutilizable) ────────── */

#hemiciclos h3{
    font: 1rem / 1.1 'Roboto', sans-serif;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}
#hemiciclos p,
#mapa p,
#px-stories p{
    color: #000;
    font: .9rem/1.5 'Roboto', sans-serif; 
    font-weight: 400;
    text-align: left;
    max-width: 450px;
    margin: 2px auto 0;
}
  span.rojo{
    color: #fd0304;
    font-weight: 800;
  }
  span.amarillo{
    color: #f2cc0a;
    font-weight: 800;
  }
  span.cian{
    color: #759ba5;
    font-weight: 800;
  }
  span.verde{
      color: #a8b659;
      font-weight: 800;
  }
  span.negro{
      color: #000;
      font-weight: 800;
  }

.hem-image-block {
    border-bottom: 1px solid #c2c2c2;
    margin-bottom: 60px;
    padding-bottom: 60px;
}
.hem-tabs{
    display: block;
    margin-bottom: 32px;
    text-align: center;
}
.hem-toggle-label{
    display: block;
    font: .72rem/1 'Roboto', sans-serif;
    color: var(--muted);
    margin-bottom: 10px;
    letter-spacing: .04em;
}
.hem-toggle-row{
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 14px 32px;
    border-top: 1px solid #d8d8d8;
    border-bottom: 1px solid #d8d8d8;
}
.hem-toggle-opt{
    font-family: 'Roboto', sans-serif;
    font-size: .78rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #bbb;
    transition: color .25s, font-weight .25s;
}
.hem-toggle-opt.active{
    color: #000;
    font-weight: 800;
}
.hem-toggle-switch{
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}
.hem-toggle-switch input{ opacity:0; width:0; height:0; position:absolute; }
.hem-toggle-slider{
    position: absolute;
    inset: 0;
    background: #ababab;
    border-radius: 26px;
    transition: background .3s;
}
.hem-toggle-slider::before{
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .3s;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.hem-toggle-switch input:checked + .hem-toggle-slider::before{
    transform: translateX(20px);
}
.hem-tab{ display:none; }
.separador{
    background-color: #aaaaaa;
    height: 1px;
    width: 150px;
}
/* Contenedor de imagen del hemiciclo */
.hem-img-wrap{
    position: relative;
    width: 55%;
    margin: 60px auto 0;
}
.hem-footnote{
  font-size: 0.78rem;
  color: #888;
  text-align: left;
  margin: 0 auto;
  padding: 12px 0 0;
  width: 55%;
}
.hem-img{
  display:block;width:100%;height:auto;
  border-radius: var(--r);
  transition:opacity .25s ease;
}
.hem-img.fading{opacity:0;}

/* ── HOTSPOTS ─────────────────────────────── */
.hem-hotspots{
  position: absolute;
  inset: 0;
  pointer-events: none;
}
    .hotspot-1{
        bottom: 24%;
        left: 3%;
    }
    .hotspot-2{
        left: 37%;
        top: 8%;        
    }
    .hotspot-3{
        left: 63.5%;
        top: 8%;        
    }
    .hotspot-4{
        right: 16.5%;
        top: 24%;        
    }
    .hotspot-5{
        right: 6.5%;
        top: 50%;        
    }
    .hotspot-6{
        bottom: 5%;    
        right: 1.5%;      
    }
    .hotspot-senadores-1{
        bottom: 9%;
        left: 7%;
    }
    .hotspot-senadores-2{
        left: 45%;
        top: 8%;        
    }
    .hotspot-senadores-3{
        right: 26%;
        top: 12.5%;        
    }
    .hotspot-senadores-4{
        right: 9.5%;
        top: 38.5%;       
    }
    .hotspot-senadores-5{
        bottom: 10.5%;   
        right: 2.5%;         
    }
    .hotspot-senadores-6{
        bottom: -5%;
        right: 2.5%;      
    }
    .hotspot-senadores-regiones-1{
        bottom: 9%;
        left: 3%;
    }
.hem-hotspot{
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transform: translate(-50%, -50%);
    pointer-events: all;
    z-index: 10;
}
.hem-hotspot::before{
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(204,0,0,.35);
  animation: hs-pulse 1.8s ease-out infinite;
}
@keyframes hs-pulse{
  0%  { opacity:1; transform:scale(1); }
  70% { opacity:0; transform:scale(1.7); }
  100%{ opacity:0; transform:scale(1.7); }
}
.hem-tooltip{
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  font-family: 'Roboto', sans-serif;
  font-size: .8rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 7px 12px;
  border-radius: 5px;
  width: max-content;
  max-width: 220px;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 20;
  text-align: left;
}
.hem-tooltip::after{
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #fff;
}
.hem-hotspot:hover .hem-tooltip,
.hem-hotspot.is-open .hem-tooltip{
  opacity: 1;
}

/* ── MAPA ────────────────────────────────── */
#mapa{background:#fff}
.mapa-container{
  display:grid;grid-template-columns:300px 1fr;gap:0;
  overflow:hidden;
  min-height:500px;
      max-width: 780px;
    margin: 0 auto;
}
#peru-svg{
    max-width: 400px;
}
@media(max-width:800px){
  .mapa-container{grid-template-columns:1fr}
  .mapa-map-wrap{order:-1}
}
.mapa-sidebar{
  padding:24px;
  background:var(--paper);overflow-y:auto;max-height:640px;
  border: 1.5px solid var(--border);
}
.mapa-sidebar-title{
  font-family:'DM Sans',sans-serif;font-size:.7rem;letter-spacing:.15em;
  text-transform:uppercase;color:var(--muted);margin-bottom:16px;
}
.mapa-empty{
  color:var(--muted);font-style:italic;font-size:.88rem;
  margin-top:40px;text-align:center;
}
.mapa-region-header{
  display:flex;align-items:center;gap:8px;margin-bottom:12px;
}
.mapa-region-count{
    font-family: "ivypresto-headline", serif;
    font-weight: 700;
    font-size: 1rem;
    color: #000;
}
.mapa-cand-item{
  display:flex;align-items:center;gap:10px;
  padding:10px 0;border-bottom:1px solid var(--border);
}
.mapa-cand-photo{
  width:35px;height:38px;border-radius:50%;object-fit:cover;flex-shrink:0;
  background:var(--paper-d);border:1.5px solid var(--border);
}
.mapa-cand-info{
  display:flex;flex-direction:column;gap:4px;min-width:0;
}
.mapa-cand-name{
  font-family: 'Roboto', sans-serif;  
  font-size:.85rem;
  line-height:1.3;
  /*white-space:nowrap;*/
  overflow:hidden;
  /*text-overflow:ellipsis;*/
}
.mapa-cand-meta{display:flex;align-items:center;}
.mapa-cand-logo{
  width:auto;height:35px;object-fit:contain;border-radius:3px;
}
.mapa-map-wrap{
  padding:24px;display:flex;align-items:center;justify-content:center;
  background:var(--paper-d);
}
.rpath{
  fill:#e8e4dc;stroke:#fff;stroke-width:1.2;cursor:pointer;
  transition:fill .15s;
}
.rpath:hover{fill:#d4cfc8}
.rpath.selected{fill: #258CCC}
.mapa-filters{ display:block; margin-bottom:50px; text-align:center; }
.mapa-toggle-label{ display:block; font:.8rem/1 'Roboto',sans-serif; color:var(--muted); margin-bottom:10px; }
.mapa-toggle-row{ display:inline-flex; align-items:center; gap:18px; padding:14px 32px; border-top:1px solid #d8d8d8; border-bottom:1px solid #d8d8d8; }
.mapa-toggle-opt{ font-family:'Roboto',sans-serif; font-size:.78rem; font-weight:400; text-transform:uppercase; color:#bbb; transition:color .25s, font-weight .25s; }
.mapa-toggle-opt.active{ color:#000; font-weight:800; }
.mapa-toggle-switch{ position:relative; display:inline-block; width:46px; height:26px; flex-shrink:0; cursor:pointer; }
.mapa-toggle-switch input{ opacity:0; width:0; height:0; position:absolute; }
.mapa-toggle-slider{ position:absolute; inset:0; background:#ababab; border-radius:26px; transition:background .3s; }
.mapa-toggle-slider::before{ content:''; position:absolute; width:20px; height:20px; left:3px; top:3px; background:#fff; border-radius:50%; transition:transform .3s; box-shadow:0 1px 3px rgba(0,0,0,.3); }
.mapa-toggle-switch input:checked + .mapa-toggle-slider::before{ transform:translateX(20px); }
.mapa-filter-btn{ display:none; }
.region-name-badge{
    font-family: "ivypresto-headline", serif;
    font-weight: 700;
    font-size:1rem;
    color:#000;
    padding: 0;
    border-radius:12px;
    display:inline-block;
}

/* ── DATOS PARALLAX ──────────────────────── */
#datos{
  position:relative;
  min-height:200vh;
  overflow:hidden;
}
.datos-fixed-bg{ display:none; /* replaced by #px-bgs */ }
.datos-fixed-bg.vis{opacity:1}
.datos-fixed-bg svg{
  width:55%;max-width:600px;height:auto;opacity:.07;
}
.datos-content{
  position:relative;z-index:2;
  max-width:880px;margin:0 auto;
  padding:80px 40px;
}
.datos-tabs{display:flex;gap:8px;margin-bottom:60px}
.datos-tab{
  font-family:'DM Sans',sans-serif;font-size:.82rem;font-weight:600;
  padding:8px 22px;border-radius:20px;cursor:pointer;
  border:1.5px solid #444;background:transparent;color:#ccc;
  transition:all .2s;
}
.datos-tab.active{background:#f4f1ec;color:#1a1a1a;border-color:#f4f1ec}
.dato-scene{
  min-height:100vh;
  display:flex;align-items:center;
}
.dato-cards{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;width:100%;
}
.dato-card{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  border-radius:var(--r);padding:28px 24px;
  opacity:0;transform:translateY(70px);
  transition:opacity .75s, transform .75s;
  color:#f4f1ec;
}
.dato-card.in-view{opacity:1;transform:translateY(0)}
.dato-card:nth-child(2){transition-delay:.1s}
.dato-card:nth-child(3){transition-delay:.2s}
.dato-card:nth-child(4){transition-delay:.3s}
.dato-number{
  font-family:'Playfair Display',serif;font-size:3rem;font-weight:900;
  color:var(--red-l);line-height:1;margin-bottom:8px;
}
.dato-label{font-family:'DM Sans',sans-serif;font-size:.78rem;color:#a09a94;margin-bottom:12px;text-transform:uppercase;letter-spacing:.1em}
.dato-desc{font-size:.88rem;color:#c8c4bc;line-height:1.55;font-style:italic}

/* ── PARALLAX STORIES ─────────────────────── */
#px-stories{
  position:relative;
  background:transparent;
}

/* ── Intro: título + filtros ─── */
#px-intro{
  position:relative;
  z-index:10;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:40vh;
  padding:60px 24px 70px;
  text-align:center;
}
.px-intro-title{
      font-family: "ivypresto-headline", serif;
  font-size:clamp(2rem,5vw,3.2rem);
  font-weight:600;
  color:#111;
  margin:0;
  letter-spacing:-.01em;
}
.px-intro-tabs{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
}
.px-intro-tab{
  font-family:'DM Sans',sans-serif;
  font-size:.78rem;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;
  padding:14px 32px;border-radius:100px;cursor:pointer;
  border:2px solid #111;
  background:transparent;color:#111;
  transition:background .25s, color .25s;
}
.px-intro-tab--active,
.px-intro-tab:hover{
  background:#111;color:#fff;
}

/* ── Fixed backgrounds container ─── */
#px-bgs{
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  opacity:0;                     /* hidden until #px-stories enters viewport */
  transition:opacity .5s;
}
#px-bgs.px-vis{ opacity:1; }

.px-bg{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding-bottom:10vh;
  background:#fff;
  opacity:0;                     /* crossfade via JS */
  transition:opacity .7s ease;
  will-change:opacity;
}

/* Imagen de fondo intercambiable por filtro (BGs 2–5) */
.px-bg-img--bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  pointer-events:none;
  z-index:0;
}
.px-bg-img{
    margin: 0 auto;
    max-width: 500px;
}
/* Asegurar que el contenido de cada BG quede encima de la imagen */
.px-bg > *:not(.px-bg-img--bg){
  position:relative;
  z-index:1;
}

/* Hemiciclo SVG ghost */
.px-hem-wrap{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.px-hem-wrap svg{
  width:72%;max-width:720px;height:auto;
  opacity:.11;filter:saturate(.4);
}

/* Center icon */
.px-center-icon{
  position:relative;z-index:2;
  width:72px;height:72px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.04);
  border:1.5px solid rgba(255,255,255,.15);
}
.px-center-icon svg{ width:44px;height:44px; }
.px-icon--rojo  { color:#e55a5a;border-color:#e55a5a55; }
.px-icon--azul  { color:#5a9de5;border-color:#5a9de555; }
.px-icon--morado{ color:#9b72c8;border-color:#9b72c855; }
.px-icon--verde { color:#5ac891;border-color:#5ac89155; }

/* Faces background */
.px-bg--faces{ background:#fff; }
.px-bg--faces img{
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 75%;
    margin: 0 auto;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}
.px-faces-grid{
  position:absolute;inset:0;
  display:flex;flex-wrap:wrap;
  align-content:center;justify-content:center;
  gap:8px;padding:24px;overflow:hidden;
}
.px-face{
  width:52px;height:52px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:'DM Sans',sans-serif;font-size:.68rem;font-weight:700;
  flex-shrink:0;
}
.px-face--gray  { background:#1c1c1c;color:#484848;border:1.5px solid #252525; }
.px-face--orange{ background:#2e1508;color:#e06830;border:1.5px solid #e0683033; }
.px-face--red   { background:#2e0808;color:#e05555;border:1.5px solid #e0555533; }

/* ── Scrollable scenes ─── */
.px-scene{
  position:relative;
  height:150vh;               /* scrollable room per scene */
  z-index:2;
  display:flex;
  align-items:flex-end;       /* card anchored to bottom of scene */
  justify-content:center;
  padding-bottom:12vh;
}

/* ── Card ─── */
.px-card-wrap{
  width:100%;
  display:flex;
  justify-content:center;
  pointer-events:none;
}
.px-card{
  pointer-events:all;
  background:#fff;
  border-radius:20px;
  padding:36px 44px 40px;
  max-width:440px;width:88%;
  box-shadow:0 32px 80px rgba(0,0,0,.55),0 2px 8px rgba(0,0,0,.2);
  /* initial hidden state */
  transform:translateY(70px);
  opacity:0;
  transition:transform .95s cubic-bezier(.22,.68,0,1.15), opacity .8s ease;
  will-change:transform,opacity;
}
/* Primeros 4 */
#pxs-1 .px-card, #pxs-2 .px-card,
#pxs-3 .px-card, #pxs-4 .px-card { background: #fefff5; }
/* Siguientes 3 */
#pxs-5 .px-card, #pxs-6 .px-card,
#pxs-7 .px-card { background: #fef8f4; }
/* Restantes */
#pxs-8 .px-card, #pxs-9 .px-card,
#pxs-10 .px-card { background: #f5f8ff; }

.px-card.px-in{
  transform:translateY(0);
  opacity:1;
}

/* Card dark variant (scene 5) */
.px-card--accent{
  background:#111;
  border:1px solid rgba(255,255,255,.1);
  color:#f0ece4;
}

/* Card internals */
.px-tag{
  font-family:'DM Sans',sans-serif;
  font-size:.68rem;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;
  color:#999;margin-bottom:14px;
}
.px-tag--accent{ color:#b8963e; }
.px-number{
  font-family:'Playfair Display',serif;
  font-size:4.2rem;font-weight:900;
  color:var(--red);line-height:1;margin-bottom:6px;
}
.px-number--accent{ color:#e05555; }
.px-unit{
  font-family: 'Roboto', sans-serif;  
  font-size:1rem;
  font-weight: 800;
  color:#000;
}
.px-card--accent .px-unit{ color:#777; }
.px-desc{
  font-family:'DM Sans',sans-serif;
  font-size:.9rem;color:#555;line-height:1.6;
}
.px-card--accent .px-desc{ color:#999;font-size:.85rem; }
.px-card--accent .px-desc strong{ color:#e05555; }
.px-card--accent .px-desc em{ color:#555;font-size:.8rem; }

/* ── PX PEOPLE GRID (pxs-10 senadores) ───── */
.px-people-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:24px 16px;
  padding:24px 16px 0;
  pointer-events:none;
}
.px-person{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:120px;
  text-align:center;
}
.px-person-avatar{
  width:86px;height:86px;
  border-radius:50%;
  border:3px solid;
  overflow:hidden;
  flex-shrink:0;
}
.px-person-avatar img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
}
.px-person-nombre{
  font-family:'Roboto',sans-serif;
  font-size:.78rem;font-weight:700;
  color:#111;line-height:1.25;
  margin-top:8px;
}
.px-person-partido{
  font-family:'DM Sans',sans-serif;
  font-size:.72rem;font-weight:600;
  margin-top:3px;
}

/* ── FOOTER ──────────────────────────────── */
footer{
  background:#111;color:#666;
  font-family:'DM Sans',sans-serif;font-size:.75rem;
  padding:30px 40px;text-align:center;
}
footer a{color:#b8963e;text-decoration:none}
footer a:hover{text-decoration:underline}

/* ── UTILS ───────────────────────────────── */
.max-w{max-width:1290px;margin:0 auto}
.divider{
  width:48px;height:3px;background:var(--red);
  border-radius:2px;margin-bottom:28px;
}
/* ══════════════════════════════════════════════
   FICHA-CV  — nueva UI (ui-fichacv.jpg)
══════════════════════════════════════════════ */
.ficha-wrap {
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
  position: relative;
}

/* ── Close button ─── */
.ficha-close-row {
  position: absolute;
  top: -15px;
  right: -15px;
  z-index: 2;
}
.ficha-close-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background .15s;
  flex-shrink: 0;
}
.ficha-close-btn:hover { background: #444; }

/* ── Header card ─── */
.ficha-header-card {
  border: 1.5px solid #e5e0d8;
  border-radius: 14px;
  padding: 18px 20px 20px;
  background: #FFFDF8;
}
.ficha-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ficha-header-left { flex: 1; }
.ficha-nombre {
  font-family: 'Roboto', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.15;
  margin-bottom: 10px;
  max-width: 230px;
}
.ficha-meta-row {
  font-size: .82rem;
  font-weight: 600;
  color: #151515;
  margin-bottom: 3px;
  line-height: 1.4;
}
.ficha-meta-lbl {
  color: #6c6c6c;
  font-weight: 900;
}
.ficha-avatar-wrap {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 3px solid currentColor;
  overflow: hidden;
  flex-shrink: 0;
  background: #f2f0eb;
}
.ficha-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Generic card ─── */
.ficha-card {
  background: #FFFDF8;
  border: 1.5px solid #e5e0d8;
  border-radius: 14px;
  padding: 16px 18px 18px;
}
.ficha-card-title {
  font-family: 'Roboto', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 10px;
}
.ficha-divider {
  border: none;
  border-top: 1px solid #e5e0d8;
  margin: 0 0 14px;
}

/* ── Field ─── */
.ficha-field {
  margin-bottom: 12px;
}
.ficha-field:last-child { margin-bottom: 0; }
.ficha-field-label {
  font-size: .9rem;
  color: #6c6c6c;
  font-weight: 900;
  margin-bottom: 3px;
  line-height: 1.3;
}
.ficha-field-value {
  font-size: .85rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
}
.ficha-alerta { /*color: #c0392b;*/ }

/* ── Grid layouts ─── */
.ficha-cols-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px 14px;
}
.ficha-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
@media (max-width: 680px) {
  .ficha-cols-3 { grid-template-columns: 1fr; }
  .ficha-cols-2 { grid-template-columns: 1fr; }
}

/* ── Two-card row ─── */
.ficha-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 620px) {
  .ficha-row-2 { grid-template-columns: 1fr; }
}

/* ── Ingresos ─── */
.ficha-card-ingresos {
  background: #FFFDF8;
  border-color: #e5e0d8;
}
.ficha-card-ingresos .ficha-card-title { color: #1a1a1a; }
.ficha-card-ingresos .ficha-divider { border-top-color: #e5e0d8; }
.ficha-card-ingresos .ficha-field-label { color: #999; }
.ficha-ingresos-amount, .ficha-ingresos-origen {
  background: #FFFDF8;
  border: 1.5px solid #F0B736;
  border-radius: 10px;
  padding: 12px 14px;
}
.ficha-big-amount {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.1;
  margin-top: 4px;
}
.ficha-ingresos-origen .ficha-field-label { color: #999; margin-bottom: 6px; }
.ficha-ingresos-origen .ficha-field-value {
  font-size: .85rem; font-weight: 700; color: #1a1a1a;
}

/* ── Bio ─── */
.ficha-card-bio {
  background: #FFFDF8;
  border-color: #e5e0d8;
  padding: 16px 18px 18px;
}
.ficha-bio-title {
  font-family: 'Roboto', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.ficha-bio-text {
  font-size: .84rem;
  color: #1a1a1a;
  line-height: 1.55;
}

/* ── Source + PDF (combined) ─── */
.ficha-source-pdf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ficha-source-text {
  font-size: .82rem;
  color: #1a1a1a;
  line-height: 1.55;
  flex: 1;
}
.ficha-source-text strong { color: #1a1a1a; }
.ficha-pdf-btn {
      display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0a500;
    color: #1a1a1a;
    font-family: 'Roboto', sans-serif;
    font-size: .78rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
    line-height: 1.3;
    text-align: center;
    flex-shrink: 0;
    max-width: 180px;
    flex-direction: column;
}
.ficha-pdf-btn:hover { background: #d49200; }
.ficha-pdf-disabled {
  opacity: .45;
  cursor: default;
}
.ficha-pdf-disabled:hover { background: #f0a500; }

.box-metodologia{
    border: 1px solid #707070;
    box-sizing: border-box;
    margin: 80px auto;
    max-width: 550px;
    padding: 30px 40px;
}
    .box-metodologia h6{
        font: 1rem/1.5 "Roboto", sans-serif;
        font-weight: 800;
        margin: 0 auto;
        text-transform: uppercase;
    }
        .box-metodologia p{
            font: 1rem/1.6 "Roboto", sans-serif;
            font-weight: 400;
            text-align: left;
            margin-bottom: 10px;
        }

/* ============================================
   FOOTER
============================================ */
.footer-section {
    background: #1a1a1a;
    color: white;
    padding: 30px 40px;
    margin-top: 80px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.logo-comercio {
    display: block;
    margin: 20px auto;
    max-width: 130px;
}

span.separador-logo {
    background-color: #fff;
    display: block;
    height: 1px;
    margin: 0 auto 20px;
    max-width: 600px;
}

.footer-content ul {
    display: inline-block;
    list-style-type: none;
    margin: 20px 30px 0;
    padding: 0;
    text-align: left;
    vertical-align: top;
}

.footer-content ul li {
    margin-bottom: 15px;
}

.footer-content ul li h4 {
    font: 0.9rem/1.3 'Roboto', sans-serif;
    font-weight: 800;
}

.footer-content ul li p {
    font: 0.9rem/1.6 'Roboto', sans-serif;
    font-weight: 300;
}

.scroll-horizontal{
    display: none;
}

@media(max-width: 640px){

    #hero{
        padding: 25px 10px 0;
    }
        .hero-sub{
            line-height: 1.4;
        }
    .bancadas-grid{ 
        grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    }
    #bancadas{
        padding: 70px 10px;
    }
        /* Panel: column layout en móvil */
        .bancada-panel.open{
            flex-direction: column;
        }
        .panel-list{
            width: 100%;
            max-height: none;
            overflow-x: auto;
            overflow-y: hidden;
            display: flex;
            flex-direction: row;
            border-right: none;
            border-bottom: 1px solid var(--border);
            /* scroll suave con inercia */
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        .panel-list::-webkit-scrollbar{ display: none; }
        .panel-list-item{
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 10px 12px;
            border-bottom: none;
            border-right: 1px solid #f0ede8;
            min-width: 80px;
            text-align: center;
            flex-shrink: 0;
            max-width: 130px;
        }
        .pi-name{
            font-size: .9rem;
            padding: 0;
        }
        .pi-badge{ margin-left: 0; }
        .pi-avatar{ margin-left: 0; }
        .pi-avatar img{ margin-bottom: 0; }
        .panel-cv{
            width: 100%;
            max-height: 60vh;
            padding: 10px;
        }
            .ficha-header-card{
                padding: 18px 10px 24px;
            }
            .ficha-header-inner{
                gap: 5px;
            }
            .ficha-avatar-wrap{
                height: 60px;
                width: 60px;
            }
            .ficha-nombre{
                font-size: 1.1rem;
            }
            .ficha-big-amount{
                font-size: 1.5rem;
            }
            .ficha-big-amount{
                font-size: 1.5rem;
            }
    #hemiciclos,
    #mapa{
        padding: 30px 20px;
        overflow-x: hidden;
    }
    .hem-tooltip{
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: auto;
        top: 9vh;
        max-width: calc(100vw - 40px);
        width: max-content;
        z-index: 999;
    }
        .hem-img-wrap{
            width: 95%;
        }

    .footer-content ul{
        display: block;
        margin: 20px auto 0;
        text-align: left;
    }
    #px-stories{
        padding: 70px 15px;
    }

    #funciones{
        padding: 0 25px 50px;
    }
    #funciones .funciones-body{
        margin-top: 0;
    }
    .hem-image-block{
        margin: 60px auto;
        max-width: 320px;
    }
    .hotspot-1{
        bottom: 10%;
        left: 5%;
    }
    .hotspot-4{
        right: 6.5%;
        top: 24%;
    }
    .hotspot-5{
        right: -3.5%;
        top: 50%;
    }
    .hotspot-6{
        bottom: -12%;
        right: -7.5%;
    }
    .hotspot-senadores-1{
        bottom: -7%;
        left: 8%;
    }
    .hotspot-senadores-3{
        right: 17%;
        top: 12.5%;
    }
    .hotspot-senadores-4{
        right: 0.5%;
        top: 38.5%;
    }
    .hotspot-senadores-5{
        bottom: 4.5%;
        height: 30px;
        right: -1.5%;
        width: 30px;
    }
    .hotspot-senadores-6{   
        bottom: -15%;
        height: 30px;
        right: -1.5%;
        width: 30px;
    }
    .hotspot-senadores-regiones-1{
        bottom: -7%;
        left: 4%;
    }

    .hem-toggle-opt--b{
        text-align: left;
    }

    .ficha-pdf-btn{
      max-width: 100%;
    }

    .scroll-horizontal{
        display: block;
    }

    .hero-search{
        max-width: 300px;
    }
    .hem-footnote{
        max-width: 90%;
        width: 90%;
    }


}

/* ── FUNCIONES ──────────────────────────── */
#funciones { 
    background: #fff;    
}
.funciones-body {
    display: flex;
    align-items: flex-start;
    position: relative;
    gap: 0;
    margin-top: 90px;
}
.funciones-body::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #ddd;
  transform: translateX(-50%);
}
.func-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 50px 40px;
  position: relative;
  z-index: 1;
}
.func-sep-text {
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 190px;
  text-align: center;
  background: #fff;
  padding: 8px 12px;
  font: .9rem/1.5 'Roboto', sans-serif;
  color: #555;
}
.func-ilus-wrap {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin-bottom: 24px;
}
.func-hem-img {
  width: 100%;
  height: auto;
  display: block;
}
.func-ilus-img {
  width: 100%;
}
.func-label {
    color: #050000;
    font: 1rem / 1.1 'Roboto', sans-serif;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 4px;
    margin-bottom: 24px;
    max-width: 390px;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
}
.func-label--dip { background: #F7FFE2; color: #000; }
.func-label--sen { background: #E2F4FF; color: #000; }
.func-lista {
  list-style: none;
  padding: 0;
  width: 100%;
  max-width: 350px;
}
.func-lista li {
  font: .9rem/1.6 'Roboto', sans-serif;
  color: #333;
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.func-lista li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #999;
  font-weight: 700;
}
@media (max-width: 680px) {
  .funciones-body { flex-direction: column; }
  .funciones-body::after { display: none; }
  .func-col { padding: 0 20px 30px; width: 100%; }
  .func-sep-text { position: static; transform: none; width: auto; padding: 20px; text-align: center; order: -1; }
}

/* ── PARLAMENTO ANDINO ─────────────────────────────── */
#parlamento-andino { background: #fff; display: none; }
#parlamento-andino .max-w { max-width: 600px; margin: 0 auto; }
.pa-avatars { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.pa-avatar-card { display: flex; flex-direction: column; align-items: center; cursor: pointer; gap: 8px; width: 88px; }
.pa-avatar-ring { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #e0e0e0; transition: border-color .2s, box-shadow .2s; overflow: hidden; background: #eee; flex-shrink: 0; }
.pa-avatar-card.active .pa-avatar-ring { 
    /*border-color: #e67e22; 
    box-shadow: 0 0 0 3px rgba(230,126,34,.18); */
}
.pa-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-partido-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 4px; }
.pa-nombre { font-family: 'Roboto', sans-serif; font-size: .72rem; font-weight: 400; color: #bbb; text-align: center; line-height: 1.3; transition: color .2s, font-weight .2s; }
.pa-avatar-card.active .pa-nombre { color: #000; font-weight: 700; }
.pa-edad { font-family: 'Roboto', sans-serif; font-size: .68rem; color: var(--muted); text-align: center; }
@media (max-width: 600px) {
  .pa-avatars { gap: 12px; }
  .pa-avatar-ring { width: 60px; height: 60px; }
  .pa-avatar-card { width: 40%; }
}
.indicacion img{
    display: inline-block;
    max-width: 12px;
    vertical-align: bottom;
}

#parlamento-andino .sec-title{
    margin-bottom: 50px;
}

.scroll{
  margin-bottom: 15px;
}
  .scroll img{
    display: inline-block;
    max-width: 30px;
  }
  .scroll span{
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: .78rem;
    color: var(--muted);
    margin: 5px 0 0 0;
    vertical-align: top;
  }
.box-info-con-logo{

}
    .box-info-con-logo img{
        display: inline-block;
        max-width: 35px;
        vertical-align: top;
        margin-right: 8px;
    }
    .box-info-con-logo .px-unit{
        display: inline-block;
    }
.texto-sentencia{

}
    .texto-sentencia p{
        font-family: 'Roboto', sans-serif;
        font-size: .8rem;
        color: #333;
        line-height: 1.6;
        margin-bottom: 12px;
    }  
        .texto-sentencia p span{
            font-weight: 800;
        }
/*
#pxs-8 .px-card{
    background: transparent;
    box-shadow: none;
    max-width: 500px;
}*/