/**
 * Máquina de Votación — Estilo exacto TSJE Paraguay
 */

/* ── Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; max-width: 100%; overflow-x: hidden; }
body.votacion-body {
    background: #d4d4d4;
    font-family: Arial, sans-serif;
    font-size: 14px;
    height: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-x: hidden;
}

/* Pantallas admin (resultados): permitir scroll vertical */
body.votacion-body.admin-resultados {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}
/* Escala base en pantallas de alta resolución lógica */
@media (min-width: 1400px) {
    body.votacion-body { font-size: 15px; }
    .mv-topbar         { min-height: 44px; }
    .mv-cargo-titulo   { font-size: 1.1rem; }
    .mv-lista-banner-nombre { font-size: 1.35rem; }
}

/* ── Topbar OSCURO (estilo TSJE imágenes) ────────────────────────── */
.mv-topbar {
    background: #a09e9e;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 10px;
    min-height: 40px;
    flex-shrink: 0;
}
.mv-topbar-logo { display: flex; align-items: center; gap: 8px; }
.mv-topbar-logo img, .mv-topbar-logo-right img { height: 50px; filter: brightness(1.1); }
.mv-topbar-info { font-size: 0.65rem; color: #ddd; }

.mv-topbar-info span { display: block; }
.mv-topbar-info strong { color: #fff; }
.mv-topbar.mv-topbar-oculto { display: none; }

/* ── Cargo header NEGRO ─────────────────────────────── */
.mv-cargo-header {
    background: #000;
    text-align: center;
    padding: 6px;
    flex-shrink: 0;
}
.mv-cargo-titulo { font-size: 1rem; font-weight: 700; color: #fff; }
.mv-cargo-titulo-intendente { font-size: 1.2rem; font-weight: 800; }

/* ── Banner Lista+Movimiento (concejales) ───────────── */
.mv-lista-banner {
    background: #fff;
    text-align: center;
    padding: 5px 16px 4px;
    border-bottom: 2px solid #ddd;
    flex-shrink: 0;
}
.mv-lista-banner-letra { font-size: 0.95rem; font-weight: 700; color: #111; }
.mv-lista-banner-nombre { font-size: 1.25rem; font-weight: 900; color: #111; line-height: 1.1; }

/* ── Cuerpo ─────────────────────────────────────────── */
.mv-body {
    flex: 1; min-height: 0;
    display: flex; flex-direction: column;
    padding: 6px 10px 4px;
    overflow: hidden;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    background: #d4d4d4;
}
.mv-aviso {
    background: #fff3cd; border: 1px solid #ffc107;
    color: #856404; padding: 10px 16px; border-radius: 4px; margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════════
   INTENDENTE — Cards cuadrados, ocupan toda la pantalla
   ══════════════════════════════════════════════════════ */
.mv-tiles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 1.2vw, 14px);
    flex: 1; min-height: 0;
    align-content: start;
    justify-content: stretch;
    width: 100%;
    max-width: 100%;
}
.mv-tiles-grid.mv-tiles-intendente {
    grid-template-columns: repeat(var(--int-cols, 3), minmax(0, 1fr));
    grid-template-rows: 1fr;
    grid-auto-rows: minmax(0, 1fr);
    justify-content: stretch;
    align-content: center;
    width: 100%;
    margin-inline: auto;
    gap: 8px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
@media (max-width: 900px) { .mv-tiles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mv-tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


.mv-tile-int {
    background: #fff;
    border: 1px solid #999;
    border-radius: 0;
    cursor: pointer;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 10px 12px;
    transition: border-color .12s, opacity .1s;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    aspect-ratio: 1;
    width: 100%;
    max-height: 100%;
    justify-self: center;
    box-sizing: border-box;
}
.mv-tile-int:hover { border-color: #555; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.mv-tile-int.mv-seleccionado { border: 2px solid #1976d2; box-shadow: 0 0 0 3px rgba(25,118,210,.25); }

/* Movimiento centrado arriba */
.mv-card-mov {
    font-size: clamp(1rem, 1.1vw, 1.25rem);
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    flex-shrink: 0;
    margin-bottom: 6px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Fila media: foto izq | LISTA der (rellena altura útil del cuadrado) */
.mv-card-medio {
    display: flex;
    gap: 8px;
    align-items: stretch;
    min-height: 0;
}
.mv-card-foto {
    flex: 0 0 60%;
    align-self: stretch;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    background: #fff;
    border: none;
    border-radius: 0;
}
.mv-card-foto img {
    width: 100%; height: 100%;
    object-fit: contain; object-position: center center;
}
.mv-card-iniciales {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: clamp(1rem, 3.5vw, 1.5rem); font-weight: 700; color: #666; background: #e5e5e5;
}

.mv-card-lista {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.mv-card-lista-word { font-size: clamp(1.05rem, 1.2vw, 1.3rem); font-weight: 700; color: #333; }
.mv-card-lista-num { font-size: clamp(2.2rem, 2.9vw, 3rem); font-weight: 900; color: #000; line-height: 1; }
.mv-card-lista-sigla { display: none; }

/* Intendente desktop: textos de movimiento/lista más grandes */
@media (min-width: 1200px) {
    .mv-cargo-titulo-intendente { font-size: 1.45rem; }

    .mv-card-mov {
        font-size: 1.35rem;
        line-height: 1.1;
    }
    .mv-card-lista-word { font-size: 1.35rem; }
    .mv-card-lista-num { font-size: 3.1rem; }
    .mv-card-medio { gap: 8px; }
    .mv-card-foto { flex-basis: 62%; }
}

/* Nombre abajo con etiqueta */
.mv-card-nom {
    font-size: clamp(0.95rem, 1.1vw, 1.2rem);
    color: #111;
    line-height: 1.15;
    flex-shrink: 0;
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px solid #ececec;
    text-align: center;
}
.mv-card-label { font-weight: 500; color: #555; }
.mv-card-nom strong {
    font-weight: 800;
    color: #000;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

@media (min-width: 1200px) {
    .mv-card-nom {
        font-size: 1.3rem;
        line-height: 1.15;
    }
    .mv-card-nom strong { font-weight: 900; }
}

/* Tile VOTO EN BLANCO */
.mv-tile-blanco {
    border: 1px solid #999 !important;
    background: #fff !important;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.mv-card-blanco {
    font-size: 1.4rem;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.mv-tile-blanco:hover { border-color: #555 !important; }
.mv-tile-blanco.mv-seleccionado { border: 2px solid #1976d2 !important; }

/* ══════════════════════════════════════════════════════
   JUNTA MUNICIPAL — Listas (paso 1) — cards cuadrados
   ══════════════════════════════════════════════════════ */
.mv-tiles-grid.jm-listas {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    align-content: stretch;
    justify-content: stretch;
    gap: 8px;
    height: 100%;
    overflow: hidden;
}
@media (min-width: 2500px) { .mv-tiles-grid.jm-listas { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 1400px) { .mv-tiles-grid.jm-listas { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .mv-tiles-grid.jm-listas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .mv-tiles-grid.jm-listas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) and (max-height: 950px) and (orientation: landscape) {
    .mv-tiles-grid.jm-listas { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1vw, 12px); }
}
@media (min-height: 1100px) and (max-width: 950px) and (orientation: portrait) {
    .mv-tiles-grid.jm-listas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

.mv-tile-lista {
    background: #fff;
    border: 1px solid #999;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 1vw, 12px) clamp(8px, 1vw, 12px);
    text-align: center;
    aspect-ratio: auto;
    height: 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    transition: border-color .12s;
    box-shadow: 0 1px 2px rgba(0,0,0,.12);
    text-decoration: none;
    color: inherit;
}
.mv-tile-lista:hover { border-color: #555; color: inherit; }
.mv-tile-lista.mv-seleccionado { border: 2px solid #1976d2; }

.mv-tl-num {
    font-size: 0.95rem;
    color: #000;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}
.mv-tl-num strong { font-size: 2.9rem; display: block; line-height: .95; }
.mv-tl-sep { width: 80%; height: 1px; background: #ccc; margin: 6px auto; }
.mv-tl-mov {
    font-size: clamp(0.78rem, 1.1vw, 0.95rem);
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    line-height: 1.25;
    margin-top: 2px;
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}
.mv-tl-sigla {
    display: none;
}

@media (min-width: 768px) {
    .mv-tiles-grid.jm-listas {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: minmax(0, 1fr);
    }
    .mv-tl-num strong { font-size: clamp(2rem, 2.6vw, 2.4rem); }
    .mv-tl-mov { font-size: clamp(0.66rem, 0.75vw, 0.8rem); }
}

/* ══════════════════════════════════════════════════════
   CONCEJALES — Cards rectangulares estilo TSJE
   ══════════════════════════════════════════════════════ */
.mv-opciones-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.mv-opciones-grid {
    flex: 1; min-height: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    max-width: 100%;
    align-content: stretch;
    justify-content: stretch;
    overflow: hidden;
}
@media (min-width: 2500px) { .mv-opciones-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 8px; } }
@media (max-width: 700px) { .mv-opciones-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; } }

/* Junta - tableta y escritorio: 24 cards (6x4) sin Voto en Blanco */
@media (min-width: 768px) {
    .mv-opciones-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-template-rows: repeat(4, minmax(0, 1fr));
    }
    .mv-opcion-card.mv-opcion-blanco {
        display: none;
    }
}

.mv-opcion-card {
    background: #fff;
    border: 1px solid #999;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    transition: border-color .12s, opacity .1s;
    padding: 3px 5px;
}
.mv-opcion-card:hover { border-color: #555; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.mv-opcion-card.mv-seleccionado {
    border: 2px solid #1976d2;
    box-shadow: 0 0 0 2px rgba(25,118,210,.25);
    background: #f0f6ff;
}

/* Fila media: foto izq | Opción+LISTA der */
.mv-opcion-medio {
    display: flex;
    gap: 4px;
    align-items: stretch;
    min-height: 0;
    flex: 1;
}
.mv-opcion-foto {
    flex: 0 0 45%;
    align-self: stretch;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    background: #fff;
    border: none;
    border-radius: 0;
    position: relative;
}
.mv-opcion-foto img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain; object-position: center center;
}
.mv-opcion-initials {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700; color: #666; background: #e5e5e5;
}

.mv-opcion-lista {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.mv-opcion-op { font-size: 0.6rem; font-weight: 700; color: #555; }
.mv-opcion-num { font-size: 1.15rem; font-weight: 900; color: #000; line-height: 1; }
.mv-opcion-lista-word { font-size: 0.55rem; font-weight: 600; color: #555; }

/* Aumentar Opción/Número/Lista solo en desktop */
@media (min-width: 1200px) {
    .mv-opcion-op { font-size: 1.1rem; color: #0a0a0a; }
    .mv-opcion-num { font-size: 1.45rem; }
    .mv-opcion-lista-word { font-size: 1rem; color: #060606; }
}

/* Nombre abajo con etiqueta */
.mv-opcion-nom, .mv-opcion-nombre {
    font-size: 0.85rem;
    color: #111;
    line-height: 1.1;
    flex-shrink: 0;
    margin-top: 1px;
    padding-top: 1px;
    border-top: 1px solid #ececec;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    overflow: hidden;
}
.mv-opcion-label { font-weight: 500; color: #555; }
.mv-opcion-nom strong, .mv-opcion-nombre strong {
    font-weight: 800;
    color: #000;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* Voto en blanco concejal (anula grid de 3 filas) */
.mv-opcion-card.mv-opcion-blanco {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-template-rows: none;
}
.mv-opcion-blanco {
    display: flex; align-items: center; justify-content: center;
}
.mv-opcion-blanco-txt {
    font-size: 1.35rem;
    font-weight: 900;
    color: #333;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* Las capturas de referencia no muestran prefijo de cargo en el nombre */
.mv-card-label,
.mv-opcion-label {
    display: none;
}

/* Voto en blanco (legacy - ya no se usa como fila separada) */
.mv-blanco-row { display: none; }

/* Panel de confirmación (concejales) */
.mv-confirm-bar {
    flex-shrink: 0;
    background: #fff; border-top: 3px solid #1976d2;
    border-radius: 3px; padding: 7px 12px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 -1px 6px rgba(0,0,0,.1); margin-top: 4px;
}
.mv-confirm-texto { flex: 1; font-size: 0.85rem; font-weight: 700; color: #111; }
.mv-btn-mod {
    background: #555; color: #fff; border: none;
    padding: 7px 14px; border-radius: 3px; font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.mv-btn-mod:hover { background: #333; }
.mv-btn-ok {
    background: #1976d2; color: #fff; border: none;
    padding: 7px 20px; border-radius: 3px; font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.mv-btn-ok:hover { background: #1565c0; }
.mv-btn-ok:disabled { background: #9ca3af; cursor: not-allowed; }

/* ── Barra inferior ──────────────────────────────────── */
.mv-bottombar {
    background: #1a1a1a;
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 4px 12px; flex-shrink: 0;
}
.mv-bottom-left { display: flex; gap: 8px; align-items: center; }
.mv-btn-alto-contraste {
    background: #4a4a4a; color: #fff; border: 1px solid #666;
    padding: 5px 12px; border-radius: 3px;
    font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.mv-btn-alto-contraste:hover { background: #555; color: #fff; }
.mv-btn-volver {
    background: #555; color: #fff; border: none;
    padding: 5px 12px; border-radius: 3px;
    font-size: 0.75rem; font-weight: 700;
    cursor: pointer; text-decoration: none;
}
.mv-btn-volver:hover { background: #777; color: #fff; }
.mv-btn-reiniciar-bot {
    background: #e67e22; color: #fff; border: none;
    padding: 5px 12px; border-radius: 3px;
    font-size: 0.75rem; font-weight: 700; cursor: pointer;
}
.mv-btn-reiniciar-bot:hover { background: #ca6f1e; }

/* ══════════════════════════════════════════════════════
   RESUMEN — Opciones seleccionadas (columnas blancas)
   ══════════════════════════════════════════════════════ */
body.pantalla-resumen { background: #d4d4d4; overflow: hidden; }

.rs-titulo-bar {
    background: #4a4a4a; color: #fff; text-align: center;
    font-size: 1.1rem; font-weight: 700; padding: 10px 0; flex-shrink: 0;
}
.rs-body   { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px; overflow: hidden; overflow-x: hidden; max-width: 100%; }
/* Flex: columnas al alto del contenido; barra lateral igual al máximo de las cards */
.rs-columnas {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    flex: 1;
    min-height: 0;
    max-width: 100%;
    align-items: flex-start;
}

/* Resumen: pantallas estrechas */
@media (max-width: 768px) {
    .rs-columnas { flex-wrap: wrap; align-items: stretch; }
    .rs-col { flex: 1 1 100%; }
    .rs-col-acciones {
        flex: 1 1 100%;
        flex-direction: row;
        width: 100%;
        min-height: 70px;
    }
    .rs-btn-reiniciar, .rs-btn-confirmar { min-height: 64px; }
}

/* Resumen: tablet portrait — apilar */
@media (min-height: 1100px) and (max-width: 950px) and (orientation: portrait) {
    .rs-columnas { flex-direction: column; flex-wrap: wrap; align-items: stretch; }
    .rs-col-acciones {
        flex-direction: row;
        width: 100%;
        flex: 0 0 auto;
        min-height: 72px;
        align-self: stretch;
    }
    .rs-btn-reiniciar { flex: 0.35; min-height: 64px; }
    .rs-btn-confirmar { flex: 0.65; min-height: 64px; }
}

.rs-col {
    flex: 1 1 0;
    background: #fff;
    border: 1px solid #ccc; border-radius: 0;
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 12px 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    min-width: 0;
    overflow-y: auto;
}
.rs-col-cargo {
    font-size: 1rem; font-weight: 900; text-align: center;
    text-transform: uppercase; color: #111; letter-spacing: .5px;
    margin-bottom: 4px;
}
.rs-col-sep { width: 100%; border: none; border-top: 2px solid #111; margin: 4px 0 8px; }
.rs-col-lista-nombre {
    font-size: 1.05rem; font-weight: 800; text-align: center;
    color: #111; text-transform: uppercase; margin-bottom: 4px;
}
.rs-col-num {
    font-size: 1.65rem; font-weight: 900; text-align: center;
    color: #111; margin-bottom: 10px; letter-spacing: 1px;
}
.rs-col-foto {
    width: 110px; height: 130px; overflow: hidden;
    border-radius: 2px; border: none; margin-bottom: 8px; background: #fff;
}
.rs-col-foto img { width:100%; height:100%; object-fit:contain; object-position:center center; }
.rs-col-foto-vacio { background: #e0e0e0; }
.rs-col-nombre { font-size: 1.12rem; font-weight: 800; text-align: center; color: #111; line-height: 1.2; margin-bottom: 4px; }
.rs-col-opcion { font-size: 0.85rem; color: #555; text-align: center; margin-bottom: 6px; font-style: italic; }
.rs-col-sin-voto { flex:1; display:flex; align-items:center; justify-content:center; color:#999; font-size:0.85rem; }
.rs-col-blanco { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; }
.rs-blanco-img {
    width: 110px;
    height: 130px;
    max-width: 100%;
    object-fit: contain;
}
.rs-blanco-ico {
    width: 110px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color:#aaa;
}
.rs-blanco-txt { font-size:1rem; font-weight:800; color:#333; letter-spacing:.4px; }
.rs-col-footer { margin-top:auto; padding-top:8px; width:100%; }
.rs-btn-mod {
    display:block; width:100%; text-align:center;
    background:#4a4a4a; color:#fff; border:none; border-radius:0;
    padding:10px 0; font-size:0.9rem; font-weight:700;
    cursor:pointer; text-decoration:none;
}
.rs-btn-mod:hover { background:#333; color:#fff; }

.rs-col-acciones {
    flex: 0 0 clamp(100px, 12vw, 130px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: stretch;
    min-height: 0;
}
.rs-btn-reiniciar {
    flex: 0.35; min-height: 70px; display:flex; flex-direction:column; align-items:center; justify-content:center;
    border:none; border-radius:0; cursor:pointer; font-size:0.9rem; font-weight:700;
    color:#fff; text-align:center; line-height:1.3; gap:5px;
    box-shadow:0 2px 6px rgba(0,0,0,.2);
}
.rs-btn-confirmar {
    flex: 0.65; min-height: 120px; display:flex; flex-direction:column; align-items:center; justify-content:center;
    border:none; border-radius:0; cursor:pointer; font-size:0.9rem; font-weight:700;
    color:#fff; text-align:center; line-height:1.3; gap:5px;
    box-shadow:0 2px 6px rgba(0,0,0,.2);
}
.rs-btn-reiniciar:hover, .rs-btn-confirmar:hover { opacity:.9; }
.rs-btn-confirmar:disabled { opacity:.5; cursor:not-allowed; }
.rs-btn-reiniciar { background:#e67e22; }
.rs-btn-confirmar { background:#27ae60; }
.rs-icon { font-size:1.6rem; display:block; }

/* Resumen desktop/tablet horizontal: cards cuadrados que caben siempre */
@media (min-width: 769px) {
    .rs-columnas {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) clamp(100px, 12vw, 130px);
        gap: 8px;
        height: 100%;
        align-items: center;
    }

    .rs-col {
        width: auto;
        height: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1;
        justify-self: center;
        align-self: center;
        overflow-y: auto;
    }

    .rs-col-foto {
        width: min(72%, 360px);
        height: auto;
        aspect-ratio: 1 / 1;
        margin-bottom: 12px;
    }

    .rs-blanco-img,
    .rs-blanco-ico {
        width: min(72%, 360px);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .rs-col-lista-nombre { font-size: 1.2rem; }
    .rs-col-num { font-size: 2rem; }
    .rs-col-nombre { font-size: 1.3rem; }
    .rs-col-opcion { font-size: 0.95rem; }

    .rs-col-acciones {
        width: clamp(100px, 12vw, 130px);
        height: 100%;
        align-self: center;
    }
}

/* ══════════════════════════════════════════════════════
   INSTRUCTIVOS
   ══════════════════════════════════════════════════════ */
body.pantalla-instructivo { background:#d4d4d4; display:flex; flex-direction:column; height:100%; overflow:hidden; }
.inst-header {
    background:#fff; border-bottom:1px solid #ccc;
    display:flex; align-items:center; justify-content:space-between;
    padding:5px 12px; flex-shrink:0; min-height:50px;
}
.inst-header-left img, .inst-header-right img { height:36px; }
.inst-header-center { font-size:0.68rem; font-weight:700; color:#333; text-align:center; }
.inst-body { flex:1; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.inst-slide { display:none; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:20px 40px; max-width:680px; width:100%; }
.inst-slide.active { display:flex; }
.inst-img-wrap { margin-bottom:18px; }
.inst-img-wrap img { max-height:240px; max-width:380px; object-fit:contain; }
.inst-img-agradecimiento img { max-height:290px; max-width:450px; }
.inst-texto { font-size:1rem; color:#222; line-height:1.6; margin-bottom:22px; max-width:540px; }
.inst-texto-final { font-size:1.05rem; color:#222; line-height:1.6; margin-bottom:22px; max-width:460px; }
.inst-btn { display:inline-block; min-width:120px; padding:9px 28px; border:none; border-radius:5px; font-size:0.95rem; font-weight:600; cursor:pointer; text-decoration:none; text-align:center; transition:opacity .2s; }
.inst-btn:hover { opacity:.88; }
.inst-btn-green { background:#43a047; color:#fff; }
.inst-btn-blue  { background:#1976d2; color:#fff; }
.inst-admin-link { margin-top:14px; font-size:0.75rem; }
.inst-admin-link a { color:#666; text-decoration:none; }
.inst-admin-link a:hover { text-decoration:underline; }

/* Vista alto contraste (toggle) */
body.alto-contraste .mv-body { background: #000 !important; }
body.alto-contraste .mv-topbar { background: #000 !important; border-color: #fff; }
body.alto-contraste .mv-topbar-info,
body.alto-contraste .mv-topbar-info strong { color: #fff !important; }
body.alto-contraste .mv-cargo-header { background: #000 !important; }
body.alto-contraste .mv-tile-int,
body.alto-contraste .mv-tile-lista,
body.alto-contraste .mv-opcion-card { border: 3px solid #000 !important; background: #fff !important; color: #000 !important; }
body.alto-contraste .mv-tile-int:hover,
body.alto-contraste .mv-tile-lista:hover,
body.alto-contraste .mv-opcion-card:hover { border-color: #ff0 !important; }
body.alto-contraste .mv-tile-int.mv-seleccionado,
body.alto-contraste .mv-opcion-card.mv-seleccionado { border: 4px solid #ff0 !important; outline: 2px solid #000; }
body.alto-contraste .mv-btn-reiniciar-bot { background: #f60 !important; color: #000 !important; border: 2px solid #000; }
body.alto-contraste .rs-btn-reiniciar { background: #f60 !important; color: #000 !important; }
body.alto-contraste .rs-btn-confirmar { background: #0f0 !important; color: #000 !important; }
body.alto-contraste .rs-btn-mod { background: #ff0 !important; color: #000 !important; }

@media print { .mv-topbar, .mv-bottombar, .rs-col-acciones { display:none !important; } }

/* Selección seccional / local */
.seleccion-ubicacion-wrap { max-width: min(640px, 94vw); margin-inline: auto; text-align: center; padding: 12px 8px 32px; }
.seleccion-ubicacion-titulo { font-size: clamp(1.15rem, 2.5vw, 1.45rem); margin: 16px 0 8px; font-weight: 700; }
.seleccion-ubicacion-form .form-label { color: #222; }
