

html {
    background-color: hsl(0, 0%, 7%);
    background-image: url("./img/FONDO2_Mobile.webp"); /* Imagen de móvil */
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-attachment: fixed;
}

/* 2. ESTILO PARA ESCRITORIO (Pantallas mayores a 1024px) */
@media screen and (min-width: 1024px) {
    html {
        background-image: url("./img/FONDO2.webp"); /* Imagen de escritorio */
        background-size: cover; /* En escritorio suele verse mejor 'cover' */
    }
}

.contenedor-botones {
    display: flex;
    justify-content: flex-end; 
    gap: 10px;
    /* Eliminamos el width: 100% para que no empuje hasta el final */
    width: auto; 
    margin-top: 0; /* Ajustamos para que se alinee con los inputs */
    align-items: center;
}

@media screen and (min-width: 985px) {
    .contenedor-botones {
        display: inline-flex; /* Se comporta como bloque en línea */
        margin-left: 10px;    /* Separa los botones del último input */
        vertical-align: middle;
    }
}


#cardImagen {
    border-radius: 1em;
    box-shadow: 0px, 0px, 20px,10px,#fff;
}

#UpdateIN {
   /* Estilos de posición */   
    text-align: center; /* Mejor centrado si es una cápsula */
    display: inline-block; /* Para que el fondo solo cubra el texto */
    float: right; /* Lo mantiene a la derecha como lo tenías */

    /* Estilos de la Cápsula Esmerilada */
    background: rgba(0, 0, 0, 0.4); /* Fondo oscuro translúcido */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 50px; /* Forma de cápsula */
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Texto */
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);

   
}




/* --- CONTENEDOR PRINCIPAL (Glassmorphism) --- */
.RespuestaNumParte {
    display: flex;
    flex-direction: column;
    gap: 20px;
    
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    
    padding: 2em;
    margin: 20px auto;
    width: 100%;
}

/* --- SECCIÓN DE BOTONES --- */


/* --- DATOS TÉCNICOS --- */
.InformacionNParte {
    display: flex;
    flex-direction: column;
    /* Ajuste de espacio para que la imagen sea más grande */
    flex: 0 0 40%; 
}

.Datos {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    flex-grow: 1;
}

/* --- DATOS TÉCNICOS EN MÓVIL (Frente a frente y alineado a la izquierda) --- */
.Datos .row {
    display: flex !important;
    flex-wrap: nowrap !important; /* Mantiene título y dato en la misma línea */
    align-items: flex-start;      /* Alinea arriba si el texto es largo */
    margin-bottom: 12px;          /* Espacio entre filas */
    border: none !important;      /* QUITAMOS LAS LÍNEAS */
    padding: 0;
}

.label {
    flex: 0 0 45%;               /* El título ocupa el 45% del ancho */
    color: #111;
    font-weight: 850 !important; /* NEGRITA FUERTE recuperada */
    text-align: left !important; /* ALINEADO A LA IZQUIERDA */
    font-size: 1rem;
    margin: 0;
    text-transform: uppercase;   /* Estilo profesional */
    letter-spacing: 0.5px;
}

/* Los valores de los datos */
#cardCilindros, #cardLitros, #cardMotor, #cardDiametroCilindro {
    flex: 0 0 55%;               /* El dato ocupa el resto (55%) */
    text-align: left !important; /* ALINEADO A LA IZQUIERDA también */
    font-size: 1.1rem;
    font-weight: 400;            /* Dato más ligero para que resalte el título */
    color: #333;
    padding-left: 10px;          /* Pequeña separación del título */
}

/* Título un poco más pequeño como pediste */
#cardTitle {
    font-size: 120%; 
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    border: none;
}

/* --- IMAGEN DEL PRODUCTO (Más Grande) --- */
.ImagenProducto {
    flex: 0 1 65%; /* Permitimos encogerse (flex-shrink: 1) si es necesario */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Aire interno para el degradado */
}

.ImagenProducto img {
   width: 95%; 
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 15px;
    
    /* Sombra blanca tipo "Glow" para integrar con el fondo */
    box-shadow: 0 0 40px 20px rgba(255, 255, 255, 0.5);
    
    /* Mantenemos el drop-shadow para dar profundidad al empaque */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    
    max-width: 100%;
}

/* --- DISEÑO PARA PANTALLA GRANDE (Desktop) --- */
@media (min-width: 992px) {
    .RespuestaNumParte {
        flex-direction: row;
        align-items: stretch;
        min-height: 70vh;
        display: flex;
    }

    .InformacionNParte {
        flex: 0 1 35%; /* Bajamos a 35% y permitimos encogerse */
        padding-right: 30px;
        border-right: 1px solid rgba(255,255,255,0.2);
    }

    .ImagenProducto {
        flex: 0 1 65%; /* Permitimos encogerse */
        padding-left: 20px;
    }
}

/* Ajuste para móvil */
@media (max-width: 991px) {
    .RespuestaNumParte {
        min-height: auto; 
        padding: 20px;
    }
    .label {
        text-align: left !important;
    }

    .aplica {
        flex-direction: column !important; /* Fuerza el orden vertical */
        flex-wrap: wrap; 
        gap: 10px; /* Espacio entre cada botón */
        align-items: center;
        margin-bottom: 30px;
    }

    .btnresultado {
        width: 100%;       /* Los botones ocupan todo el ancho disponible */
        max-width: 95%;  /* Pero con un límite para que no se vean gigantes */
        flex: none;        /* Desactivamos el flex:1 que los estiraba en horizontal */
        border-radius: 10px; /* Bordes redondeados en todos los lados para móvil */
        padding: 12px;     /* Un poco más de aire para tocar con el dedo */
        font-size: 0.95rem;
    }

    /* Opcional: Si quieres que el subrayado aparezca en todo el borde en lugar de solo abajo en móvil */
    .btnresultado:hover {
        border-radius: 10px !important;
        transform: scale(1.02); /* Un ligero efecto de pulso al tocar */
    }

}

@media (max-width: 768px) {
    .label {
        font-size: 0.8rem !important;
    }
    .Datos .row {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* --- CONTENEDOR DE BOTONES (Forzar una sola línea) --- */
.aplica {
    display: flex;
    justify-content: center; /* Centrado horizontal */
   align-items: stretch;
    flex-wrap: nowrap;       /* CRÍTICO: No permite que se bajen de línea */
    gap: 0;                  /* Quitamos el gap para que las pestañas se toquen */
    width: 100%;
  
}


/* --- ESTILO DE LOS BOTONES --- */
.btnresultado {
    flex: 1;                 /* Hace que todos midan lo mismo y llenen el espacio */
    max-width: 95%;        /* Pero con un límite para que no se estiren de más */
    background: rgba(84, 101, 230, 0.24) !important; /* Fondo azul muy muy suave */
    color: #283593;          /* Texto Azul Fuerte */
    border: none;
    border-bottom: 4px solid transparent; 
    border-radius: 1em; /* Suavizamos las esquinas superiores */
    font-weight: 600;        /* Más contraste en el texto */
    font-size: 1rem;
    padding: 15px 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

/* --- EFECTO HOVER (Contraste Azul) --- */
.btnresultado:hover {
    background-color: #283593 !important; /* Fondo azul fuerte al pasar el mouse */
    color: #ffffff !important;            /* Texto blanco para máximo contraste */
    border-bottom: 4px solid #283593 !important; /* Línea de resalte naranja/oro */
    box-shadow: 0px 4px 15px rgba(40, 53, 147, 0.3) !important;
    transform: translateY(-2px);
}

/* --- BOTÓN ACTIVO / SELECCIONADO (Opcional) --- */
/* Si quieres que uno se vea resaltado por defecto puedes usar esta lógica */
.btnresultado:active, .btnresultado:focus {
    background-color: #1a237e !important;
    color: white !important;
    border-bottom-color: #283593 !important;
}

/* --- CORRECCIÓN AUTOCOMPLETE (jQuery UI) --- */
.ui-autocomplete {
    background: white !important; /* Fondo blanco sólido para que no sea transparente */
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    z-index: 9999 !important; /* Para que aparezca por encima de TODO */
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5px 0;
}

/* Estilo para cada ítem de la lista */
.ui-menu-item {
    padding: 8px 15px;
    list-style: none;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-family: sans-serif;
    color: #333;
}

/* Color cuando pasas el mouse o seleccionas con flechas */
.ui-state-active, .ui-menu-item:hover {
    background-color: #283593 !important; /* El azul que estamos usando */
    color: white !important;
    margin: 0 !important;
    border: none !important;
}

/* Quitar los puntitos de lista que a veces salen en móvil */
.ui-helper-hidden-accessible {
    display: none !important;
}

/* En pantallas pequeñas (móviles) ocultamos la palabra "Página" */
.d-none {
  display: none;
}

/* En pantallas medianas o grandes (min-width: 768px) la volvemos a mostrar */
@media (min-width: 768px) {
  .d-md-inline {
    display: inline;
  }
}






.tituloMod {
    background: rgba(237, 50, 55, 0.85);
    color: white;

}

.spamear button {
    align-self: flex-end;
    margin-right: 2px;
    display: block;
    margin: 10px;
    width: 150px;
}

.spamear button.close {
    width: 60px !important;

}

.contmod,
.shwaplica {
    margin-right: -20px;
    margin-top: 10px;
    background-color: #2e7d32 !important;
    color: white;
    border: none;
    box-shadow: 1px 3px 5px 1px #283593 !important;
    font-weight: 600;


}


@-moz-keyframes parpadeo {
    0% {
        opacity: 1.0;
        color: white;
    }

    50% {
        opacity: 0.0;
        color: black;
    }

    100% {
        opacity: 1.0;
        color: white;
    }
}

@-webkit-keyframes parpadeo {
    0% {
        opacity: 1.0;
        color: white;
    }

    50% {
        opacity: 0.0;
        color: black;
    }

    100% {
        opacity: 1.0;
        color: white;
    }
}

@keyframes parpadeo {
    0% {
        opacity: 1.0;
        color: white;
    }

    50% {
        opacity: 0.0;
        color: black;
    }

    100% {
        opacity: 1.0;
        color: white;
    }
}

.aplica button {
    float: right;
    margin: .5em;
}
.aplica a {
    float: right;
    margin: .5em;
}
a#verINFO {
    width: auto;
    float: right;
    position: absolute;
    text-decoration: none;
    top: 8px;
    right: 285px;
    cursor: pointer;
    color: #fff;
}

.showapp
 {
    background-color: #2e7d32 !important;
    color: white;
    box-shadow: 1px 3px 5px 1px #283593 !important;

    border-bottom: 1em;
    font-weight: 600;
}

.aplica 
.showapp:hover,
.contmod:hover,
.shwaplica:hover {
    background-color: #2e7d32 !important;
    box-shadow: 1px 3px 5px 1px #283593 !important;
    transition: all .5s ease;
    color: white;
}

.aplica .showapp {
    float: right;
}

.tituloMod {
    text-align: center;
    font-size: 17px;
}

.tituloMod h5 {
    font-size: 18px;
}

#contMDl {
    width: 100%;

}

#InfoMDL {
   margin-top: 15px;
    height: auto;
    width: 42%;
    float: left;
}

#infoMDL {
    font-size: 16px;
}

#imagenMDL {
    width: 55%;   
    min-height: 250px !important;
    float: right;
}

#IMGTRASN1 {
    opacity: .8 !important;

}

#IMGTRASN1 {
    z-index: 2;
    position: absolute;
    top: 1px;
    right: 1px;
    width: 55%;
    height: 99%;
    opacity: 0 !important;
    cursor: pointer !important;
}#IMGTRASN1:hover {
    transition: .2s;
    border-radius: 10px;   
    opacity: .77 !important;
}

.modal-dialog .modal-body div .col-md-3 {
    font-size: 20px;
    min-width: 150px !important;

}


.modal-dialog .modal-body div .col-md-9 {
    max-width: 50% !important;
    font-size: 20px;
}

@media screen and (max-width:985px) {
    #contMDl {
        width: 100%;

    }

    #InfoMDL {
        width: 100%;

    }

    #infoMDL {
        font-size: 16px;
    }

    #imagenMDL {
        width: 100%;
        min-height: 250px;

    }

    #IMGTRASN1 {
        position: absolute;
        top: auto;
        bottom: 1;
        right: 1px;
        width: 100%;
        height: auto;
       /*opacity: 0 !important;
        cursor: pointer !important;*/
    }
}

#imagenMod {
    margin-top: 1em;
    margin-bottom: 1em;
}

.loader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url("./img/load.gif") 50% 40% no-repeat rgb(250, 250, 250);
    opacity: .8;
}

td.sorting_1,
.ref {
    white-space: nowrap !important;
    font-size: 90%;
    font-weight: bold;
}


.table-striped td,
th {

    width: auto;
    height: auto;
    font-size: 16px;

}


.select-wrapper {
    padding-left: 0px;
    overflow: hidden;
}

.PalCve {
    width: 100%;
}

.comDes {
    width: 100%;
}

input,
select {
    border-radius: .4em;
}

.bus-part input {

    padding: 9px 8px;
    width: 100%;
    height: 100%;
    margin-top: 1%;
    margin-bottom: 1%;
    font-size: 20px;

}

.firs {
    max-width: 80px !important;
}




.title_targ {
    padding-top: 0% !important;
    text-align: center;
    font-size: 100%;
}

.title_targ h4 {
    font-size: 250% !important;
}



.btn-new {
    color: white;
    background-color: #0277bd;
    box-shadow: 1px 3px 5px 1px #283593;
}



#contenedor {
    width: 95% !important;
    min-width: 100% !important;
   

}

#cardNumParteP {

    margin-left: auto;
    margin-right: auto;

    max-width: 100%;
}

.logo {
    margin: auto;
    margin-top: .5%;
    margin-bottom: 3px;
    position: relative;
    top: -10px;
    text-align: center;
}




.Filter .form-control input {
    align-items: center;
    width: 80%;
}

body {
    width: 85% ;
    min-width: 85% ;
    margin: auto;
    background-image: none;      /* Quita cualquier imagen */
    background-color: transparent;
     /*background: rgba(237, 50, 55, 0.85);*/
       /*brown;*/
    
    padding: 1em;
    /*box-shadow: 6px 4px 5px 1px rgba(0, 0, 0, .5);
    border-radius: 1em 1em 1em 1em;
    margin-top: 2%
        /*Separacion de body*/

}

.btn-danger {
    box-shadow: 1px 3px 5px 1px #93282A;
}

#tablaCatalogo_wrapper {
    padding: 1em;
    overflow-x: scroll;
    width: 100% !important;

}

.input-groupb {
    width: 100%
}

.input-groupb select {

    font-size: 120%;
    height: 50px;
    margin-top: 10px
}

.btnnew {
    width: auto !important;
    min-width: 200px;
}

#cardImagen {
    width: 100% !important;
}

.nover {
    display: none;
}

.tituloMod h4 {
    font-size: 120%;
    text-align: left;
}


.body-targ h5 {
    padding: 0px;
    width: 100%;
    height: 20px;
    font-size: 160%;
}

.div-tabla {
    margin-top: 2% !important;
    min-width: 100% !important;
    width: auto;
}






















@media screen and (max-width:770px) {

    body{
        min-width: 95%!important;
        width: 100%!important;
        border-radius: 0;
        margin-top: 0;
        margin-bottom: 0;
       
    }
    #cardNumParteP{
        margin-left: 1px;
        margin-right: 1px;
        min-width: 100%;
    }
  /*  #contenedor{
        
    }*/
}






@media screen and (min-width:650px) {
   
    body {
        width: 95% ;
        min-width: 95%;
    }

    .input-groupb select {
        margin-top: 0px
    }

    .contmod,
    .shwaplica {
        margin-right: 5px;
        margin-top: 10px;
        background-color: #2e7d32 !important;
        color: white;
        border: none;
        box-shadow: 1px 3px 5px 1px #283593 !important;
        font-weight: 500;


    }


    #cardNumParteP {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }


    .input-groupb {
        display: inherit;
        width: 100%;
        margin-left: 0px;
        font-size: 100%;
        height: 50px;
    }

    .PalCve {
        width: 50%;

    }

    .comDes {
        width: 50%;

    }



    .bus-part input {
        margin-top: 0%;
        text-align: center;
        font-size: 19px;
    }


    .Filter .form-control input {
        width: 60%;
    }

    .title_targ {
        padding-top: 2%;
        text-align: center;
        font-size: 100%;
        position: relative;
    }

    .body-targ h5 {
        padding: 0px;
        width: 50%;
        font-size: 100%;
    }

    .div-tabla {
        margin-top: 0%;
    }

    .comeback {
        margin-bottom: 10px;
        text-align: center;
        font-size: 0.5em;
        height: 40px;
        position: static;
    }



}

.comeback {
    margin-bottom: 15px;
    text-align: center;
    font-size: 15px;
    height: 40px;
    position: static;
}




















@media screen and (min-width:1170px) {
    body {
        width: 90% ! important;
        min-width: 90% !important;
    }
  

    .contmod,
    .shwaplica {
        margin-right: 10px;
        margin-top: 70px;
        background-color: #2e7d32 !important;
        color: white;
        border: none;
        box-shadow: 1px 3px 5px 1px #283593 !important;
        font-weight: 500;


    }

    #cardNumParteP {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .title_targ {
        padding-top: 3%;
        text-align: center;
        font-size: 85%;
    }

    .body-targ h5 {
        padding: 0px;
        width: 50% !important;

        font-size: 100%;
    }

    .div-tabla {
        margin-top: 0%;
    }

    .comeback {
        margin-bottom: 15px;
        text-align: center;
        font-size: 15px;
        height: 40px;
        position: static;
    }



}

.body-targ h5 {
    padding: 0px;
    width: 60% !important;
    font-size: 160%;
}

.body-targ .col-md-7 {
    width: 40% !important;

    display: inline-block !important;


}

#go {
    margin-right: 2px;
    margin-left: 2px;
}
/*
.opthide {}*/

.col-md {
    width: 80%;
    height: 50%;
}

#galpzs {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
    padding: 2em;
    width: 95%;
    border-radius: .5em;
    /*background: white !important;*/
    display: none;

    background-color: rgba(255, 255, 255, 0.3);  
    /* 2. El truco del esmerilado: desenfoca lo que está DETRÁS */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Soporte para Safari */    
    /* 3. Bordes suaves y un sutil borde blanco para dar relieve */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);    
    /* 4. Sombra suave para dar profundidad */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);    
    /* Relleno para que el contenido no pegue a los bordes */
    padding: 20px;

}

.tituoLink{
    display: flex;             /* Activa el modo flexible */
    justify-content: space-between; /* Empuja los elementos a los extremos */
    align-items: center;
    margin-bottom: -2em;
}

.TituloCat {
    color: white;              /* Color blanco */
    font-family: 'Montserrat', sans-serif; /* Fuente Montserrat */
    text-align: right;         /* Alineación a la derecha */    
    /* Opcionales para que luzca mejor: */
    font-weight: 700;          /* Grosor de la letra (negrita) */
    font-size: 1.5rem;         /* Tamaño del texto */
    margin-right: 20px;        /* Espacio para que no pegue al borde derecho */
    text-transform: uppercase; /* Todo en mayúsculas (estilo catálogo) */
    letter-spacing: 2px;       /* Espaciado entre letras */
    
}

/*
BUTottbottom: 5px;
top0 margin-tmargin-top: -50px;*/
