html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #bfbfbf;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* -------------------------------------
   SPA Classes
------------------------------------- */
/* ==================== PANTALLA INICIO / BLOQUEO ==================== */
.pantalla-bloqueo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 16px;
}

.bloqueo-tarjeta-central {
    width: 100%;
    max-width: 500px;
    background: #f8fafc;
    border-radius: 24px;
    padding: 18px;
    box-sizing: border-box;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: auto;
}

.bloqueo-header {
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-logo-inicio {
    width: 100%;
    max-width: 440px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* PANEL CONSULTA PADRÓN */
.panel-consulta-padron {
    width: 100%;
    background: #ffffff;
    border-radius: 22px;
    padding: 24px 20px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08);
    border: 1.5px solid #e2e8f0;
    box-sizing: border-box;
}

.titulo-consulta {
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 6px 0;
    letter-spacing: -0.4px;
    white-space: nowrap;
    font-family: inherit;
}

.subtitulo-consulta {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin: 0 0 18px 0;
    font-family: inherit;
}

.caja-input-cedula {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.caja-input-cedula:focus-within {
    border-color: #005bc5;
    box-shadow: 0 0 0 3px rgba(0, 91, 197, 0.15);
}

.icono-cedula {
    display: flex;
    align-items: center;
    padding-right: 12px;
    border-right: 1.5px solid #cbd5e1;
    margin-right: 12px;
    flex-shrink: 0;
}

.caja-input-cedula input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    font-family: inherit;
}

.caja-input-cedula input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.btn-limpiar-cedula {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.15s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.btn-limpiar-cedula:hover {
    background: #e2e8f0;
}

.btn-limpiar-cedula:active {
    transform: scale(0.9);
}

.btn-limpiar-cedula svg line {
    transition: stroke 0.15s ease;
}

.btn-limpiar-cedula:hover svg line {
    stroke: #475569;
}

.btn-consultar-padron {
    width: 100%;
    background: #005bc5;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 91, 197, 0.25);
    transition: background-color 0.15s ease, transform 0.1s ease;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-consultar-padron:active {
    transform: scale(0.98);
    background: #004bb0;
}

.resultado-padron {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
    font-family: inherit;
}

/* BOTÓN INICIAR SIMULACIÓN */
.contenedor-btn-iniciar {
    width: 100%;
}

.btn-iniciar-simulador {
    width: 100%;
    background: #009688;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    min-height: 62px;
    padding: 17px 18px;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(0, 150, 136, 0.26);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
    box-sizing: border-box;
}

/* MODAL RESULTADO PADRÓN */
.modal-padron-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
    animation: fadeInModal 0.25s ease-out;
}

/* Mantiene el resultado completo dentro del área útil de navegadores móviles. */
@media (max-width: 600px) and (max-height: 700px) {
    .modal-padron-overlay {
        padding: max(8px, env(safe-area-inset-top))
            10px
            max(8px, env(safe-area-inset-bottom));
        overflow: hidden;
    }

    .modal-padron-card {
        max-width: 420px;
        max-height: calc(100dvh - 16px);
        border-radius: 22px;
        padding: 14px 14px 12px;
        margin: 0 auto;
    }

    .btn-cerrar-modal {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }

    .titulo-modal-padron {
        font-size: 17px;
        margin-bottom: 9px;
        padding: 0 32px;
        line-height: 1.15;
    }

    .modal-card-interno {
        border-radius: 18px;
        margin-bottom: 10px;
    }

    .img-modal-banner {
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .modal-card-body {
        padding: 10px 14px 11px;
    }

    .modal-nombre-votante {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .modal-ci-votante {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .divisor-linea {
        margin: 7px 0;
    }

    .modal-local-ubicacion {
        font-size: 13px;
        gap: 6px;
        margin-bottom: 6px;
    }

    .modal-local-ubicacion svg {
        width: 18px;
        height: 18px;
    }

    .modal-mesa-orden-grid {
        padding: 1px 0;
    }

    .label-mesa-orden,
    .modal-practica-texto {
        font-size: 13px;
    }

    .val-mesa-orden {
        font-size: 25px;
    }

    .linea-vertical-divisor {
        height: 32px;
    }

    .modal-practica-texto {
        margin-bottom: 2px;
    }

    .modal-practica-opcion {
        font-size: 16px;
    }

    .modal-acciones-list {
        gap: 7px;
    }

    .btn-modal-accion {
        min-height: 42px;
        border-radius: 11px;
        padding: 10px 8px;
        font-size: 14px;
        line-height: 1.1;
    }

    .btn-modal-accion svg {
        width: 18px;
        height: 18px;
    }
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal-padron-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 28px;
    padding: 24px 20px 20px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.btn-cerrar-modal {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    z-index: 10;
}

.btn-cerrar-modal:hover {
    background: #e2e8f0;
}

.btn-cerrar-modal:active {
    transform: scale(0.9);
}

.btn-copiar-modal {
    left: 18px;
    right: auto !important;
}

.btn-copiar-modal.copiado {
    background: #dcfce7;
}

@media (max-width: 600px), (max-height: 850px) {
    .btn-copiar-modal {
        left: 10px;
    }
}

.titulo-modal-padron {
    font-size: 19px;
    font-weight: 900;
    color: #0b1a30;
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    letter-spacing: -0.2px;
    font-family: inherit;
}

.modal-card-interno {
    background: #ffffff;
    border-radius: 24px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 16px;
}

.img-modal-banner {
    width: 100%;
    height: auto;
    max-height: 190px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.modal-card-body {
    padding: 16px 18px 18px;
    text-align: center;
}

.modal-nombre-votante {
    font-size: 17px;
    font-weight: 900;
    color: #003b8e;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    font-family: inherit;
}

.modal-ci-votante {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 12px 0;
    font-family: inherit;
}

.divisor-linea {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 0;
    width: 100%;
}

.modal-local-ubicacion {
    font-size: 15px;
    font-weight: 800;
    color: #0b1a30;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-family: inherit;
}

.modal-mesa-orden-grid {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4px 0;
}

.col-mesa-orden {
    flex: 1;
    text-align: center;
}

.label-mesa-orden {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    font-family: inherit;
}

.val-mesa-orden {
    font-size: 30px;
    font-weight: 900;
    color: #e11d48;
    line-height: 1;
    font-family: inherit;
}

.linea-vertical-divisor {
    width: 1px;
    height: 40px;
    background: #cbd5e1;
}

.modal-practica-texto {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    font-family: inherit;
}

.modal-practica-opcion {
    font-size: 19px;
    font-weight: 900;
    color: #0b1a30;
    font-family: inherit;
}

.destaque-rojo {
    color: #e11d48;
}

.modal-acciones-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.btn-modal-accion {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.15s ease;
    box-sizing: border-box;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: inherit;
}

.btn-modal-accion:active {
    transform: scale(0.98);
}

.btn-como-llegar {
    background: #005bc5;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 91, 197, 0.25);
}

.btn-compartir {
    background: #313888;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(49, 56, 136, 0.25);
}

.btn-iniciar-modal {
    background: #009688;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 150, 136, 0.3);
}

.selector-formato-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(5px);
}

.selector-formato-card {
    width: 100%;
    max-width: 360px;
    padding: 24px 20px 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.selector-formato-card h3 {
    margin: 0 0 8px;
    color: #0b1a30;
    font-size: 20px;
}

.selector-formato-card p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.4;
}

.btn-formato {
    width: 100%;
    margin-bottom: 10px;
    padding: 14px 12px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.btn-formato-imagen {
    background: #313888;
}

.btn-formato-pdf {
    background: #dc2626;
}

.btn-formato-cancelar {
    padding: 8px 16px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* Sobrescritura final: debe aparecer después de los estilos generales del modal. */
@media (max-width: 600px) and (max-height: 700px) {
    .modal-padron-overlay {
        padding: max(8px, env(safe-area-inset-top))
            10px
            max(8px, env(safe-area-inset-bottom));
        overflow: hidden;
    }

    .modal-padron-card {
        max-height: calc(100dvh - 16px);
        border-radius: 22px;
        padding: 14px 14px 12px;
        margin: 0 auto;
    }

    .btn-cerrar-modal {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }

    .titulo-modal-padron {
        font-size: 17px;
        line-height: 1.15;
        margin-bottom: 9px;
        padding: 0 32px;
    }

    .modal-card-interno {
        border-radius: 18px;
        margin-bottom: 10px;
    }

    .img-modal-banner {
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .modal-card-body {
        padding: 10px 14px 11px;
    }

    .modal-nombre-votante {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .modal-ci-votante {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .divisor-linea {
        margin: 7px 0;
    }

    .modal-local-ubicacion {
        font-size: 13px;
        gap: 6px;
        margin-bottom: 6px;
    }

    .modal-local-ubicacion svg,
    .btn-modal-accion svg {
        width: 18px;
        height: 18px;
    }

    .modal-mesa-orden-grid {
        padding: 1px 0;
    }

    .label-mesa-orden,
    .modal-practica-texto {
        font-size: 13px;
    }

    .val-mesa-orden {
        font-size: 25px;
    }

    .linea-vertical-divisor {
        height: 32px;
    }

    .modal-practica-texto {
        margin-bottom: 2px;
    }

    .modal-practica-opcion {
        font-size: 16px;
    }

    .modal-acciones-list {
        gap: 7px;
    }

    .btn-modal-accion {
        min-height: 42px;
        border-radius: 11px;
        padding: 10px 8px;
        font-size: 14px;
        line-height: 1.1;
    }
}

/* En móviles verticales hay altura suficiente para conservar el diseño espacioso. */
@media (max-width: 600px) and (min-height: 701px) {
    .modal-padron-overlay {
        padding: max(12px, env(safe-area-inset-top))
            12px
            max(12px, env(safe-area-inset-bottom));
    }

    .modal-padron-card {
        width: 100%;
        max-width: 560px;
        max-height: calc(100dvh - 24px);
        border-radius: 28px;
        padding: 22px 18px 18px;
    }

    .btn-cerrar-modal {
        top: 14px;
        right: 14px;
        width: 34px;
        height: 34px;
    }

    .titulo-modal-padron {
        font-size: 20px;
        line-height: 1.2;
        margin-bottom: 16px;
        padding: 0 34px;
    }

    .modal-card-interno {
        border-radius: 22px;
        margin-bottom: 16px;
    }

    .img-modal-banner {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .modal-card-body {
        padding: 16px 18px 18px;
    }

    .modal-nombre-votante {
        font-size: 17px;
        margin-bottom: 4px;
    }

    .modal-ci-votante {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .divisor-linea {
        margin: 12px 0;
    }

    .modal-local-ubicacion {
        font-size: 15px;
        gap: 8px;
        margin-bottom: 12px;
    }

    .modal-local-ubicacion svg {
        width: 22px;
        height: 22px;
    }

    .modal-mesa-orden-grid {
        padding: 4px 0;
    }

    .label-mesa-orden,
    .modal-practica-texto {
        font-size: 15px;
    }

    .val-mesa-orden {
        font-size: 30px;
    }

    .linea-vertical-divisor {
        height: 40px;
    }

    .modal-practica-texto {
        margin-bottom: 4px;
    }

    .modal-practica-opcion {
        font-size: 19px;
    }

    .modal-acciones-list {
        gap: 10px;
    }

    .btn-modal-accion {
        min-height: 52px;
        border-radius: 12px;
        padding: 14px 10px;
        font-size: 16px;
        line-height: 1.15;
    }

    .btn-modal-accion svg {
        width: 20px;
        height: 20px;
    }
}

/* FLIP CLOCK STYLES */
.countdown-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-titulo {
    font-size: 55px;
    /* Reducido */
    font-weight: 900;
    margin-bottom: 15px;
    color: #000;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
}

.countdown-relojes {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.reloj-bloque {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reloj-doble {
    display: flex;
    gap: 4px;
}

.reloj-numero {
    background: linear-gradient(to bottom, #d32f2f 0%, #e53935 50%, #b71c1c 50%, #d32f2f 100%);
    color: white;
    font-size: 55px;
    font-weight: bold;
    padding: 8px 10px;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    min-width: 45px;
    text-align: center;
    line-height: 1.1;
}

.reloj-numero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.reloj-etiqueta {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.flip-anim {
    animation: flap-flip 0.4s cubic-bezier(0.455, 0.030, 0.515, 0.955);
}

@keyframes flap-flip {
    0% {
        transform: perspective(400px) rotateX(0deg);
    }

    50% {
        transform: perspective(400px) rotateX(-90deg);
        filter: brightness(0.7);
    }

    50.01% {
        transform: perspective(400px) rotateX(90deg);
        filter: brightness(0.7);
    }

    100% {
        transform: perspective(400px) rotateX(0deg);
    }
}

/* RESPONSIVE PANTALLA INICIO Y BLOQUEO */
@media (max-width: 768px) {
    .pantalla-bloqueo {
        align-items: flex-start;
        background: #ffffff;
        padding: 0 10px 40px !important;
        box-sizing: border-box !important;
        height: 100% !important;
    }

    .bloqueo-tarjeta-central {
        max-width: 560px;
        margin: 0 auto;
        padding: 0 14px 24px;
        border-radius: 0;
        box-shadow: none;
        gap: 14px;
    }

    .bloqueo-header {
        width: calc(100% + 28px);
        margin: 0 -14px;
    }

    .img-logo-inicio {
        max-width: 100%;
    }

    .panel-consulta-padron {
        padding: 22px 18px;
    }

    .titulo-consulta {
        font-size: clamp(15px, 4.2vw, 18px);
    }

    .bloqueo-contenido {
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 100% !important;
        width: 100% !important;
    }

    .bloqueo-fondo-animado {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 95vw !important;
        height: 45vh !important;
        background-image: url('img/logo-inicio-christian.jfif') !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        z-index: 1 !important;
    }

    .countdown-titulo {
        font-size: 35px !important;
        margin-bottom: 10px !important;
    }

    .countdown-relojes {
        gap: 6px !important;
    }

    .reloj-numero {
        font-size: 30px !important;
        padding: 4px 6px !important;
        min-width: 25px !important;
    }

    .reloj-etiqueta {
        font-size: 11px !important;
        margin-top: 5px !important;
    }

    .btn-iniciar-simulador {
        min-height: 60px;
        font-size: clamp(15px, 4.2vw, 18px) !important;
        padding: 16px 12px !important;
        border-radius: 14px !important;
        margin-bottom: 0 !important;
        white-space: nowrap;
    }

    .bloqueo-columna {
        padding: 0 !important;
        flex: none !important;
        height: auto !important;
        width: 100% !important;
        z-index: 3 !important;
    }

    .bloqueo-centro {
        flex: 1 !important;
        /* Rellena el espacio del centro */
    }
}

.vista-app {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.vista-activa {
    display: flex !important;
}

body {
    font-family: Arial;
    background: #f0f0f0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
}

.grid_concejal_lista {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
}

.card {
    background: #fffefe;
    border: 2px solid #d5d5d5;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px;
    /* importante */

}




.card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.lista {
    font-size: 22px;
    margin: 10px 0;
}



.blanco {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

/* 🔥 TU DIFERENCIAL */
.highlight {
    border: 4px solid green;
    box-shadow: 0 0 20px green;
    background: #eaffea;
}

.flecha {
    font-size: 30px;
    display: block;
    animation: mover 1s infinite alternate;
}

@keyframes mover {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(10px);
    }
}

.sugerido-animado {
    animation: pulso 1.5s infinite ease-in-out;
    border-color: red !important;
    position: relative;
    z-index: 100;
}

@keyframes pulso {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.8), inset 0 0 0 3px red;
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(255, 0, 0, 1), inset 0 0 0 4px red;
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.8), inset 0 0 0 3px red;
    }
}

body {
    margin: 0;
    background: #dcdcdc;
    font-family: Arial, sans-serif;
}

.grid_intendente {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 20px;
    background: #dcdcdc;
    flex: 1;
    min-height: 0;
}

.grid_lista_concejales {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px;
    background: #dcdcdc;
    flex: 1;
    min-height: 0;
}

.grid_opcion_concejales {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px;
    background: #dcdcdc;
}

.sin_imagen-datos_lista {
    background: #fffdfd;
    border: 1px solid #cfcfcf;
    min-height: 255px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    text-align: center;
    padding: 0;
    transition: opacity 0.3s ease;
}

.sin_imagen-lista {
    padding-top: 6px;
}

.sin_imagen-palabra_lista {
    display: inline;
    margin: 0;
    font-size: 0;
    font-weight: 600;
    text-transform: uppercase;
    color: inherit;
}

.sin_imagen-numero_lista {
    display: inline;
    margin: 0;
    font-size: 44px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    color: inherit;
}

.sin_imagen-palabra_lista::after {
    content: "LISTA ";
    font-size: 44px;
    font-weight: 600;
    color: inherit;
}

.sin_imagen-nombre_lista {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    box-sizing: border-box;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    color: inherit;
    text-align: center;
}

.sin_imagen-nombre_corto_lista {
    padding-bottom: 6px;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    color: inherit;
}

.voto-blanco .sin_imagen-lista,
.voto-blanco .sin_imagen-nombre_corto_lista {
    display: none;
}

.voto-blanco .sin_imagen-nombre_lista {
    font-size: 24px;
    font-weight: 800;
}

/* Colores institucionales de las listas a Concejal */
.sin_imagen-datos_lista[data-id="1"] {
    background-color: #ff0000;
    color: #ffffff;
    border: 1px solid #d00000;
}
.sin_imagen-datos_lista[data-id="2"] {
    background-color: #002bc7;
    color: #ffffff;
    border: 1px solid #0020a0;
}
.sin_imagen-datos_lista[data-id="3"] {
    background-color: #ffc000;
    color: #000000;
    border: 1px solid #d0a000;
}
.sin_imagen-datos_lista[data-id="5"] {
    background-color: #ffea15;
    color: #000000;
    border: 1px solid #d0c000;
}
.sin_imagen-datos_lista[data-id="300"] {
    background-color: #b9cdbe;
    color: #000000;
    border: 1px solid #9eb2a3;
}
.sin_imagen-datos_lista[data-id="400"] {
    background-color: #ebbe89;
    color: #000000;
    border: 1px solid #d3a46f;
}
.sin_imagen-datos_lista[data-id="blanco"] {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #cfcfcf;
}

.contenedor-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 10px;
}

.foto-candidato {
    width: 135px !important;
    height: 135px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    display: block;
}

.datos-lista {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.texto-lista {
    font-size: 22px;
    font-weight: bold;
}

.numero-lista {
    font-size: 48px;
    font-weight: bold;
}

.sigla-lista {
    font-size: 22px;
}

.nombre-movimiento {
    font-size: 26px;
    font-weight: bold;
    margin-top: 10px;
}

.nombre-candidato {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Colores institucionales de las listas a Intendente */
.grid_intendente .card[data-id="1"] {
    background-color: #ff0000;
    color: #ffffff;
    border: 1px solid #d00000;
}
.grid_intendente .card[data-id="2"] {
    background-color: #002bc7;
    color: #ffffff;
    border: 1px solid #0020a0;
}
.grid_intendente .card[data-id="3"] {
    background-color: #ffc000;
    color: #000000;
    border: 1px solid #d0a000;
}
.grid_intendente .card[data-id="5"] {
    background-color: #ffea15;
    color: #000000;
    border: 1px solid #d0c000;
}
.grid_intendente .card[data-id="blanco"] {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #cfcfcf;
}
.grid_intendente .foto-candidato {
    background-color: #ffffff;
    padding: 2px;
}


.cabecera-opciones {
    background: #efefef;
    border: 1px solid #cfcfcf;
    margin: 2px 8px;
    padding: 4px 10px 6px;
    text-align: center;
}

/* Colores institucionales de la cabecera de opciones por lista */
.cabecera-opciones[data-lista="1"] {
    background-color: #ff0000;
    color: #ffffff;
    border: 1px solid #d00000;
}
.cabecera-opciones[data-lista="2"] {
    background-color: #002bc7;
    color: #ffffff;
    border: 1px solid #0020a0;
}
.cabecera-opciones[data-lista="3"] {
    background-color: #ffc000;
    color: #000000;
    border: 1px solid #d0a000;
}
.cabecera-opciones[data-lista="5"] {
    background-color: #ffea15;
    color: #000000;
    border: 1px solid #d0c000;
}
.cabecera-opciones[data-lista="300"] {
    background-color: #b9cdbe;
    color: #000000;
    border: 1px solid #9eb2a3;
}
.cabecera-opciones[data-lista="400"] {
    background-color: #ebbe89;
    color: #000000;
    border: 1px solid #d3a46f;
}

.titulo-lista {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
}

.subtitulo-lista {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 2px;
}

.grid-opciones {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px 12px 14px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.opcion-card {
    background: #ffffff;
    border: 1px solid #cfcfcf;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 4px 8px;
    cursor: pointer;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Efecto: Mantener el mismo color blanco en todas las tarjetas */
.grid-opciones:has(.sugerido-animado) .opcion-card:not(.sugerido-animado),
.grid_intendente:has(.sugerido-animado) .card:not(.sugerido-animado),
.grid_lista_concejales:has(.sugerido-animado) .sin_imagen-datos_lista:not(.sugerido-animado) {
    opacity: 1;
}

.opcion-contenido {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.foto-opcion {
    width: 117px;
    height: 117px;
    object-fit: contain;
    display: block;
}

.opcion-numero {
    flex: 1;
    text-align: center;
    font-weight: 600;
    line-height: 1;
    margin-top: 5px;
    font-size: 44px;
}

.opcion-numero div:first-child {
    font-size: 28px;
    margin-bottom: 2px;
}

.nombre-opcion {
    text-align: center;
    font-size: 18px;
    margin-top: 8px;
    margin-bottom: 10px;
}



.barra-superior {
    height: 56px;
    flex-shrink: 0;

    background: #5b5f60;
    color: white;
    display: grid;
    grid-template-columns: 140px 1fr 100px;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
}

.logo-izq img,
.logo-der img {
    max-height: 42px;
    object-fit: contain;
}

.titulo-superior {
    text-align: center;
}

.datos-superiores {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2px;
}

.texto-opciones-seleccionadas {
    font-size: 18px;
    font-weight: 800;
    border-bottom: 2px solid #ddd;
    display: inline-block;
    padding: 0 6px 2px;
}

.resumen-layout {
    flex: 1;
    min-width: 0;
    min-height: 0;
    width: 100%;
    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 8px;
    padding: 8px;
    background: #d9d9d9;
}

.resumen-panel {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: hidden;
}

.resumen-columna {
    min-width: 0;
    min-height: 0;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #c8c8c8;
    text-align: center;
    padding: 10px;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

/* Colores institucionales de los paneles de Resumen por lista */
.resumen-columna[data-lista="1"] {
    background-color: #ff0000;
    color: #ffffff;
    border: 1px solid #d00000;
}
.resumen-columna[data-lista="2"] {
    background-color: #002bc7;
    color: #ffffff;
    border: 1px solid #0020a0;
}
.resumen-columna[data-lista="3"] {
    background-color: #ffc000;
    color: #000000;
    border: 1px solid #d0a000;
}
.resumen-columna[data-lista="5"] {
    background-color: #ffea15;
    color: #000000;
    border: 1px solid #d0c000;
}
.resumen-columna[data-lista="300"] {
    background-color: #b9cdbe;
    color: #000000;
    border: 1px solid #9eb2a3;
}
.resumen-columna[data-lista="400"] {
    background-color: #ebbe89;
    color: #000000;
    border: 1px solid #d3a46f;
}
.resumen-columna[data-lista="blanco"] {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #cfcfcf;
}

.resumen-titulo {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 2px;
}

.resumen-linea {
    height: 1px;
    background: currentColor;
    opacity: 0.6;
    margin-bottom: 5px;
}

.resumen-partido {
    font-size: 32px;
    font-weight: 600;
}

.resumen-lista {
    font-size: 32px;
    font-weight: 600;
}

.resumen-foto {
    width: auto;
    height: 180px;
    max-width: 200px;
    object-fit: contain;
    display: block;
    margin: 5px auto;
    background-color: #ffffff;
    padding: 2px;
}

.resumen-nombre {
    font-size: 34px;
    font-weight: 600;
}

.resumen-opcion {
    font-size: 30px;
    font-weight: 600;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-modificar {
    align-self: center;
    margin-top: 8px;
    background: #696e70;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 800;
    padding: 14px 40px;
    cursor: pointer;
    flex-shrink: 0;
}

.resumen-botones {
    display: grid;

    grid-template-rows: 0.6fr 1.4fr;

    gap: 8px;
    min-height: 0;
}

.btn-reiniciar,
.btn-imprimir {
    border: none;
    color: white;
    font-size: 28px;
    font-weight: 800;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1.05;
}

.btn-reiniciar {
    background: #ff7f00;
}

.btn-imprimir {
    background: #0c9420;
}

.resumen-contenido {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}


.app-shell {
    width: 100dvw;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    background: #2b2b2b;
}

.pantalla-fija {
    position: absolute;
    width: 1280px;
    height: 720px;
    background: #d9d9d9;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    transform-origin: center center;
}

.contenido-pantalla {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sugerido-final {
    animation: pulsoFinal 1.5s infinite ease-in-out;
    box-shadow:
        0 0 20px #666,
        0 0 40px #888,
        0 0 70px rgba(100, 100, 100, 0.9);
    position: relative;
    z-index: 5;
}

@keyframes pulsoFinal {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px #666, 0 0 30px #888;
    }

    50% {
        transform: scale(1.09);
        box-shadow: 0 0 30px #888, 0 0 60px #aaa, 0 0 90px rgba(120, 120, 120, 0.9);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 15px #666, 0 0 30px #888;
    }
}




.barra-inferior {
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background: #cfcfcf;
    border-top: 1px solid #b5b5b5;
}

.btn-barra {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    cursor: pointer;
    border-right: 1px solid #b5b5b5;
}

.btn-barra.btn-contraste {
    cursor: default;
}

.icono-cuadro {
    width: 36px;
    height: 36px;
    background: #595e63;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.icono-cuadro svg {
    fill: white;
    width: 24px;
    height: 24px;
}

.texto-barra {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    color: #222;
}


.contenido-pantalla {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
}




//inicio
.inicio-contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    background: #e9e9e9;
    padding: 20px;
}

.inicio-mensaje {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    color: #222;
}

.escena-real {
    width: 1050px;
    height: 470px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.maquina-real {
    position: relative;
    width: 650px;
    height: 390px;
}

/* Soportes laterales */
.soporte-izq,
.soporte-der {
    position: absolute;
    top: 28px;
    width: 68px;
    height: 292px;
    background: linear-gradient(to bottom, #8a8a8a, #666);
    border-radius: 18px;
    z-index: 2;
}

.soporte-izq {
    left: 16px;
}

.soporte-der {
    right: 16px;
}

/* Cuerpo principal */
.cuerpo-maquina {
    position: absolute;
    left: 58px;
    top: 50px;
    width: 534px;
    height: 230px;
    background: linear-gradient(to bottom, #878787, #6e6e6e);
    border-radius: 12px;
    border: 2px solid #5c5c5c;
    z-index: 3;
    display: flex;
    padding: 16px;
    gap: 14px;
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.16);
}

/* Pantalla */
.pantalla-real {
    flex: 1;
    background: #2e3138;
    border: 6px solid #222;
    border-radius: 6px;
    padding: 6px;
    display: flex;
    flex-direction: column;
}

.pantalla-barra-superior {
    height: 14px;
    background: linear-gradient(to right, #51607d, #d86d8e);
    margin-bottom: 6px;
}

.pantalla-contenido {
    flex: 1;
    background: #f5f4eb;
    padding: 18px 22px;
    color: #333;
}

.pantalla-titulo {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.05;
}

.pantalla-subtitulo {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 22px;
}

.pantalla-aviso {
    font-size: 14px;
    font-weight: 700;
    max-width: 420px;
}

/* módulo derecho */
.modulo-derecho {
    position: relative;
    width: 170px;
    background: linear-gradient(to bottom, #565c69, #343943);
    border-radius: 6px;
    padding-top: 42px;
    overflow: visible;
}

.ranura-superior {
    position: absolute;
    top: 6px;
    left: 25px;
    width: 120px;
    height: 16px;
    background: linear-gradient(to bottom, #e7b129, #b87b00);
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
    z-index: 6;
}

.modulo-logo {
    margin: 22px auto 0;
    width: 126px;
    height: 124px;
    background: #4d525d;
    border-radius: 4px;
    color: #f4c032;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.18);
}

.onda {
    width: 56px;
    height: 56px;
    border: 6px solid #f4c032;
    border-radius: 50%;
    border-left-color: transparent;
    border-right-color: transparent;
    position: relative;
    margin-bottom: 10px;
}

.onda::before,
.onda::after {
    content: "";
    position: absolute;
    border: 5px solid #f4c032;
    border-left-color: transparent;
    border-right-color: transparent;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.onda::before {
    width: 34px;
    height: 34px;
    top: 6px;
}

.onda::after {
    width: 14px;
    height: 14px;
    top: 16px;
}

.texto-verifique {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
}

.sensor-inferior {
    position: absolute;
    left: 22px;
    bottom: 14px;
    width: 126px;
    height: 22px;
    background: #111;
    border-radius: 3px;
}

/* base azul */
.base-azul-real {
    position: absolute;
    left: 125px;
    top: 280px;
    width: 400px;
    height: 78px;
    background: linear-gradient(to bottom, #2f8cff, #1c5ec6);
    border-radius: 10px;
    z-index: 1;
    box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.22);
}

.hueco-base {
    width: 200px;
    height: 25px;
    background: #393838;
    border-radius: 4px;
    margin: 20px auto 0;
}

/* boleta entrando desde arriba */
.contenedor-boleta {
    position: absolute;
    left: 431px;
    top: -300px;
    height: 356px;
    width: 116px;
    z-index: 5;
    overflow: hidden;
}

.boleta-top {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 290px;
    background: #fff;
    border: 2px solid #d8d8d8;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    animation: insertarBoleta 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.boleta-header {
    height: 36px;
    background: #f0a52b;
    color: white;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.boleta-centro {
    position: relative;
    flex: 1;
    background: #fff;
}

.boleta-franja {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 24px;
    background: #f0a52b;
    color: white;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boleta-rayas {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 64px;
    background:
        repeating-linear-gradient(-45deg,
            #f1bb58,
            #f1bb58 3px,
            #fff 3px,
            #fff 9px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.flecha-grande {
    position: relative;
    width: 32px;
    height: 80px;
    background: #f0a52b;
}

.flecha-grande::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -50px;
    transform: translateX(-50%);
    border-left: 48px solid transparent;
    border-right: 48px solid transparent;
    border-top: 52px solid #f0a52b;
}

/* animación: baja hacia la ranura superior */
@keyframes insertarBoleta {
    0% {
        top: -60px;
        opacity: 0;
    }

    5% {
        top: -20px;
        opacity: 1;
    }

    50% {
        top: 280px;
    }

    85% {
        top: 280px;
        opacity: 1;
    }

    95% {
        opacity: 0;
        top: 280px;
    }

    100% {
        top: -60px;
        opacity: 0;
    }
}

/* Mensaje de verificacion */
.mensaje-verificacion {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    padding: 10px 20px;
    margin-top: 10px;
}

/* Contenedor central de la boleta sola */
.contenedor-boleta-pantalla {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* La boleta impresa sola */
.boleta-posterior-impresa {
    width: 840px;
    height: 340px;
    background: white;
    border: 2px solid black;
    display: flex;
    flex-direction: column;
    font-family: 'Courier New', Courier, monospace;
    color: black;
    animation: caerBoletaCentro 3s ease-out forwards;
    transform: translateY(-800px);
    /* start above */
}

@keyframes caerBoletaCentro {
    0% {
        transform: translateY(-800px);
    }

    100% {
        transform: translateY(0);
    }
}

.fila-cabecera {
    display: flex;
    background: black;
    color: white;
    height: 36px;
}

.col-cabecera {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

.fila-cuerpo {
    display: flex;
    flex: 1;
}

.col-cuerpo {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 10px;
}

.col-cuerpo.border-left {
    border-left: 2px solid black;
}

.bloque-candidato {
    margin-bottom: auto;
    /* Empuja el bloque inferior hacia abajo */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bloque-lista {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nombre-print {
    font-size: 26px;
    font-weight: bold;
}

.opcion-print {
    font-size: 20px;
}

.lista-print {
    font-size: 24px;
    font-weight: bold;
}

.movimiento-print {
    font-size: 20px;
    font-weight: bold;
}

.btn-iniciar {
    background: #03938e;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 26px;
    font-weight: 700;
    padding: 16px 36px;
    cursor: pointer;
}
