#formu,
.c_res,
.css-input {
    text-align: center
}

.c_res,
.svg_ {
    overflow-x: auto
}

.B1,
.B2,
.B3,
.g_,
.k_,
.m_,
.rB,
.r_,
.t_,
.u_,
.y_,
g,
k,
m,
r,
t,
y {
    font-weight: 700
}

#formu {
    width: 100%;
    max-width: 350px;
    margin: 0 auto
}

.B1 {
    box-shadow: inset 0 1px 0 0 #a4e271;
    background: linear-gradient(to bottom, #89c403 5%, #77a809 100%);
    background-color: #89c403;
    border: 1px solid #74b807;
    text-shadow: 0 1px 0 #528009
}

.B1:hover {
    background: linear-gradient(to bottom, #77a809 5%, #89c403 100%);
    background-color: #77a809
}

.B1:active,
.B2:active,
.B3:active {
    position: relative;
    top: 1px
}

.B2 {
    box-shadow: inset 0 1px 0 0 #f5978e;
    background: linear-gradient(to bottom, #f24537 5%, #c62d1f 100%);
    background-color: #f24537;
    border: 1px solid #d02718;
    text-shadow: 0 1px 0 #810e05
}

.B2:hover {
    background: linear-gradient(to bottom, #c62d1f 5%, #f24537 100%);
    background-color: #c62d1f
}

.B3 {
    box-shadow: inset 0px 1px 0px 0px #e184f3;
    background: linear-gradient(to bottom, #c123de 5%, #a20dbd 100%);
    background-color: #c123de;
    border-radius: 6px;
    border: 1px solid #a511c0;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-family: Arial;
    font-size: 32px !important;
    font-weight: bold;
    padding: 8px 16px;
    text-decoration: none;
    text-shadow: 0px 1px 0px #9b14b3;
    height: 48px;
    vertical-align: top;
    line-height: 32px;
}

.B3:hover {
    background: linear-gradient(to bottom, #a20dbd 5%, #c123de 100%);
    background-color: #a20dbd
}

.B1,
.B2,
.B3 {
    border-radius: 6px;
    display: inline-block;
    cursor: pointer;
    color: #fff;
    font-family: Arial;
    font-size: 14px;
    padding: 6px;
    text-decoration: none;
    width: 100px
}

.rB {
    font-size: 16px
}

.header_ {
    background-color: #330537;
    height: 48px;
    width: 100%;
    position: relative;
    border-radius: 0;
}



.wm {
    width: 170px;
    margin-top: 10px
}

#Box-out,
.c_res,
.inM {
    margin: 0 auto
}

#Box-out {
    width: 100%;
    max-width: 500px;
    -webkit-box-shadow: 0 0 8px 0 rgba(0, 0, 0, .75);
    -moz-box-shadow: 0 0 8px 0 rgba(0, 0, 0, .75);
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .75);
    overflow-x: hidden;
    background-color: #fff;
    border-radius: 12px 10px 10px 10px;
}

.c_res {
    width: 99%;
    padding: 10px 1px 20px;
    max-height: 70vh;
    overflow-y: auto
}

.close_,
.rB {
    padding: 2px
}

.rB {
    height: 28px
}

.close_ {
    border-radius: 0;
    font-size: 22px;
    width: 45px;
    float: left;
    height: 48px;
    border-radius: 10px 0 0 0;
}

.tm {
    font-size: 20px;
    color: #00008b
}

.lbl_,
big {
    font-size: 14px;
}

.svg_ {
    width: 100%
}

.lbl_ {
    padding: 5px;
    color: indigo
}

.t_,
t {
    color: #d2691e !important
}

.m_,
m {
    color: #3a5998 !important
}

.y_,
y {
    color: olive
}

.r_,
r {
    color: #daa520
}

.g_,
g {
    color: #696969
}

.k_,
k {
    color: #0b772f
}

.u_ {
    color: #8b0000
}

.ocultar {
    position: fixed;
    left: -999999px
}

.inM {
    max-width: 280px;
    position: relative
}

.opM {
    font-size: 34px;
    color: #333;
    position: absolute;
    left: -12px;
    top: 65%
}

.lM {
    width: 295px;
    background: #000000;
    margin: 7px auto !important;
    border: 2px solid black;
}

#Box_sol p {
    font-size: 17px;
}

        /* --- Modal Styles --- */
        .modal {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 5px;
            z-index: 9999999;
            opacity: 0;
            pointer-events: none;
        }
        .modal.active {
            opacity: 1;
            pointer-events: auto;
        }
        .modal-content {
            background-color: var(--white);
            border-radius: 0.75rem;
            box-shadow: var(--shadow-2xl);
            width: 100%;
            max-width: 28rem; /* 448px */
            /*! padding: 2rem; */
            transform: scale(0.95);
        }
        .modal.active .modal-content {
            transform: scale(1);
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        .modal-header h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--sky-800);
        }
        #closeModal {
            color: var(--slate-500);
            background: none;
            border: none;
            cursor: pointer;
        }
        #closeModal:hover {
            color: var(--slate-800);
        }
        #closeModal svg {
            width: 1.5rem;
            height: 1.5rem;
        }

#lgif {
    position: absolute;
    right: 5px;
    top: -15px;
    width: 100px;
    height: auto;
}
.ocultar{position:absolute; left:-9999999999999px !important;}

/* Estilos para el loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #00ff88;
    border-right: 5px solid #00bfff;
    border-bottom: 5px solid #ff6b6b;
    border-left: 5px solid #ffd93d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilos para el loading del modal */
.modal-loading {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999999;
}

.modal-spinner {
    width: 25px;
    height: 25px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-right: 3px solid #176694;
    border-bottom: 3px solid #ff6b6b;
    border-left: 3px solid #ffd93d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


/* Estilos para inputs con números grandes y responsivos */
#formu .css-input {
	padding: 8px 12px;
	font-size: 2rem;
	/*! font-weight: bold; */
	border-width: 2px;
	border-color: #353535;
	background-color: #eee;
	color: #0d004a;
	border-style: solid;
	border-radius: 8px;
	box-shadow: 0px 0px 8px rgba(66,66,66,.75);
	text-align: right !important;
	height: 60px;
	min-height: 60px;
	width: 98%;
	max-width: 100%;
	box-sizing: border-box;
	transition: all 0.3s ease;
	margin-left: 13px;
}

#formu .css-input:focus {
	outline: none;
	border-color: #272727;
	box-shadow: 0px 0px 12px rgba(66,66,66,.75);
	transform: scale(1.02);
}

/* Responsividad para pantallas medianas */
@media screen and (max-width: 768px) {
	#formu .css-input {
		font-size: 2rem;
		height: 65px;
		min-height: 55px;
		padding: 6px 10px;
	}
}

/* Responsividad para pantallas pequeñas */
@media screen and (max-width: 480px) {
	#formu .css-input {
		font-size: 1.8rem;
		height: 60px;
		min-height: 50px;
		padding: 5px 8px;
	}
}

/* Responsividad para pantallas muy pequeñas */
@media screen and (max-width: 320px) {
	#formu .css-input {
		font-size: 1.2rem;
		height: 45px;
		min-height: 45px;
		padding: 4px 6px;
	}
}

#speed-slider{width:100%;height:6px;border-radius:3px;background:#e1e5e9;outline:none;cursor:pointer;}