﻿body {
}
.colorsList ul {
    list-style-type: none;
}

.colorsList li {
    display: inline-block;
}

.colorsList input[type="radio"][id^="body_rblColores_"] {
    display: none;
}

.colorsList label {
    border: 1px solid #fff;
    padding: 10px;
    display: block;
    position: relative;
    margin: 10px;
    cursor: pointer;
}

    .colorsList label:before {
        background-color: white;
        color: white;
        content: " ";
        display: block;
        border-radius: 50%;
        border: 1px solid #acc825;
        position: absolute;
        width: 25px;
        height: 25px;
        text-align: center;
        line-height: 28px;
        transition-duration: 0.4s;
        transform: scale(0);
    }

    .colorsList label img {
        height: 200px;
        transition-duration: 0.2s;
        transform-origin: 50% 50%;
    }


.colorsList :checked + label:before {
    content: "✓";
    background-color: #acc825;
    transform: scale(1);
    z-index: 1000;
}

.colorsList :checked + label img {
    transform: scale(0.9);
    /*box-shadow: 0 0 5px #333;*/
    z-index: -1;
}
.switch_1 input[type="checkbox"] {
    font-size: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 3.5em;
    height: 1.5em;
    background: #ddd;
    border-radius: 3em;
    position: relative;
    cursor: pointer;
    outline: none;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.switch_1 [type="checkbox"]:checked {
    background: #acc545;
}

.switch_1 [type="checkbox"]:after {
    position: absolute;
    content: "";
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background: #fff;
    -webkit-box-shadow: 0 0 .25em rgba(0,0,0,.3);
    box-shadow: 0 0 .25em rgba(0,0,0,.3);
    -webkit-transform: scale(.7);
    transform: scale(.7);
    left: 0;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.switch_1 [type="checkbox"]:checked:after {
    left: calc(100% - 1.5em);
}
.switch_1 label {
    font-size: 1.2em;
    margin-left: 10px;
    line-height: 1.5em;
}


/*.img_prev {
    display: flex;
    margin: 0 auto;
    min-width: 250px;
    min-height: 250px;
    max-width: 250px;
    max-height: 250px;
    padding: 5px;*/
    /*min-height:400px;*/
    /*border: 4px dotted rgba(0,0,0,0.2);
    justify-content: center;
}
    .img_prev img {
        max-width: 240px;
        max-height: 240px;
        cursor: pointer;
    }*/

.img_prev {
    position: relative; /* Contenedor relativo */
    width: 300px; /* Ancho fijo deseado */
    height: 240px; /* Altura fija deseada */
    margin: 0 auto; /* Centrar horizontalmente */
    background-color: #f5f5f5; /* Opcional: color de fondo cuando no hay imagen */
    display: flex;
    align-items: center; /* Centrar imagen verticalmente */
    justify-content: center; /* Centrar imagen horizontalmente */
    border: 1px solid #ddd; /* Opcional: borde del contenedor */
    transition: height 0.3s; /* transición suave al cambiar la altura */
}

    .img_prev img {
        max-width: 100%;
        max-height: 100%;
        display: block;
    }

    .img_prev button {
        position: absolute; /* Posición absoluta respecto al contenedor */
        top: 5px;
        right: 5px;
        z-index: 10;
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

.img_guia {
    position: relative;
    width: auto;
    height: auto; /* altura por defecto cuando hay imagen */
    max-height: 240px; /* altura por defecto cuando hay imagen */
    margin: 0 auto;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    transition: height 0.3s; /* transición suave al cambiar la altura */
}

    .img_guia img {
        max-width: 100%;
        display: block;
    }

.hover-zoom {
    transition: transform 0.3s ease-in-out;
}

    .hover-zoom:hover {
        transform: scale(1.05);
    }




/* CSS para que el dropdown chosen se vea igual a los campos de bootstrap*/
/* Estilos para que Chosen se vea como un form-control de Bootstrap */
.chosen-container .chosen-single {
    background-color: #fff;
    border: 1px solid #d1d3e2;
    border-radius: 0.25rem;
    height: calc(1.5em + 0.75rem + 2px) !important;
    line-height: calc(1.5em + 0.75rem + 2px) !important;
    padding: 0.375rem 0.75rem;
    font-size: .8rem;
    font-weight: 400;
    line-height: 1.5;
    color: #6c757d;
}

    .chosen-container .chosen-single div b {
        background-image: none !important;
    }

.chosen-container .chosen-drop {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: .8rem;
}

.chosen-container .chosen-search input[type=text] {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: .8rem;
    box-shadow: none;
}

.chosen-container-active .chosen-single {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Para el focus */
}

.chosen-container .chosen-results li {
    padding: 0.375rem 0.75rem;
}

    .chosen-container .chosen-results li.highlighted {
        background-color: #e9ecef;
    }



.border-left-primary {
    border-left: .25rem solid var(--primary) !important
}

.border-bottom-primary {
    border-bottom: .25rem solid var(--primary) !important
}

.border-left-secondary {
    border-left: .25rem solid var(--secondary) !important
}

.border-bottom-secondary {
    border-bottom: .25rem solid var(--secondary) !important
}

.border-left-success {
    border-left: .25rem solid #1cc88a !important
}

.border-bottom-success {
    border-bottom: .25rem solid #1cc88a !important
}

.border-left-info {
    border-left: .25rem solid #36b9cc !important
}

.border-bottom-info {
    border-bottom: .25rem solid #36b9cc !important
}

.border-left-warning {
    border-left: .25rem solid #f6c23e !important
}

.border-bottom-warning {
    border-bottom: .25rem solid #f6c23e !important
}

.border-left-danger {
    border-left: .25rem solid #e74a3b !important
}

.border-bottom-danger {
    border-bottom: .25rem solid #e74a3b !important
}

.border-left-light {
    border-left: .25rem solid #f8f9fc !important
}

.border-bottom-light {
    border-bottom: .25rem solid #f8f9fc !important
}

.border-left-dark {
    border-left: .25rem solid #5a5c69 !important
}

.border-bottom-dark {
    border-bottom: .25rem solid #5a5c69 !important
}

.text-gray-100 {
    color: #f8f9fc !important
}

.text-gray-200 {
    color: #eaecf4 !important
}

.text-gray-300 {
    color: #dddfeb !important
}

.text-gray-400 {
    color: #d1d3e2 !important
}

.text-gray-500 {
    color: #b7b9cc !important
}

.text-gray-600 {
    color: #858796 !important
}

.text-gray-700 {
    color: #6e707e !important
}

.text-gray-800 {
    color: #5a5c69 !important
}

.text-gray-900 {
    color: #3a3b45 !important
}

/* ── Modal overlay (paneles server-side que actúan como modal) ── */
.wm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.wm-modal-overlay .modal-dialog {
    margin: 0;
    max-height: 90vh;
    overflow-y: auto;
}

.btn-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1050; /* por encima del contenido */
    transition: all 0.3s ease;
}

    .btn-flotante:hover {
        transform: scale(1.1);
        background-color: #0069d9; /* tono más oscuro al pasar el mouse */
    }

/* ── Progress overlay (UpdateProgress) ── */
.fondoprogress {
    background: rgba(45, 45, 45, .9);
    z-index: 10000000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.posFix {
    position: fixed;
    transform: translateZ(0);
    z-index: 10000;
}

.dispTable {
    display: table;
}

.dispCell {
    display: table-cell;
}

.centro {
    text-align: center;
}

.medio {
    vertical-align: middle;
}

.cienAlto {
    height: 100%;
}

.cienAncho {
    width: 100%;
}

.font1 {
    color: #fff;
}

.font-1-5 {
    font-size: 1.5em;
}

.logo250 {
    max-width: 250px;
}

.parpadea {
    -webkit-animation: parpadeo 1s infinite;
    animation: parpadeo 1s infinite;
}

@-webkit-keyframes parpadeo {
    0%   { opacity: 1.0; }
    50%  { opacity: 0.0; }
    100% { opacity: 1.0; }
}

@keyframes parpadeo {
    0%   { opacity: 1.0; }
    50%  { opacity: 0.0; }
    100% { opacity: 1.0; }
}

/* ===== Botones Cotizar / Venta ===== */
.btn-cotizacion {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
    transition: all 0.2s ease;
}
.btn-cotizacion:hover,
.btn-cotizacion:focus {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 4px 12px rgba(37,99,235,0.4);
    transform: translateY(-1px);
    color: #fff;
}

.btn-venta {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(5,150,105,0.3);
    transition: all 0.2s ease;
}
.btn-venta:hover,
.btn-venta:focus {
    background: linear-gradient(135deg, #047857, #065f46);
    box-shadow: 0 4px 12px rgba(5,150,105,0.4);
    transform: translateY(-1px);
    color: #fff;
}

/* Alerta PDF generado */
.pdf-generated-alert {
    animation: fadeInDown 0.4s ease;
    border-radius: 8px;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Login Page ===== */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    background: #f0f2f5;
}

/* Panel izquierdo decorativo */
.login-brand-panel {
    flex: 0 0 42%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.login-brand-content {
    text-align: center;
    color: #fff;
    z-index: 1;
    padding: 2rem;
    animation: fadeInUp 0.6s ease;
}

.login-brand-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #acc825;
}

.login-brand-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.login-brand-content p {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 300;
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Panel derecho formulario */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fff;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-logo-img {
    max-width: 180px;
    height: auto;
}

.login-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-size: 1.6rem;
}

.login-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
    font-weight: 400;
}

.login-field-group {
    margin-bottom: 1.25rem;
}

.login-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-input {
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
    background: #f8fafc !important;
}

.login-input:focus {
    border-color: #acc825 !important;
    box-shadow: 0 0 0 3px rgba(172, 200, 37, 0.18) !important;
    background: #fff !important;
}

.login-input::placeholder {
    color: #cbd5e1;
}

/* Botón login */
.btn-login {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    color: #acc825;
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.btn-login:hover,
.btn-login:focus {
    background: linear-gradient(135deg, #acc825, #96b01e);
    color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(172, 200, 37, 0.4);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 2rem;
}

.login-divider {
    border-top: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.login-version {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.login-credits {
    display: block;
    font-size: 0.75rem;
    color: #b0b8c4;
}

.login-credits-link {
    color: #acc825;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.login-credits-link:hover {
    color: #96b01e;
    text-decoration: underline;
}

/* Animación entrada */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive: en móvil el panel izquierdo se oculta (d-none d-md-flex) */
@media (max-width: 767.98px) {
    .login-form-panel {
        background: linear-gradient(180deg, #f0f4ff 0%, #fff 30%);
    }
    .login-form-container {
        max-width: 360px;
    }
}
