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

:root {
    color-scheme: light;
    --bg: #f5f5f5;
    --text: #161616;
    --muted: #9aa0ac;
    /*--highlight: #ffed56;*/
    --panel: rgba(255, 255, 255, 0.94);
    --border: rgba(18, 18, 18, 0.12);
    --accent: #11153a;
    --radius: 16px;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    
    /* Fix para 100vh en móviles (HyperOS, iOS Safari, etc.) */
    --vh: 1vh; /* Fallback, se actualiza con JS */
    --app-height: 100vh; /* Fallback */
}

/* Soporte para unidades de viewport dinámicas */
@supports (height: 100dvh) {
    :root {
        --app-height: 100dvh;
    }
}

@supports (height: 100svh) {
    :root {
        --safe-vh: 100svh;
    }
}

body {
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

@font-face {
    font-family: 'guardian_egypbold';
    src: url('https://nuevasnarrativasec.github.io/candidatos-2026/fonts/guardianegyp-bold-webfont.woff2') format('woff2'),
         url('https://nuevasnarrativasec.github.io/candidatos-2026/fonts/guardianegyp-bold-webfont.woff') format('woff');  
}
@font-face {
    font-family: 'guardian_egypmedium';
    src: url('https://nuevasnarrativasec.github.io/candidatos-2026/fonts/guardianegyp-medium-webfont.woff2') format('woff2'),
         url('https://nuevasnarrativasec.github.io/candidatos-2026/fonts/guardianegyp-medium-webfont.woff') format('woff');

}
@font-face {
    font-family: 'guardian_egyp_regularregular';
    src: url('https://nuevasnarrativasec.github.io/candidatos-2026/fonts/guardianegyp-regular-webfont.woff2') format('woff2'),
         url('https://nuevasnarrativasec.github.io/candidatos-2026/fonts/guardianegyp-regular-webfont.woff') format('woff');
}


.experience {
    position: relative;
    min-height: 100vh; /* Fallback */
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: 100dvh;
}

.scroll-container {
    height: 100%;
    position: relative;
}

.fixed-container {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: clamp(20px, 4vw, 60px) clamp(24px, 5vw, 64px);
    overflow: hidden;
}

.story-layers {
    position: relative;
    width: 100%;
    max-width: 1200px;
    z-index: 2;
    pointer-events: none;
    order: 2;
}

.stage {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(70px);
    max-width: clamp(320px, 60vw, 720px);
    width: 100%;
    padding: clamp(32px, 1vw, 64px);
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: 0 32px 70px rgba(17, 21, 58, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.32, 0.94, 0.6, 1);
    pointer-events: auto;
}

.stage.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.stage-inner {
    display: grid;
    gap: clamp(3px, 1vw, 4px);
}

.stage-hero {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    transition: opacity 0.6s ease, transform 0.6s ease;
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    padding: 0;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.stage-hero.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-20px);
}

.dato-personal h6,
.dato-sentencias h6,
.dato-antecedentes h6 {
    font: 1rem / 1.2 "Roboto", sans-serif;
    font-weight: 800;
}

.dato-personal p,
.dato-sentencias p,
.dato-antecedentes p {
    font: 1rem / 1.2 "Roboto", sans-serif;
    font-weight: 400;
}
.dato-estudios{
    top: -55%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 0.5vw, 32px);
    text-align: center;
}

.hero-badge {
    background: url('../img/logo-tu-decides.jpg') no-repeat center center;
    background-size: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    color: transparent;
}

.badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.badge-title {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    line-height: 1.2;
}

.badge-subtitle {
    display: flex;
    flex-direction: column;
    font-size: clamp(10px, 1.2vw, 12px);
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.3;
}

.badge-year {
    display: none;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #ffed56;
    margin-left: auto;
}

.badge-icon {
    font-size: clamp(24px, 3vw, 32px);
    margin-left: 8px;
}

.hero-title {
    font-family: 'guardian_egypbold';
    font-size: clamp(36px, 6vw, 50px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    margin: 0;
}

.hero-question {
    font-family: 'guardian_egypmedium';
    font-size: clamp(18px, 2.5vw, 42px);
    color: #989898;
    margin: 0;
    font-weight: 400;
}

.hero-description {
    font-family: 'guardian_egyp_regularregular';
    font-size: clamp(14px, 1.8vw, 18px);
    color: #000;
    line-height: 1.6;
    max-width: 800px;
    margin: 0;
}
    .hero-description img{
        cursor: pointer;
        margin: 10px auto;
        max-width: 40px;
    }

.stage-context h2 {
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.35;
}

.stage-context p {
    color: rgba(22, 22, 22, 0.72);
    line-height: 1.65;
}

.stage-split {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stage-split p {
    color: rgba(22, 22, 22, 0.72);
    line-height: 1.6;
}

.chart-bars ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.chart-bars li {
    position: relative;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(17, 21, 58, 0.08);
    font-weight: 600;
    color: #0f1d4c;
    overflow: hidden;
    isolation: isolate;
}

.chart-bars li::before {
    content: '';
    position: absolute;
    inset: 0;
    width: var(--value);
    background: var(--color);
    opacity: 0.85;
    z-index: -1;
}

.chart-note {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.chart-donut {
    position: relative;
    display: grid;
    place-items: center;
    gap: 16px;
}

.chart-donut::before {
    content: '';
    width: clamp(180px, 28vw, 260px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        conic-gradient(#f5c211 0 90deg,
                       #3fc4bd 90deg 180deg,
                       #7c5cff 180deg 270deg,
                       #ff6584 270deg 315deg,
                       #91c43c 315deg 360deg);
    filter: drop-shadow(0 20px 40px rgba(17, 21, 58, 0.18));
}

.donut-core {
    position: absolute;
    width: clamp(80px, 12vw, 120px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.donut-legend {
    list-style: none;
    display: grid;
    gap: 8px;
    font-size: 13px;
    color: rgba(22, 22, 22, 0.74);
}

.donut-legend li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.donut-legend span {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.story-bubble {
    max-width: 320px;
    background: var(--panel);
    border: 1px solid rgba(17, 21, 58, 0.06);
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(17, 21, 58, 0.18);
    font-size: 15px;
    line-height: 1.55;
}

.story-bubble h4 {
    font-size: 16px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stage-filter {
    text-align: center;
}

.stage-filter h3 {
    font-size: clamp(26px, 4vw, 36px);
}

.grid-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(1400px, 95vw);
    margin: 0 auto clamp(40px, 6vw, 80px);
    order: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-container {
    display: grid;
    gap: clamp(10px, 2vw, 18px);
    transition: transform 0.6s ease, filter 0.6s ease;
    margin: 0 auto;
    width: fit-content;
    max-width: 100%;
}

.grid-container.with-filter {
    transform: translateY(40px);
}

.candidate-card {
    position: relative;
    aspect-ratio: 1;
    perspective: 1200px;
    cursor: pointer;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

.candidate-card .candidate-tags {
    position: absolute;
    inset: auto 8px 8px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 4;
    justify-content: center;
}

.candidate-card .tag {
    font-size: 10px;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
}

.tag-alert { background: #ff4d6d; }
.tag-info { background: #00a0e3; }
.tag-warning { background: #ff9600; }

.candidate-flip {
    border: 1px solid #000;
    position: absolute;
    inset: 0;
    transition: transform 0.8s cubic-bezier(0.21, 0.72, 0.35, 1);
    transform-style: preserve-3d;
    border-radius: 18px;
    overflow: visible;
    box-shadow: 0 18px 40px rgba(17, 21, 58, 0.16);
}

.candidate-card:hover .candidate-flip {
    transform: rotateY(180deg);
}

/* Hero flip en hover */
.candidate-hero:hover .hero-flip {
    transform: rotateY(180deg);
}

/* Desactivar flip en carousel durante bÃƒÂºsqueda */
.carousel-candidate.no-flip:hover {
    transform: none !important;
}

.candidate-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    display: grid;
    place-items: center;
    overflow: visible; /* Cambiado de hidden a visible */
    border-radius: 18px; /* AÃƒÂ±adido para mantener el borde redondeado */
}
    .candidate-face .party-name{
        display: none;
    }

.candidate-front {
    /*background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.58) 100%);*/
    overflow: hidden; /* Mantener hidden aquÃƒÂ­ para recortar la imagen */
}

.candidate-front img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter 0.4s ease;
}

.candidate-name {
    position: relative;
    font-size: clamp(12px, 1.6vw, 14px);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #fff;
    padding: 12px 16px;
    text-align: center;
    z-index: 3;
}

.candidate-back {
    background: #0f172a;
    transform: rotateY(180deg);
    color: #fff;
    gap: 12px;
    padding: 24px;
    display: flex; /* Asegurar que display estÃƒÂ© definido */
    flex-direction: column; /* Apilar elementos verticalmente */
    align-items: center; /* Centrar horizontalmente */
    justify-content: center; /* Centrar verticalmente */
}

.party-logo,
.party-logo-fallback {
    width: clamp(60px, 8vw, 95px);
    height: clamp(60px, 8vw, 95px);
    object-fit: contain;
    border-radius: 20px;
    padding: 8px;
    display: block;
    position: relative;
    z-index: 1;
    top: 50%;
}

.party-logo-img {
    width: clamp(60px, 8vw, 85px);
    height: clamp(60px, 8vw, 85px);
    object-fit: contain;
    border-radius: 18px;
    display: block; /* Asegurar que se muestre como bloque */
    position: relative; /* AÃƒÂ±adir contexto de posicionamiento */
    z-index: 1; /* Asegurar que estÃƒÂ© visible */
}

.party-name {
    font-size: 14px;
    letter-spacing: 0.08em;
    opacity: 0.8;
    text-align: center;
}

.candidate-card.highlight .candidate-front img {
    filter: grayscale(0);
}

.candidate-card.highlight .candidate-flip {
    /*box-shadow: 0 22px 55px rgba(255, 237, 86, 0.55);*/
}

.highlight{
    background-color: #fffe54;
    border-radius: 20px;
}

.candidate-card.highlight::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 22px;
    border: 4px solid var(--highlight);
    opacity: 1;
}

.candidate-card.muted {
    /*opacity: 0.2;*/
    /*filter: grayscale(1);*/
}

.candidate-card.filtered-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.filter-panel {
    position: absolute;
    bottom: clamp(20px, 4vw, 40px);
    left: 50%;
    transform: translate(-50%, 80px);
    width: min(900px, 92vw);
    background: var(--panel);
    border-radius: 24px;
    padding: clamp(24px, 4vw, 36px);
    box-shadow: 0 32px 70px rgba(17, 21, 58, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.32, 0.94, 0.6, 1);
    z-index: 3;
}

.filter-panel.active {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.filter-heading h3 {
    font-size: clamp(22px, 3vw, 28px);
}

.filter-heading p {
    color: rgba(22, 22, 22, 0.68);
    margin-top: 6px;
}

.filter-controls {
    margin-top: 20px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.filter-controls input,
.filter-controls select,
.filter-controls button {
    font: inherit;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(17, 21, 58, 0.15);
    background: rgba(255, 255, 255, 0.92);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-controls input:focus,
.filter-controls select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(17, 21, 58, 0.1);
}

.filter-controls button {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.filter-controls button:hover {
    background: #0b1030;
}

.filter-feedback {
    margin-top: 18px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: rgba(17, 21, 58, 0.6);
}

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

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 32px 78px rgba(17, 21, 58, 0.32);
    z-index: 2000;
    max-width: 520px;
    width: min(90vw, 520px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 13, 38, 0.68);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(6px);
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.popup-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.popup-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.popup-party-logo {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0ea5e9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.popup-party-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.popup-title {
    flex: 1;
    display: grid;
    gap: 6px;
}

.popup-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
}

.popup-party {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #000;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    opacity: 0.6;
}

.popup-download {
    position: absolute;
    top: 60px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-download:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.popup-download svg {
    width: 14px;
    height: 14px;
}

.popup-content {
    display: grid;
    gap: 0;
}

.info-section {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.info-section:last-of-type {
    border-bottom: none;
}

.info-section-income {
    padding-top: 20px;
    padding-bottom: 20px;
}

.info-label {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
    margin-bottom: 8px;
}

.info-value {
    color: #000;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
}

.income-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
}

.popup-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.popup-footer p {
    font-size: 11px;
    color: #999;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .fixed-container {
        padding: 90px clamp(16px, 5vw, 38px);
    }

    .stage-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .scroll-container {
        box-sizing: border-box;
        height: 800vh;
    }

    .fixed-container {
        padding: 110px 16px 130px;
        align-items: flex-start;
    }

    .stage {
        width: min(94vw, 560px);
    }

    .story-bubble {
        justify-self: center;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .candidate-card .candidate-tags {
        gap: 4px;
    }

    .candidate-name {
        font-size: 11px;
        padding: 10px 12px;
    }

    .filter-heading h3 {
        font-size: 20px;
    }
}





/** added styles **/

    .scroll-container {
        position: relative;
    }
    .fixed-stages {
        background-color: #fff;
        height: 500vh;
        position: relative;
    }

    .stage-wrapper {
        position: sticky;
        top: 0;
        height: 100vh; /* Fallback */
        height: calc(var(--vh, 1vh) * 100);
        height: 100dvh;
        overflow: hidden;
    }

        /* ============================================
   HERO SECTION
============================================ */
.hero-section {
    min-height: 100vh; /* Fallback */
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: 100dvh; /* Navegadores modernos */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    background: #fff;
    position: relative;
    z-index: 10;
}

.candidate-grid-hero {
    display: grid;
    grid-template-columns: repeat(13, 80px);
    gap: 12px;
    margin-bottom: 40px;
}

/* Logo integrado en el grid */
.hero-logo-cell {
    grid-column: span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.hero-logo-integrated {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.candidate-hero {
    cursor: default;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid #333;
    background-size: cover;
    background-position: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    perspective: 1000px;
}

.hero-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.candidate-hero:hover .hero-flip {
    transform: rotateY(180deg);
}

.hero-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

.hero-front {
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
}

.hero-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-back img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

img.hero-logo {
    margin-bottom: 20px;
    width: 200px;   
}

.hero-title {
    font-family: 'guardian_egypbold';
    font-size: clamp(36px, 6vw, 50px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    margin: 0;
    text-align: center;
}

.hero-subtitle {
    font: 2rem/1.1 'guardian_egypmedium';
    color: #999;
    text-align: center;
    margin-bottom: 0;
}

.hero-description {
    max-width: 600px;
    text-align: center;
    font-size: 18px;
    line-height: 1.5;
    color: #666;
    padding: 30px;
    border-radius: 12px;
}

.hero-description img {
    cursor: pointer;
    margin: 20px auto;
    max-width: 40px;
}

        .logo-badge {
            width: 120px;
            margin: 20px 0;
        }

        .hero-title {
            font-size: 3rem;
            font-weight: bold;
            text-align: center;
            margin: 20px 0;
            line-height: 1.2;
        }

        .hero-subtitle {
            font: 2rem/1.1 'guardian_egypmedium';
            color: #999;
            text-align: center;
            margin-bottom: 0;
        }

        .hero-description {
            max-width: 600px;
            text-align: center;
            font-size: 18px;
            line-height: 1.5;
            color: #666;
            padding: 30px;
            border-radius: 12px;
        }
            span.update{
                color: #B4B4B4;
                display: block;
                font: .8rem/1.2 "Roboto";
                font-weight: 600;
            }
            span.aviso{
                display: block;
                font: .8rem/1.2 "Roboto";
                font-weight: 400;
                margin: 5px auto;
            }
            p.bajada{
                background-color: #EDEDED;
                box-sizing: border-box;
                font: 1rem/1.6 "Roboto";
                padding: 50px 380px;
                text-align: center;
            }
                p.bajada strong{
                    font-weight: 800;
                }

        /* Data Section */
        .data-section {
            min-height: 100vh; /* Fallback */
            min-height: calc(var(--vh, 1vh) * 100);
            min-height: 100dvh;
            display: flex;
            align-items: center;
            padding: 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 1s ease, transform 1s ease;
            pointer-events: none;
        }

        .data-section.visible {
            opacity: 1;
            transform: translateY(0);
            pointer-events: all;
        }

        .data-section.hide {
            opacity: 0;
            transform: translateY(-50px);
        }

        .data-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr;
            gap: 60px;
            align-items: center;
        }

        .data-container.full-grid {
            grid-template-columns: 1fr;
            position: relative;
        }

        #dataSection2 .data-container {
            grid-template-columns: 1fr 1fr;
        }
            #dataSection2 .data-content h2{
                font: 1.3rem / 1.2 "Roboto";
                font-weight: 800;
                margin: 0 auto;
            }
            #dataSection2 .data-content p{
                color: #000;
                font: .9rem / 1.5 "Roboto";
                font-weight: 400;
                margin: 0 auto 30px;
            }
                #dataSection2 .data-content p b{
                    font-weight: 700;
                }

        #dataSection3 .data-container {
            grid-template-columns: 1fr;
        }
            #dataSection3 .data-container.data-container.full-grid{
                width: 75%;
            }

        .data-grid {
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 8px;
        }

        .data-grid.large-grid {
            grid-template-columns: repeat(8, 1fr);
            gap: 12px;
        }

        .data-candidate {
            aspect-ratio: 1;
            border-radius: 8px;
            background-size: cover;
            background-position: center;
            opacity: 0.2;
            transition: all 0.6s ease;
        }

        .data-candidate.active {
            opacity: 1;
            border: 1px solid #FFD700;
            background-color: #FFD700;
            filter: none;
        }

        .data-candidate.active::before {
            content: '';
            position: absolute;
            inset: 0;
            /*background: rgba(255, 215, 0, 0.3);*/
            border-radius: inherit;
        }

        .data-candidate.group-yellow {
            background-color: #ffd700;
            border-color: #000;
        }

        .data-candidate.group-pink {
            background-color: #ff1493;
            border-color: #000;
        }

        .data-candidate.group-blue {
            background-color: #3b82f6;
            border-color: #000;
        }

        .data-candidate.group-red {
            background-color: #ef4444;
            border-color: #000;
        }

        .data-candidate.group-orange {
            background-color: #ff7f00;
            border-color: #000;
        }

        .data-candidate.group-green {
            background-color: #22c55e;
            border-color: #000;
        }

        .data-candidate.group-purple {
            background-color: #8b5cf6;
            border-color: #000;
        }

        .data-candidate.group-lime {
            background-color: #84cc16;
            border-color: #000;
        }

        .data-candidate.group-cyan {
            background-color: #06b6d4;
            border-color: #000;
        }

        .data-candidate.group-penal {
            background-color: #ef4444;
            border-color: #000;
        }

        .data-candidate.group-civil {
            background-color: #06b6d4;
            border-color: #000;
        }

        .data-candidate.group-sin-sentencia {
            opacity: 0.2;
            filter: grayscale(100%);
        }

        .info-box {
            background: white;
            border: 1px solid #000;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            max-width: 350px;
            padding: 20px;
            position: absolute;
            right: -5%;
            top: 50%;            
            transform: translate(-50%, -50%);
            z-index: 10;
        }

        .info-box h2 {
            font: 1.1rem / 1.2 "Roboto";
            font-weight: 800;
            margin: 0 auto 10px;
        }

        .info-box p {
            font: .9rem / 1.6 "Roboto";
            color: #333;
            margin-bottom: 30px;
        }

        .stats-row {
            display: flex;
            gap: 40px;
            justify-content: left;
            align-items: flex-end;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: bold;
            line-height: 1;
            margin-bottom: 5px;
        }

        .stat-number.penal {
            color: #ef4444;
        }

        .stat-number.civil {
            color: #06b6d4;
        }

        .stat-number.sin {
            color: #333;
        }

        .stat-label {
            font-size: .9rem;
            font-weight: 600;
            text-transform: capitalize;
        }

        .stat-label.penal {
            color: #ef4444;
        }

        .stat-label.civil {
            color: #06b6d4;
        }

        .stat-label.sin {
            color: #333;
        }

        .info-card {
            position: absolute;
            bottom: 20px;
            right: 20px;
            background: white;
            padding: 30px;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            max-width: 400px;
            z-index: 10;
        }

        .info-card h3 {
            font-size: 18px;
            margin-bottom: 15px;
            line-height: 1.4;
        }

        .info-card h3 .highlight-text {
            font-size: 24px;
            font-weight: bold;
        }

        .info-card p {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
        }

        .data-content h2 {
            font-size: 32px;
            margin-bottom: 20px;
        }

        .data-content p {
            font-size: 16px;
            line-height: 1.8;
            color: #666;
            margin-bottom: 30px;
        }

        .data-visual {
            width: 100%;
            max-width: 500px;
            margin: 0 auto;
        }

        .data-visual img {
            width: 100%;
            height: auto;
        }

        /* Search Section */
        .search-section {
            min-height: 100vh; /* Fallback */
            min-height: calc(var(--vh, 1vh) * 100);
            min-height: 100dvh;
            padding: 0;
            position: relative;
            /*opacity: 0;*/
            /*transform: translateY(50px);*/
            transition: opacity 1s ease, transform 1s ease;
            /*pointer-events: none;*/
            background: white;
            padding-top: 50px;
        }

        .search-section.visible {
            opacity: 1;
            transform: translateY(0);
            pointer-events: all;

            padding-top: 50px;
        }

        .search-container {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }

        .search-intro {
            border-bottom: 1px solid #c7c7c7;
            border-top: 1px solid #c7c7c7;
            margin: 0 auto 60px;
            max-width: 580px;            
            padding: 40px;            
        }

        .search-intro h3{
            font: 1.3rem / 1.2 "Roboto";
            font-weight: 700;
            margin-bottom: 20px;
            color: #000;
        }

        .search-intro p {
            font: .9rem / 1.7 "Roboto";
            color: #333;
            margin-bottom: 20px;
            text-align: left;
        }

        .search-intro p:last-child {
            margin-bottom: 0;
        }

        .search-intro strong {
            font-weight: bold;
            color: #000;
        }

        .box-indicacion{

        }
            .box-indicacion img{
                display: inline-block;
                max-width: 30px;
                vertical-align: bottom;
            }
            .box-indicacion p{
                color: #b4b4b4;
                display: inline-block;
                vertical-align: top;
            }

        .info-section {
            max-width: 900px;
            margin: 60px auto;
            padding: 40px;
            background: white;
            border-top: 1px solid #e0e0e0;
            border-bottom: 1px solid #e0e0e0;
        }

        .info-section h3 {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 15px;
            color: #000;
        }

        .info-section p {
            font-size: 14px;
            line-height: 1.8;
            color: #333;
            margin-bottom: 15px;
        }

        .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: .9rem / 1.3 "Roboto";
                }
                .footer-content ul li p{
                    font: .9rem / 1.6 "Roboto";
                }

        .search-box {
            position: relative;
            max-width: 600px;
            margin: 40px auto;
        }

        .search-input {
            width: 100%;
            padding: 20px 60px 20px 20px;
            font-size: 18px;
            border: 2px solid #ddd;
            border-radius: 50px;
            outline: none;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            border-color: #333;
        }

        .search-icon {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 24px;
            opacity: 0.5;
        }

        .search-hint {
            margin-top: 20px;
            color: #999;
            font-size: 14px;
        }

        .candidates-carousel {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(80px, 80px));
            gap: 12px;
            justify-content: center;
            padding: 20px 0;
            max-width: 1500px;
            margin: 0 auto;
        }

        .carousel-candidate {
            width: 80px;
            height: 80px;
            border-radius: 12px;
            background-size: cover;
            background-position: center;
            cursor: pointer;
            transition: all 0.3s ease;
            transform-style: preserve-3d;
            position: relative;
            border: 2px solid #ddd;
        }

        .carousel-candidate:hover {
            transform: rotateY(180deg);
        }

        .candidate-face,
        .candidate-party {
            position: absolute;
            inset: 0;
            border-radius: 10px;
            backface-visibility: hidden;
            background-size: cover;
            background-position: center;
        }

        .candidate-party {
            transform: rotateY(180deg);
            background-color: #f0f0f0;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: bold;
            text-align: center;
            padding: 0;
        }

        #dataSection1 .data-container{
            /*width: 70%;*/
        }
        /* NUEVO: Wrapper que contiene grid + bloque info como CSS Grid */
        .data-grid-wrapper {
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 8px;
            margin: 0 auto;
            position: relative;   
            width: 66%;
        }
        #dataGrid1{
            display: contents;
            position: relative;
        }
        .box-info-data-grid-1{
            grid-column: span 6;
            border: 1px solid #000;
            border-radius: 10px;
            box-sizing: border-box;
            padding: 20px 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            background: #fff;
            z-index: 2;
            /* Eliminar posicionamiento absoluto */
            position: static;
            height: auto;
            width: auto;
            bottom: auto;
            right: auto;
        }
            .box-info-data-grid-1 span:first-child {
                font: 1.1rem / 1.2 "Roboto", sans-serif;
                font-weight: 800;
                flex-shrink: 0;
                display: inline-block;
                padding: 0;
                width: auto;
                vertical-align: middle;
            }
            span.separador{
                background-color: #000;
                display: block;
                height: 60px;
                width: 1px;
                flex-shrink: 0;
                margin: 0;
                vertical-align: middle;
            }
            .box-info-data-grid-1 p{
                font: 0.95rem / 1.5 "Roboto", sans-serif;
                text-align: left;
                margin: 0;
                padding: 0;
                display: inline-block;
                width: auto;
                vertical-align: middle;
            }
                .box-info-data-grid-1 p b{
                    font-weight: 600;
                }

        /* Modal - Nuevo diseÃƒÂ±o completo */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.7);
            z-index: 1999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            backdrop-filter: blur(5px);
        }

        .modal-overlay.active {
            opacity: 1;
            pointer-events: all;
        }

        .modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            background: white;
            border-radius: 20px;
            padding: 0;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            z-index: 2000;
            max-width: 480px;
            width: 92%;
            max-height: 90vh; /* Fallback */
            max-height: calc(var(--vh, 1vh) * 90);
            max-height: 90dvh;
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s ease;
            overflow: hidden;
        }

        .modal.active {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
            pointer-events: all;
        }

        .modal-scroll-container {
            max-height: 90vh; /* Fallback */
            max-height: calc(var(--vh, 1vh) * 90);
            max-height: 90dvh;
            overflow-y: auto;
            padding: 30px;
            scrollbar-width: thin;
            scrollbar-color: #ccc transparent;
        }

        .modal-scroll-container::-webkit-scrollbar {
            width: 6px;
        }

        .modal-scroll-container::-webkit-scrollbar-track {
            background: transparent;
        }

        .modal-scroll-container::-webkit-scrollbar-thumb {
            background-color: #ccc;
            border-radius: 3px;
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            font-size: 24px;
            cursor: pointer;
            color: #666;
            transition: all 0.2s ease;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .modal-close:hover {
            color: #333;
            border-color: #333;
        }

        /* Header del modal */
        .modal-header-new {
            display: flex;
            gap: 15px;
            position: relative;
            margin-bottom: 20px;
        }

        .modal-party-logo {
            position: absolute;
            top: -10px;
            left: 75px;
            width: 32px;
            height: 32px;
            border-radius: 6px;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            background-color: #f0f0f0;
            border: 2px solid #fff;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
            z-index: 2;
        }

        .modal-photo-new {
            width: 100px;
            height: 120px;
            border-radius: 12px;
            background-size: cover;
            background-position: center top;
            flex-shrink: 0;
            filter: grayscale(100%);
        }

        .modal-header-info {
            flex: 1;
            padding-top: 5px;
        }

        .modal-header-info h2 {
            font: 1.3rem/1.2 'Roboto', sans-serif;
            font-weight: 700;
            margin: 0 0 5px 0;
            color: #000;
        }

        .modal-party-name {
            font: 0.9rem/1.3 'Roboto', sans-serif;
            color: #AFAFAF;
            margin: 0 0 10px 0;
        }

        .modal-basic-info {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .modal-basic-info li {
            font: 0.85rem/1.5 'Roboto', sans-serif;
            color: #333;
            margin-bottom: 2px;
        }

        .modal-basic-info strong {
            font-weight: 600;
        }

        .modal-divider {
            border: none;
            border-top: 1px solid #e0e0e0;
            margin: 0 0 20px 0;
        }

        /* Secciones del modal */
        .modal-section {
            margin-bottom: 25px;
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }

        .section-header h3 {
            font: 0.95rem/1.3 'Roboto', sans-serif;
            font-weight: 600;
            color: #333;
            margin: 0;
        }

        .section-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .section-icon svg {
            width: 18px;
            height: 18px;
        }

        .icon-green {
            color: #28a745;
        }

        .icon-pink {
            color: #dc3545;
        }

        .icon-blue {
            color: #007bff;
        }

        .icon-orange {
            color: #e67e22;
        }

        .section-grid {
            display: grid;
            gap: 15px;
        }

        .section-grid.three-cols {
            grid-template-columns: repeat(3, 1fr);
        }
            .section-grid.three-cols .section-item:nth-child(1),
            .section-grid.three-cols .section-item:nth-child(2){
                border-right: 1px solid #c2c2c2;
            }

        .section-grid.two-cols {
            grid-template-columns: repeat(2, 1fr);
        }
            .section-grid.two-cols .section-item:nth-child(1){
                border-right: 1px solid #c2c2c2;
            }

        .section-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .item-label {
            font: 0.75rem/1.3 'Roboto', sans-serif;
            color: #999;
        }

        .item-value {
            font: 0.85rem/1.4 'Roboto', sans-serif;
            font-weight: 500;
            color: #333;
        }

        .item-value.large {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .highlight-box {
            background: #EBE6E4;
            padding: 12px;
            border-radius: 8px;
        }

        /* Secciones duales */
        .modal-section-dual {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 25px;
        }
            .modal-section-dual .modal-section-half:nth-child(1){
                border-right: 1px solid #c2c2c2;
            }

        .modal-section-half {
            padding: 0;
        }

        .modal-section-half .section-header {
            margin-bottom: 12px;
        }

        .modal-section-half .section-header h3 {
            font-size: 0.85rem;
        }

        .section-items-vertical {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* Resumen */
        .modal-resumen {
            background: #F5D28A;
            border-radius: 12px;
            padding: 18px;
            margin-bottom: 25px;
        }

        .modal-resumen h4 {
            font: 0.9rem/1.3 'Roboto', sans-serif;
            font-weight: 700;
            color: #333;
            margin: 0 0 10px 0;
        }

        .modal-resumen p {
            font: 0.85rem/1.5 'Roboto', sans-serif;
            color: #555;
            margin: 0;
        }

        /* Footer del modal */
        .modal-footer {
            border-top: 1px solid #e0e0e0;
            padding-top: 20px;
        }

        .modal-footer h4 {
            font: 0.95rem/1.3 'Roboto', sans-serif;
            font-weight: 700;
            color: #333;
            margin: 0 0 10px 0;
        }

        .modal-footer p {
            font: 0.8rem/1.5 'Roboto', sans-serif;
            color: #666;
            margin: 0 0 10px 0;
        }

        .btn-download {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #e67e22;
            color: white;
            padding: 10px 16px;
            border-radius: 8px;
            text-decoration: none;
            font: 0.8rem/1 'Roboto', sans-serif;
            font-weight: 500;
            transition: background 0.2s ease;
        }

        .btn-download:hover {
            background: #d35400;
        }

        .btn-download svg {
            width: 16px;
            height: 16px;
        }     

        @media (max-height: 732px){

            .hero-section{
                padding: 15px;
            }
            .candidate-grid-hero{
                gap: 5px;
                margin-bottom: 20px;
            }
            .hero-title{
                margin: 0 auto 5px;
            }
            .hero-description{
                padding: 0;
            }
            .hero-subtitle{
                margin-bottom: 15px;
            }
            .data-section{
                /*padding: 20px;*/
            }
            #dataSection1 .data-container,
            #dataSection3 .data-container.data-container.full-grid{
                /*width: 65%;*/
            }
            #dataSection3 .data-container.data-container.full-grid{
                width: 60%;
            }
            .data-grid-wrapper{
                grid-template-columns: repeat(9, 1fr);
            }
            .box-info-data-grid-1{
                width: 150%;
            }
            .modal.active{
                padding: 15px;
                transform: translate(-50%, -50%) scale(0.8);
            }

        }

        @media (max-width: 1024px) {
            

            .candidate-hero {
                width: 70px;
                height: 70px;
            }

            .hero-title {
                font-size: 40px;
            }

            .hero-subtitle {
                font-size: 28px;
            }

            .data-container {
                grid-template-columns: 1fr;
            }

            .data-grid {
                grid-template-columns: repeat(6, 1fr);
            }

            .data-grid.large-grid {
                grid-template-columns: repeat(6, 1fr);
            }

            .info-card {
                position: relative;
                bottom: auto;
                right: auto;
                margin-top: 30px;
                max-width: 100%;
            }

            .candidates-carousel {
                grid-template-columns: repeat(auto-fit, minmax(70px, 70px));
                gap: 8px;
            }

            .carousel-candidate {
                width: 70px;
                height: 70px;
            }

            .data-grid-wrapper {
                grid-template-columns: repeat(9, 1fr);
                width: 90%;
            }
            
            .box-info-data-grid-1 {
                grid-column: span 4;
            }

            #dataSection2 .data-container {
                padding: 0 30px;
            }

            #dataSection3 .data-container.data-container.full-grid{
                width: 95%;
            }

            #dataSection3 .data-grid.large-grid{
                grid-template-columns: repeat(9, 1fr);
            }            

        }

        @media (max-width: 768px) {
            .candidate-grid-hero {
                grid-template-columns: repeat(9, 60px);
                gap: 6px;
            }

            .box-info-data-grid-1{
                width: 150%;
            }

            .candidate-hero {
                width: 55px;
                height: 55px;
            }

            .hero-title {
                font-size: 32px;
            }

            .hero-subtitle {
                font-size: 24px;
            }

            .data-grid {
                grid-template-columns: repeat(4, 1fr);
            }

            .data-grid.large-grid {
                grid-template-columns: repeat(4, 1fr);
            }

            .info-card h3 {
                font-size: 16px;
            }

            .info-card h3 .highlight-text {
                font-size: 20px;
            }

            .info-card p {
                font-size: 13px;
            }

            .candidates-carousel {
                grid-template-columns: repeat(auto-fit, minmax(60px, 60px));
                gap: 6px;
            }

            .carousel-candidate {
                width: 60px;
                height: 60px;
            }

            .modal {
                padding: 10px;
            }

            .modal-photo {
                width: 80px;
                height: 80px;
            }

            .modal-name h2 {
                font-size: 20px;
            }
        }

        @media (max-width: 640px){

            .hero-section{
                padding: 10px;
            }
                .candidate-grid-hero {
                    grid-template-columns: repeat(6, 51px);
                    gap: 8px;
                    margin-bottom: 5px;
                }
                .hero-section img.hero-logo{
                    margin: 10px auto;
                    max-width: 140px;
                }
                .hero-title{
                    font-size: 1.5rem;
                    margin: 5px auto;
                }
                .hero-description{
                    font-size: 1rem;
                    padding: 0;
                }
                .data-section{
                    padding: 10px;
                }
                    #dataSection1 .data-grid {
                        grid-template-columns: repeat(5, 1fr);
                    }
                    #dataSection1 .data-container {
                        width: 90%;
                    }
                    #dataSection1 .data-grid-wrapper {
                        grid-template-columns: repeat(6, 1fr);
                    }
                    #dataSection1.data-section.visible{
                        /*transform: translateY(-15%);*/
                    }
                    .data-grid-wrapper{
                        width: 100%;
                    }
                    .box-info-data-grid-1 {
                        grid-column: span 5; /* En mÃƒÂ³vil ocupa todo el ancho */
                        flex-direction: column;
                        padding: 15px;
                        gap: 10px;
                        text-align: left;
                        width: 150%;
                    }
                        .box-info-data-grid-1 p{
                            font: 1rem / 1.4 "Roboto", sans-serif;
                            padding: 0;
                            width: 100%;
                        }
                        .box-info-data-grid-1 span:first-child{
                            display: block;
                            width: 100%;
                        }
                        span.separador{
                            height: 1px;
                            width: 100%;
                        }
                    #dataSection2 .data-container{
                        gap: 10px;
                        grid-template-columns: 1fr 1fr;
                    }
                    #dataSection2 .data-grid.large-grid{
                        grid-template-columns: repeat(3, 1fr);
                    }
                    #dataSection2 .main-grados{
                        display: inherit !important;
                    }
                        #dataSection2 .barra-grados{
                            display: inherit !important;
                        }
                            #dataSection2 .data-content span.grado{
                                display: block;
                            }
                            #dataSection2 .box-barra-grado{
                                display: inline-block;
                                width: 85%;
                            }
                    #dataSection3 .data-container {

                    }
                        #dataSection3 .data-grid.large-grid{
                            grid-template-columns: repeat(5, 1fr);
                        }
                        #dataSection3 .data-container.data-container.full-grid {
                            width: 90%;
                        }
                        .info-box{
                            left: 50%;
                            padding: 20px 10px;
                            right: inherit;
                            width: 100%;
                        }
                    .search-input{
                        width: 90%;
                    }
                    .search-icon{
                        right: 40px;
                    }
                    .footer-content ul{
                        display: block
                    }
            #searchSection .box-metodologia{
                max-width: 350px;
            }

            .modal {
                width: 95%;
                max-height: 85vh; /* Fallback */
                max-height: calc(var(--vh, 1vh) * 85);
                max-height: 85dvh;
            }

            .modal-scroll-container {
                padding: 20px;
                max-height: 85vh; /* Fallback */
                max-height: calc(var(--vh, 1vh) * 85);
                max-height: 85dvh;
            }

            .modal-header-new {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }

            .modal-party-logo {
                left: calc(50% + 35px);
            }

            .modal-header-info {
                text-align: center;
            }

            .modal-basic-info li {
                text-align: left;
            }

            .section-grid.three-cols {
                grid-template-columns: 1fr;
            }

            .section-grid.two-cols {
                grid-template-columns: 1fr;
            }

            .modal-section-dual {
                grid-template-columns: 1fr;
                gap: 25px;
            }

            .section-header h3 {
                font-size: 0.9rem;
            }

            .modal-close {
                top: 10px;
                right: 10px;
                width: 32px;
                height: 32px;
                font-size: 20px;
            }

            .info-box-centered {
                transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s; /* aÃ±adido delay 0.6s */
            }
                    

        }


img.hero-logo{
    margin-bottom: 20px;
    width: 200px;   
}

.box-metodologia{
    border: 1px solid #707070;
    box-sizing: border-box;
    margin: 80px auto 0;
    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;
        }



/* ============================================
   DATA SECTIONS - NEW PARALLAX STYLE
============================================ */
.data-sections-wrapper {
    position: relative;
    background: #fff;
}

.fixed-grid-background {
    position: sticky;
    top: 0;
    height: 100vh; /* Fallback */
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh; /* Navegadores modernos */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: #fff;
}

.data-grid-fixed {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
}

.data-candidate-fixed {
    aspect-ratio: 1;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    border: 2px solid #ddd;
    transition: all 0.6s ease;
    filter: grayscale(100%);
    opacity: 0.3;
}

.data-candidate-fixed.active-yellow {
    filter: grayscale(0%);
    opacity: 1;
    background-color: #ffd700;
    border-color: #000;
}

.data-candidate-fixed.active-red {
    filter: grayscale(0%);
    opacity: 1;
    background-color: #ef4444;
    border-color: #000;
}

.data-candidate-fixed.active-blue {
    filter: grayscale(0%);
    opacity: 1;
    background-color: #d54595;
    border-color: #000;
}

.data-candidate-fixed.active-pink {
    filter: grayscale(0%);
    opacity: 1;
    background-color: #ff1493;
    border-color: #000;
}

.active-bachiller {
    filter: grayscale(0%);
    opacity: 1;
    background-color: #ff8c4c;
    border-color: #000;
}
.active-licenciado {
    filter: grayscale(0%);
    opacity: 1;
    background-color: #83e475;
    border-color: #000;
}
.data-candidate-fixed.active-secundaria {
    filter: grayscale(0%);
    opacity: 1;
    background-color: #5e62ef;
    border-color: #000;
}

.data-candidate-fixed.active-orange {
    filter: grayscale(0%);
    opacity: 1;
    background-color: #ff7f00;
    border-color: #000;
}

.data-candidate-fixed.active-green {
    filter: grayscale(0%);
    opacity: 1;
    background-color: #22c55e;
    border-color: #000;
}

.data-candidate-fixed.active-lime {
    filter: grayscale(0%);
    opacity: 1;
    background-color: #84cc16;
    border-color: #000;
}

.data-candidate-fixed.active-purple {
    filter: grayscale(0%);
    opacity: 1;
    background-color: #5e62ef;
    border-color: #000;
}

.data-candidate-fixed.active-black {
    filter: grayscale(0%);
    opacity: 1;
    background-color: #000;
    border-color: #000;
}

.scroll-content {
    position: relative;
    z-index: 2;
    margin-top: -100vh; /* Fallback */
    margin-top: calc(var(--vh, 1vh) * -100);
    margin-top: -100dvh; /* Navegadores modernos */
    pointer-events: none;
}

.data-section-new {
    min-height: 100vh; /* Fallback */
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: 100dvh; /* Navegadores modernos */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    pointer-events: auto;
}

.info-box-centered {
    background: white;
    border-radius: 20px;
    padding: 30px 40px;
    max-width: 550px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: left;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.info-box-centered.visible {
    opacity: 1;
    transform: translateY(0);
}

.info-box-centered.info-box-large {
    max-width: 650px;
}

.info-box-centered h2 {
    font: 1.4rem/1.2 'Roboto', sans-serif;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: #000;
}

.info-box-centered p {
    font: 1rem/1.6 'Roboto', sans-serif;
    color: #333;
    margin: 0;
}

.info-box-centered p b {
    font-weight: 700;
}

/* Barras de educaciÃƒÂ³n */
.barras-educacion {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.barra-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.barra-label {
    min-width: 120px;
    font: 0.9rem/1.2 'Roboto', sans-serif;
    color: #333;
}

.barra-track {
    flex: 1;
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.barra-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.barra-value {
    min-width: 30px;
    text-align: right;
    font: 1rem/1 'Roboto', sans-serif;
    font-weight: 700;
    color: #333;
}

/* Stats row para sentencias */
.stats-row-centered {
    display: flex;
    gap: 40px;
    justify-content: flex-start;
    align-items: flex-end;
    margin-top: 25px;
}

.stat-item-c {
    text-align: center;
}

.stat-number-c {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-number-c.penal { color: #ef4444; }
.stat-number-c.civil { color: #06b6d4; }
.stat-number-c.sin { color: #333; }

.stat-label-c {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: capitalize;
}

.stat-label-c.penal { color: #ef4444; }
.stat-label-c.civil { color: #06b6d4; }
.stat-label-c.sin { color: #333; }



/* ============================================
   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;
}

/* ============================================
   MODAL
============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 2000;
    max-width: 480px;
    width: 92%;
    max-height: 90vh; /* Fallback */
    max-height: calc(var(--vh, 1vh) * 90);
    max-height: 90dvh;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

.modal-scroll-container {
    max-height: 90vh; /* Fallback */
    max-height: calc(var(--vh, 1vh) * 90);
    max-height: 90dvh;
    overflow-y: auto;
    padding: 30px 15px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.modal-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.modal-scroll-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
    border-color: #333;
}

.modal-header-new {
    display: flex;
    gap: 15px;
    position: relative;
    margin-bottom: 20px;
}

.modal-party-logo {
    position: absolute;
    top: -10px;
    left: 75px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 2;
}

.modal-photo-new {
    width: 100px;
    height: 120px;
    border-radius: 12px;
    background-size: cover;
    background-position: center top;
    flex-shrink: 0;
    filter: grayscale(100%);
}

.modal-header-info {
    flex: 1;
    padding-top: 5px;
}

.modal-header-info h2 {
    font: 1.3rem/1.2 'Roboto', sans-serif;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #000;
}

.modal-party-name {
    font: 0.9rem/1.3 'Roboto', sans-serif;
    color: #AFAFAF;
    margin: 0 0 10px 0;
}

.modal-basic-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-basic-info li {
    font: 0.85rem/1.5 'Roboto', sans-serif;
    color: #333;
    margin-bottom: 2px;
}

.modal-basic-info strong {
    font-weight: 600;
}

.modal-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0 0 20px 0;
}

.modal-section {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.section-header h3 {
    font: 0.95rem/1.3 'Roboto', sans-serif;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.section-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon svg {
    width: 18px;
    height: 18px;
}

.icon-green { color: #28a745; }
.icon-pink { color: #dc3545; }
.icon-blue { color: #007bff; }
.icon-orange { color: #e67e22; }

.section-grid {
    display: grid;
    gap: 15px;
}

.section-grid.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.section-grid.three-cols .section-item:nth-child(1),
.section-grid.three-cols .section-item:nth-child(2) {
    border-right: 1px solid #c2c2c2;
}

.section-grid.two-cols {
    grid-template-columns: repeat(2, 1fr);
}

.section-grid.two-cols .section-item:nth-child(1) {
    border-right: 1px solid #c2c2c2;
}

.section-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-label {
    font: 0.75rem/1.3 'Roboto', sans-serif;
    color: #999;
}

.item-value {
    font: 0.85rem/1.4 'Roboto', sans-serif;
    font-weight: 500;
    color: #333;
}

.item-value.large {
    font-size: 1.5rem;
    font-weight: 700;
}

.highlight-box {
    background: #EBE6E4;
    padding: 12px;
    border-radius: 8px;
}

.modal-section-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.modal-section-dual .modal-section-half:nth-child(1) {
    border-right: 1px solid #c2c2c2;
}

.modal-section-half {
    padding: 0;
}

.modal-section-half .section-header {
    margin-bottom: 12px;
}

.modal-section-half .section-header h3 {
    font-size: 0.85rem;
}

.section-items-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-resumen {
    background: #F5D28A;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
}

.modal-resumen h4 {
    font: 0.9rem/1.3 'Roboto', sans-serif;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.modal-resumen p {
    font: 0.85rem/1.5 'Roboto', sans-serif;
    color: #555;
    margin: 0;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.modal-footer h4 {
    font: 0.95rem/1.3 'Roboto', sans-serif;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.modal-footer p {
    font: 0.8rem/1.5 'Roboto', sans-serif;
    color: #666;
    margin: 0 0 10px 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e67e22;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font: 0.8rem/1 'Roboto', sans-serif;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-download:hover {
    background: #d35400;
}

.btn-download svg {
    width: 16px;
    height: 16px;
}
.hero-logo{
    display: none;
}


/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .candidate-grid-hero {
        grid-template-columns: repeat(13, 65px);
        gap: 8px;
    }

    .candidate-hero {
        width: 70px;
        height: 70px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .data-grid-fixed {
        max-width: 700px;
        gap: 10px;
    }

    .candidates-carousel {
        grid-template-columns: repeat(auto-fit, minmax(70px, 70px));
        gap: 8px;
    }

    .carousel-candidate {
        width: 70px;
        height: 70px;
    }
    p.bajada{
        padding: 50px 180px;
    }
}

@media (max-width: 768px) {
    .candidate-grid-hero {
        grid-template-columns: repeat(9, 60px);
        gap: 6px;
    }

    .candidate-hero {
        width: 55px;
        height: 55px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .data-grid-fixed {
        grid-template-columns: repeat(6, 1fr);
        max-width: 500px;
        gap: 8px;
    }

    .info-box-centered {
        margin: 0 20px;
        padding: 25px 30px;
    }

    .barra-label {
        min-width: 90px;
        font-size: 0.8rem;
    }

    .candidates-carousel {
        grid-template-columns: repeat(auto-fit, minmax(60px, 60px));
        gap: 6px;
    }

    .carousel-candidate {
        width: 60px;
        height: 60px;
    }

    .modal {
        padding: 10px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 10px 0;
    }
    p.bajada{
        margin-top: 20px;
        padding: 20px 0;
    }
    .hero-logo{
        display: block;
    }
    .hero-logo-cell{
        display: none;
    }

    .candidate-grid-hero {
        grid-template-columns: repeat(6, 51px);
        gap: 8px;
        margin-bottom: 5px;
    }

    .hero-section img.hero-logo {
        margin: 10px auto;
        max-width: 140px;
    }

    .hero-title {
        font-size: 1.5rem;
        margin: 5px auto;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .data-grid-fixed {
        grid-template-columns: repeat(5, 1fr);
        max-width: 350px;
        gap: 6px;
    }

    .data-section-new {
        padding: 20px;
    }

    .info-box-centered {
        padding: 20px 25px;

        transition: opacity 0.8s ease .6s, transform 0.8s ease 0.6s; /* aÃ±adido delay 0.6s */
    }

    .info-box-centered h2 {
        font-size: 1.2rem;
    }

    .info-box-centered p {
        font-size: 0.9rem;
    }

    .barras-educacion {
        gap: 8px;
    }

    .barra-item {
        flex-wrap: wrap;
    }

    .barra-label {
        min-width: 100%;
        margin-bottom: 4px;
    }

    .barra-track {
        flex: 1;
        min-width: 150px;
    }

    .stats-row-centered {
        gap: 25px;
    }

    .stat-number-c {
        font-size: 2rem;
    }

    .search-input {
        width: 90%;
    }

    .search-icon {
        right: 40px;
    }

    .footer-content ul {
        display: block;
    }

    .box-metodologia {
        max-width: 350px;
    }

    .modal {
        width: 95%;
        max-height: 85vh; /* Fallback */
        max-height: calc(var(--vh, 1vh) * 85);
        max-height: 85dvh;
    }

    .modal-scroll-container {
        padding: 20px 10px;
        max-height: 85vh; /* Fallback */
        max-height: calc(var(--vh, 1vh) * 85);
        max-height: 85dvh;
    }

    .modal-header-new {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-party-logo {
        left: calc(50% + 35px);
    }

    .modal-header-info {
        text-align: center;
    }

    .modal-basic-info li {
        text-align: left;
    }

    .section-grid.three-cols {
        grid-template-columns: 1fr;
    }

    .section-grid.three-cols .section-item:nth-child(1),
    .section-grid.three-cols .section-item:nth-child(2) {
        border-right: none;
        border-bottom: 1px solid #c2c2c2;
        padding-bottom: 10px;
    }

    .section-grid.two-cols {
        grid-template-columns: 1fr;
    }

    .section-grid.two-cols .section-item:nth-child(1) {
        border-right: none;
        border-bottom: 1px solid #c2c2c2;
        padding-bottom: 10px;
    }

    .modal-section-dual {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .modal-section-dual .modal-section-half:nth-child(1) {
        border-right: none;
        border-bottom: 1px solid #c2c2c2;
        padding-bottom: 20px;
    }

    .section-header h3 {
        font-size: 0.9rem;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    body .box-ingresos{
        min-width: inherit;
        width: 90%;
    }
}

@media (max-height: 732px) {
    .hero-section {
        padding: 15px;
    }

    .candidate-grid-hero {
        gap: 5px;
        margin-bottom: 20px;
    }

    .hero-title {
        margin: 0 auto 5px;
    }

    .hero-description {
        padding: 0;
    }

    .hero-subtitle {
        margin-bottom: 15px;
    }
}

/* ============================================
   SECTIONS INFORMATIVOS (sin grid highlight)
============================================ */
.data-section-informativo {
    background-color: #f5f5f5;
    pointer-events: auto;
}

.info-box-informativo {
    background: #f5f5f5;
    border-top: 1px solid #c7c7c7;
    border-bottom: 1px solid #c7c7c7;
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-shadow: none;
    max-width: 580px;
    padding: 40px;
}

.info-box-informativo p {
    font: 1rem/1.7 'Roboto', sans-serif;
    color: #333;
    margin: 0;
    text-align: left;
}

.info-box-informativo p strong {
    font-weight: 700;
    color: #000;
}

/* ============================================
   SECTION PREVIO - CARAS ALEATORIAS
============================================ */
.data-section-previo {
    pointer-events: auto;
}

/* Estado aleatorio del grid */
.data-grid-fixed.randomized .data-candidate-fixed {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.6s ease;
}

/* Estado ordenado (despuÃƒÂ©s de la animaciÃƒÂ³n) */
.data-grid-fixed.ordered .data-candidate-fixed {
    transform: translate(0, 0) !important;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.6s ease;
}

/* AnimaciÃƒÂ³n suave para el grid */
.data-grid-fixed {
    transition: opacity 0.3s ease;
}

/* ============================================
   RESPONSIVE PARA SECTIONS INFORMATIVOS
============================================ */
@media (max-width: 768px) {
    .info-box-informativo {
        max-width: 100%;
        padding: 30px 20px;
        margin: 0 20px;
    }
}

@media (max-width: 640px) {
    .info-box-informativo {
        padding: 25px 15px;
    }
    
    .info-box-informativo p {
        font-size: 0.9rem;
    }
}

.candidates-carousel .carousel-candidate:nth-child(32){
    opacity: 0.5;
    pointer-events: none;
}

ul.generaciones{
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    
}
    ul.generaciones li{
        display: inline-block;
        font: 1rem/1.2 "Roboto", sans-serif;   
        font-weight: 800;            
        margin: 8px;
        max-width: 100px;
        vertical-align: top;        
    }
        ul.generaciones li span{
            font-size: 2rem;
            font-weight: 900;
        }
        ul.generaciones li:nth-child(1){
            color: #e67e22;
        }
        ul.generaciones li:nth-child(2){
            color: #d54595;
        }
        ul.generaciones li:nth-child(3){
            color: #5e62ef;
        }
        ul.generaciones li:nth-child(4){
            color: #da4a38;
        }

.box-ingresos{
    min-width: 800px;
    padding: 20px;
    width: 100%;
}
.box-embed{
    width: 100%;
}
p.fallo{

}
    p.fallo span,
    p.informacion span,
    p.cumplimiento span,
    p.acciones span{
        font-weight: 600;
    }
    .regular{
        font-weight: 400;
    }
#modalAcciones{
    display: block;
    margin-top: 10px;
}
span.leyenda{
    font: .9rem / 1.2 'Roboto', sans-serif;
    font-weight: 300;
}
span.asterisco-bienes{
    display: block;
    margin-top: 10px;
}
