@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Meow+Script&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fredoka:wght@300..700&family=Meow+Script&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');
/* font-family: "Bebas Neue", sans-serif; */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

.dropdown-item-title {
    white-space: nowrap;
    /* Evita que el texto se divida en varias líneas */
    overflow: hidden;
    /* Oculta el texto que desborda el contenedor */
    text-overflow: ellipsis;
    /* Añade puntos suspensivos (...) al final del texto cuando este es truncado */
    max-width: 200px;
    /* Ajusta el ancho máximo según sea necesario */
}

.media-body {
    max-width: 200px;
    /* Asegúrate de que el contenedor tenga un ancho máximo */
}

img.img-size-50 {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url(jpg/productos.jpg) center top/cover no-repeat;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.dios {
    display: grid;
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto;


}


.card-custom {
    height: 100%;
    margin-bottom: 10px;
    background-color: #001942;

}


.col-lg-4,
.col-md-6,
.col-sm-12 {
    padding-bottom: 10px;
}

.card-custom .card-title {

    color: #ffffff;
    font-size: 25px;
    margin-bottom: 10px;
    line-height: 1.1;
}

.card-title {
    text-align: justify;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.2em * 3);
    /* Altura máxima dependiendo del número de líneas */
    line-height: 1em;
    /* Asegura que la altura de línea sea consistente */
    padding-bottom: 2px;

}

.card-title strong {

    font-style: normal;
    font-family: "Poppins", sans-serif;
}


.card-text {

    font-size: 15px;
    color: #bfbfbf;

}

card-img {
    width: 50px;
    height: 50px;
}

.card-price {
    text-align: center;
    font-size: 15px;
    color: #ffffff;

}

/* style.css */
table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
}

table.dataTable thead th,
table.dataTable tbody td {
    border-radius: 10px;
    /* Ajusta el valor según tus necesidades */
    overflow: hidden;
}

table.dataTable tbody tr:first-child td:first-child {
    border-top-left-radius: 10px;
}

table.dataTable tbody tr:first-child td:last-child {
    border-top-right-radius: 10px;
}

table.dataTable tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

table.dataTable tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}



h4 {
    font-size: 25px;
}

.menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}


.menu .navbar ul li {
    position: relative;
    float: left;


}

.menu .navbar ul li a {
    font-size: 18px;
    padding: 20px;
    color: #ffffff;
    display: block;
    text-decoration: none;


}


.menu .navbar ul li a:hover {
    color: #cf2d3a;
}

#menu {
    display: none;
}

.menu-icono {
    width: 25px;
}

.menu label {
    cursor: pointer;
    display: none;
}



.tamano {
    font-family: 'Bebas Neue';
    letter-spacing: 0px;
    color: #cf2d3a;
    font-size: 12px;
}

h3 {
    font-style: normal;
    font-family: "Lexend Deca", sans-serif;
    font-weight: 700;
    color: #001942;
    font-size: 35px;
}



.header-txt img {
    width: 900px;
    display: block;
    margin: 0 auto;
}

.header-txt span {
    font-size: 25px;
    align-content: center;
}

.header-txt p {
    color: #070707;
    padding: 0 250px;
    margin: 8px 0;
    text-align: center;
    text-transform: uppercase;
}

.btn-1 {
    display: inline-block;
    padding: 11px 25px;
    background-color: #D82E37;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 20px;
    font-family: 'Bebas Neue', cursive;
    margin: 25px 0;
    border: 0;
}

.welcome {

    background-image: url(jpg/fondo.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


.welcome-2 {
    width: 50%;
    padding: 150px 100px 150px 90px;

}

h2 {

    line-height: 40px;
    color: #ffffff;
    text-transform: uppercase;
    font-family: 'Bebas Neue', cursive;
    margin-bottom: 20px;
}

p {
    font-size: 20px;
    color: #AFAFAF;
    text-align: justify;

}

.b1 {
    color: #cf2d3a;
}


.services {
    padding: 0px 0;
    text-align: center;
    background-image: url(jpg/fondo\ .jpg);
    display: flex;

}

.video {
    width: 50%;
    height: 450px;
}


.services-txt {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
}

hr {
    border: 1px solid #cf2d3a;
    width: 80px;
}

.services-txt p {
    padding: 10px 15px;
    font-size: 13px;

}

.services-group {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.services-1 {
    background-color: #070707;
    padding: 35px 25px;
    margin: 0 10px;
    border-radius: 15px;
    max-width: 400px;
}

.services-1 img {
    width: 80px;
    margin-bottom: 15px;

}



.services-1 a {
    color: #cf2d3a;
    font-size: 16px;
}

.prices {
    display: flex;
    height: 855px;
    width: 100%;
}

.prices-1 {
    width: 50%;
    padding: 150px 250px 150px 100px;
    background-color: #191919;
}

table {
    margin: 50px 0;
    width: 100%;
    text-align: center;
    border-collapse: collapse;

}

.btn-1:hover {
    background-color: #b4272e;
}

.header-dir {
    display: flex;
    justify-content: space-between;
    text-align: justify;
    margin: 30px 100px 0px 100px;
}

.linea {
    border-bottom: 2px solid #cf2d3a;
    /* 2px de grosor, estilo sólido, */
    width: 90%;
    /* Opcional: define el ancho de la línea */
    margin: 20px 0;
    /* Espacio arriba y abajo de la línea */
    align-content: center;
    margin-left: auto;
    margin-right: auto;
}


.dir p {
    font-size: 20px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-info {
    display: flex;
    justify-content: space-between;

}

.footer-title {
    padding-left: 5%;

}

.iconos {
    display: flex;
    gap: 25px;
    /* Espacio entre iconos */
    margin-top: 10px;
    padding-right: 5%;
}

.iconos a {
    color: #ffffff;
    /* Color del icono */
    font-size: 30px;
    /* Iconos más grandes */
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    /* Tamaño del círculo aumentado */
    height: 60px;
    border-radius: 50%;
    background: transparent;
    /* Fondo transparente */
    border: 2px solid #ffffff;
    /* Borde rojo (ajusta el color) */
    transition: all 0.3s ease;
}

.iconos a:hover {
    background-color: #cf2d3a;
    /* Color al pasar el mouse */
}

.footer-txt {
    padding: 10px;
    background-color: #0c132e;
}

.fiat {
    font-size: 50px;
}

.footer-txt h1,
h2 {
    letter-spacing: 5px;
    font-family: 'Bebas Neue', cursive;
    color: #ffffff;
}

.footer-txt h3,
h4 {
    letter-spacing: 5px;
    font-family: 'Bebas Neue', cursive;
    color: #cf2d3a;
    font-weight: 500;
}

.derechos {
    text-align: center;
    font-size: 15px;
    margin-top: 0;
}

.envio {
    color: white;
}

/* Agrega esto al final de tu archivo tienda.css */

/* Contenedor principal con márgenes */
.main-content-container {
    padding: 20px;
    /* Margen lateral del 5% y 20px arriba/abajo */
    max-width: 1600px;
    /* Ancho máximo para pantallas muy grandes */
    margin: 0 auto;
    /* Centrar el contenido */
}

/* Filtros sticky mejorados */
.filtros-sticky-container {
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    /* Altura del viewport menos el padding */
    overflow-y: auto;
    padding-right: 15px;
}

/* Mejoras para el contenedor de productos */
.col-md-9 {
    padding-left: 20px;
    /* Espacio entre filtros y productos */
}

/* Mejora el scroll en los filtros */
.filtros-card {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Personaliza la barra de scroll */
.filtros-card::-webkit-scrollbar {
    width: 5px;
}

.filtros-card::-webkit-scrollbar-thumb {
    background-color: #cf2d3a;
    border-radius: 10px;
}

/* Layout principal */
.productos-container {
    display: flex;
    gap: 20px;
}

.filtros-column {
    flex: 0 0 300px;
    /* Ancho fijo para filtros */
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
}

.productos-column {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}



/* Estilos para las tarjetas de producto */
.card-producto {
    background-color: #001942;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
}

.card-producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card-body {
    padding: 20px;
    color: white;
}

/* Contenedor de filtros sticky */
.filtros-sticky-container {
    position: sticky;
    top: 20px;
    /* Ajusta según la altura de tu header */
    height: calc(100vh - 40px);
    overflow-y: auto;
    padding-right: 15px;
}

/* Tarjeta de filtros */
.filtros-card {
    background-color: #001942;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Scroll personalizado para los filtros */
.filtros-card::-webkit-scrollbar {
    width: 5px;
}

.filtros-card::-webkit-scrollbar-thumb {
    background-color: #cf2d3a;
    border-radius: 10px;
}


/* Mejoras para las tarjetas de producto */
.card-custom {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Reemplaza las reglas existentes para las columnas de productos con esto: */


/* Asegúrate que las tarjetas ocupen todo el espacio */
.card-custom {
    height: 100%;
    margin-bottom: 0;
    /* Eliminamos el margen inferior para mejor alineación */
}


/* Añade esto al final de tu archivo tienda.css */

/* Diseño para móviles (menos de 768px) */
@media (max-width: 767.98px) {
    .main-content-container {
        padding: 0;
        /* Eliminamos el padding para aprovechar todo el espacio */
        display: flex;
        flex-direction: column;
        height: 100vh;
        /* Ocupa toda la altura de la pantalla */
    }

    .row.g-0 {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* Filtros en la parte superior */
    .col-md-3 {
        width: 100%;
        position: sticky;
        top: 0;
        z-index: 1000;
        
        padding: 10px;
    }

    /* Contenedor de filtros */
    .filtros-sticky-container {
        position: relative;
        height: auto;
        max-height: 300px;
        /* Altura máxima para los filtros */
        overflow-y: auto;
    }

    /* Productos en la parte inferior con scroll */
    .col-md-9 {
        width: 100%;
        flex: 1;
        overflow-y: auto;
        padding: 10px;
    }

    /* Ajustes para las tarjetas de producto */
    .col-sm-12 {
        padding: 5px;
    }

    .card-custom {
        margin-bottom: 15px;
    }

    /* Asegurar que los filtros no sean demasiado altos */
    .filtros-card {
        max-height: 280px;
    }

    /* Ocultar el margen inferior en móviles */
    .card-custom {
        margin-bottom: 0;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
    .filtros-card {
        padding: 10px;
    }

    .card-img-top {
        height: 180px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-text {
        font-size: 14px;
    }
}

.card.card-solid {
    max-width: 1000px;
    margin: 10px auto;
}

.product-image-container {
    max-width: 450px;
    margin: 0 auto;
}

.product-image {
    max-width: 100%;
    height: 250px;
    object-fit: contain;
}

.product-image-thumbs {
    justify-content: center;
    margin-top: 10px;
}

.product-image-thumbs img {
    width: 45px;
    height: 35px;
    object-fit: cover;
    margin-right: 5px;
}

.datos {
    font-size: 15px;
    margin-bottom: 6px;
    color: black;
}

/* Ajustes específicos para el detalle del producto en móviles */
@media (max-width: 767.98px) {
    .card-body .row {
        display: flex;
        flex-direction: column;
    }

    .col-12.col-sm-6:first-child {
        order: 1;
        /* La imagen va primero */
    }

    .col-12.col-sm-6:last-child {
        order: 2;
        /* La descripción va después */
        margin-top: 20px;
    }

    .product-image {
        height: 200px;
        /* Altura más adecuada para móviles */
    }

    .product-image-container {
        max-width: 100%;
        /* Ocupa todo el ancho */
    }

    /* Ajustes para el contenido de la descripción */
    .col-12.col-sm-6:last-child {
        padding: 0 15px;
    }

    h3.my-3 {
        font-size: 24px;
        /* Tamaño más adecuado para móviles */
    }

    .datos {
        font-size: 14px;
    }

    /* Ajustar el botón de agregar al carrito */
    .btn-lg {
        width: 100%;
    }

    .card.card-solid {
        max-width: 1000px;
        margin: 20px 30px auto;
    }
}

/* Ajustes para el menú en móviles */
@media (max-width: 767.98px) {

    /* Menú principal */
    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        margin: 0.2rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 14px;
    }

    /* Dropdowns */
    .dropdown-menu {
        position: absolute;
        right: 0;
        left: auto;
    }

    /* Iconos del carrito y usuario */
    .fa-cart-plus,
    .fa-user {
        font-size: 1.2rem;
    }

    /* Badge del carrito */
    .badge-danger {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }

    /* Ajustes para la sección de contacto */
    .footer-txt {
        padding: 15px 10px;
    }

    .header-dir {
        flex-direction: column;
        margin: 15px 0;
        text-align: center;
    }

    .dir {
        margin-bottom: 20px;
    }

    .dir p {
        font-size: 16px;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        align-items: center;
    }

    .footer-title {
        padding-left: 0;
        text-align: center;
        margin-bottom: 15px;
    }

    .iconos {
        padding-right: 0;
        justify-content: center;
        margin-bottom: 15px;
    }

    .iconos a {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .fiat {
        font-size: 40px;
    }

    .derechos {
        font-size: 13px;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas (menos de 480px) */
@media (max-width: 480px) {
    .navbar-nav {
        justify-content: space-between;
        width: 100%;
    }

    .nav-item {
        margin: 0.1rem;
    }

    .nav-link {
        padding: 0.3rem 0.5rem;
        font-size: 12px;
    }

    .dropdown-menu {
        min-width: 200px;
    }

    /* Contacto */
    .dir p {
        font-size: 14px;
    }

    .iconos a {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .fiat {
        font-size: 32px;
    }
}

/* ----------------------------
   DISEÑO PARA MÓVILES (VERTICAL)
---------------------------- */
@media (max-width: 767.98px) {
    .main-content-container {
        display: flex;
        flex-direction: column;
        padding: 0 10px;
    }

    /* Filtros en la parte superior con scroll */
    .col-md-3 {
    position: relative !important;
      
     
    }

    .row.g-0 {
        display: flex;
        flex-direction: column;
    }

    /* Productos debajo con su propio scroll */
    .col-md-9 {
        width: 100%;
        padding-left: 0 !important;

    }

    filtros-sticky-container {
        position: relative !important;
        height: auto !important;
       
    }

    /* Ajustes para las tarjetas de producto */
    .col-sm-12 {
        padding: 5px;
    }

    .card-custom {
        margin-bottom: 15px;
    }

    /* Estilo para los filtros */
    .filtros-card {
        padding: 15px !important;
        background-color: #001942;
        border-radius: 8px;
        height: 160px;
    }

    .filtros-card h4 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
        color: white;
    }

    /* Asegurar que los select no sean demasiado anchos */
    .form-select,
    .input-group input {
        width: 100% !important;
    }
}

@media (min-width: 768px) {  
    /* Conserva el sticky original */  
    .filtros-sticky-container {  
        position: sticky;  
        top: 20px;  
        height: calc(100vh - 40px);  
        overflow-y: auto;  
    }  
}  