* {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ocupa al menos toda la altura de la pantalla */
    margin: 0;
}

main {
    flex: 1; /* Hace que el contenido principal ocupe el espacio restante */
    padding: 20px;
}

.btn-iem {
    background-color: #9c328f !important;
    color: #fff !important;
}

.bg-iem {
    background-color: #9c328f !important;
    color: #fff !important;
}

.text-iem {
    color: #9c328f !important;
}

.btn-iem:hover {
    background-color: #66205e !important;
    color: #fff !important;
}

.card-option {
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid lightgray;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Mantiene el ícono alineado */
    padding: 10px;
}

.card-option:hover {
    border-color: #9f2380;
    box-shadow: 0px 0px 10px #ab5670;
}

.card-option.active {
    border-color: #9f2380;
    box-shadow: 0px 0px 10px #ab5670;
    background-color: #f1eaf0;
}

.icon-section {
    flex-shrink: 0; /* Evita que el icono se reduzca */
    width: 80px;
    height: 80px; /* Asegura que tenga un tamaño fijo */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 5px 5px 0;
}

.text-section {
    flex-grow: 1;
    min-width: 0; /* Evita que el texto empuje el icono */
    padding: 15px;
}

.text-section h6 {
    margin-bottom: 5px;
    font-size: 16px;
}

.text-section p {
    font-size: 14px;
    white-space: normal; /* Permite saltos de línea */
    word-wrap: break-word; /* Evita que palabras largas desborden */
    margin-bottom: 0;
}

.bg-mmtdj {
    background-color: #f198b6 !important;
    color: #000 !important;
}

/* Asegurar que la imagen sea responsive */
#base-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.bg-light-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.card.border-success .card-header {
    border-bottom: 1px solid var(--bs-success) !important;
}

/* Estilo para el botón de reset */
#resetVotosBtn {
    transition: all 0.2s ease;
    border-width: 2px;
}

#resetVotosBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}

#resetVotosBtn:active {
    transform: translateY(0);
}

/* Estado deshabilitado */
#resetVotosBtn:disabled {
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

/* Bloquear orientación vertical en móviles */
@media screen and (max-width: 768px) and (orientation: portrait) {
    body {
        height: 100vh;
        overflow: hidden;
        position: fixed;
    }
    
    #orientation-message {
        display: flex !important;
    }
}

/* Mensaje de orientación (oculto por defecto) */
#orientation-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

/* Estilo para el botón de continuar */
#continue-portrait {
    margin-top: 20px;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}

/* Estilos para la página de finalización */
.card-resumen {
    border-left: 5px solid #0d6efd;
}

.table-detalle {
    font-size: 0.9rem;
}

.table-detalle th {
    white-space: nowrap;
}


.share-btn {
    padding: 10px 20px;
    background-color: #66205e;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Para Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}


@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        border: none;
        box-shadow: none;
    }
    
    .table-detalle {
        font-size: 0.8rem;
    }
}