/********** Template CSS **********/
:root {
    --primary: #FD5D14;
    --secondary: #FDBE33;
    --light: #F4F6F8;
    --dark: #040F28;
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    transition: .5s;
}

.btn::after {
    position: absolute;
    content: "";
    width: 0;
    height: 5px;
    bottom: -1px;
    left: 50%;
    background: var(--primary);
    transition: .5s;
}

.btn.btn-primary::after {
    background: var(--dark);
}

.btn:hover::after,
.btn.active::after {
    width: 50%;
    left: 25%;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    left: 50%;
    bottom: 0;
    margin-left: -22px;
    border-radius: 0;
    z-index: 99;
}

.bg-dark-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.bg-light-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 35px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--light);
    outline: none;
    transition: .5s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 15, 40, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h4 {
        font-size: 18px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.page-header {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(4, 15, 40, .7), rgba(4, 15, 40, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.service-item .service-icon {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
}

.service-item .service-icon i {
    transition: .2s;
}

.service-item:hover .service-icon i {
    font-size: 60px;
}

.portfolio-item {
    margin-bottom: 60px;
}

.portfolio-title {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 120px;
    padding: 0 30px;
    right: 30px;
    left: 30px;
    bottom: -60px;
    background: #FFFFFF;
    z-index: 3;
}

.portfolio-btn {
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
    margin-top: -60px;
    margin-left: -60px;
    font-size: 120px;
    line-height: 0;
    transition: .1s;
    transition-delay: .3s;
    z-index: 2;
    opacity: 0;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
}

.portfolio-box::before,
.portfolio-box::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    transition: .5s;
    z-index: 1;
    background: rgba(4, 15, 40, .7);
}

.portfolio-box::before {
    left: 0;
}

.portfolio-box::after {
    right: 0;
}

.portfolio-item:hover .portfolio-box::before {
    left: 0;
    width: 50%;
}

.portfolio-item:hover .portfolio-box::after {
    right: 0;
    width: 50%;
}

@media (min-width: 992px) {
    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--primary)
    }
}

.footer-shape::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 100%;
    top: 0;
    left: -40px;
    background: var(--primary);
    transform: skew(40deg);
}

.whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    z-index: 9999;
}

.whatsapp-button i {
    font-size: 24px;
    margin-right: 10px;
}

.whatsapp-button:hover {
    background-color: #1EBE5D;
    transform: scale(1.05);
}

    /* Título */
    .titulo {
        font-size: 24px;
        font-weight: bold;
        margin-top: 40px;
        color: #000;
    }

    /* Contenedor de logos */
    .logos-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 40px;
        padding: 40px 20px;
    }

    /* Estilo de los logos */
    .logo {
        width: 300px; /* Ajusta el tamaño según necesites */
        height: auto;
        filter: grayscale(100%); /* Mantener en blanco y negro */
        transition: filter 0.3s ease-in-out;
    }

    .logo:hover {
        filter: grayscale(0%); /* Se colorea al pasar el mouse */
    }

    /* Responsive */
    @media (max-width: 768px) {
        .logos-container {
            gap: 20px;
        }
        .logo {
            width: 100px;
        }
    }

 
 

    select {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        border-radius: 5px;
        border: 1px solid #ccc;
        outline: none;
        background: #fff;
        cursor: pointer;
        margin-top: 10px;
    }
    select:focus {
        border-color: #28a745;
    }
    #mensajeSelect {
        display: none;
    }
    label {
        display: block;
        margin-top: 10px;
        font-size: 16px;
        font-weight: bold;
        color: #333;
    }

    .login-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 350px;
        text-align: center;
    }

    h2 {
        text-align: center;
        margin-bottom: 20px;
    }

    .input-box {
        width: 100%;
        padding: 10px;
        margin: 10px 0;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .login-button {
        width: 100%;
        padding: 10px;
        background: #007bff;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
    }

    .login-button:hover {
        background: #0056b3;
    }

    @media (max-width: 400px) {
        .login-container {
            padding: 15px;
        }
    }

    .logo-img {
        max-width: 350px; /* Controla el tamaño del logo */
        height: auto; /* Fija la altura para que no expanda el navbar */
        object-fit: contain; /* Evita distorsión */
    }
    
   
    
    @media (max-width: 768px) {
        .logo-img {
            max-width: 250px;
            height: auto;

        }
     
    }
    
    @media (max-width: 480px) {
        .logo-img {
            max-width: 230px;
            height: auto;
        }
   
    }

    .container {
        width: 100%;
        margin: 0 auto;
        padding: 20px;
    }
    
    .categoria {
        margin-bottom: 40px;
    }
    
    .categorias h2 {
        text-align: center;
    }
    
 
    
   

    
    .producto h3 {
        font-size: 1.2em;
        margin: 15px 0;
    }
    
    .producto p {
        color: #555;
        margin-bottom: 10px;
    }
    
 
    

    
  
    
    @media (max-width: 768px) {
        .producto {
            width: calc(50% - 20px);
        }
    }
    
    @media (max-width: 480px) {
        .producto {
            width: 100%;
        }
    }

    .carrito {
        position: fixed;
        bottom: 20px; /* Espacio desde la parte inferior */
        right: 20px; /* Espacio desde la parte derecha */
        background-color: #FD5D14;
        color: white;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        box-shadow: 0px 0px 5px rgba(0,0,0,0.3);
        transition: all 0.3s ease;
        z-index: 9999;
    }

    .carrito:hover {
        background-color: #218838;
    }

    /* Estilo para el listado del carrito */
    #carritoList {
        display: none;
        position: fixed;
        top: 300px;
        right: 20px;
        background-color: white;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 20px;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
        max-height: 300px;
        overflow-y: auto;
        width: 300px;
        z-index: 9999;
    }

    #carritoList h3 {
        margin-top: 0;
    }

    #carritoList ul {
        list-style-type: none;
        padding: 0;
    }

    #carritoList ul li {
        margin: 10px 0;
    }

    /* Estilo para el botón de "Agregar al carrito" */
    .agregar {
        background-color: #FD5D14;
        color: white;
        padding: 10px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .agregar:hover {
        background-color: #444;
    }

    .boton-modificar {
        margin-left: 10px;
        background-color: #ffc107;
        border: none;
        color: white;
        padding: 5px 10px;
        cursor: pointer;
        border-radius: 5px;
    }

    .boton-eliminar {
        background-color: #dc3545;
        border: none;
        color: white;
        padding: 5px 10px;
        cursor: pointer;
        border-radius: 5px;
    }

    .boton-eliminar:hover, .boton-modificar:hover {
        opacity: 0.8;
    }
    .vaciar-carrito {
        background-color: #dc3545;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-top: 20px;
    }
    .next-carrito {
        background-color: #dc3545;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-top: 20px;
    }

    .vaciar-carrito:hover {
        background-color: #c82333;
    }

    .carrito-container {
        max-width: 800px;
        margin: 20px auto;
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
    }

    th, td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    th {
        background-color: #FD5D14;
        color: white;
        text-transform: uppercase;
    }

   

    .total {
        font-weight: bold;
        background: #FD5D14;
        color: white;
    }

    /* Responsive */
    @media (max-width: 600px) {
        table {
            font-size: 14px;
        }

        th, td {
            padding: 8px;
        }
    }

    /* Botón de volver */
    .btn-volver {
        display: inline-block;
        margin-top: 15px;
        padding: 10px 20px;
        background-color: #28a745;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        transition: 0.3s;
    }

    .btn-volver:hover {
        background-color: #218838;
    }
    .transferencia-container {
        max-width: 1000px;
        margin: auto;
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .transferencias {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .cuenta {
        flex: 1;
        min-width: 300px;
    }
    
    table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
    }
    
    th, td {
        text-align: left;
        padding: 8px;
        border-bottom: 1px solid #ddd;
    }
    
    h2 {
        text-align: center;
    }
    .email {
        color: #d9534f;
        font-weight: bold;
    }
    .pago-container {
        max-width: 500px;
        margin: auto;
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    .transferencia-container, .webpay-container {
        display: none;
        margin-top: 15px;
    }
    .webpay-button, .enviar-button {
        display: inline-block;
        padding: 10px 20px;
        font-size: 16px;
        color: white;
        background-color: #FD5D14;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: 0.3s;
    }

    .webpay-button:hover, .enviar-button:hover {
        background-color: #218838;
    }

    .form-group {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
      }
      
      .radio-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap; /* Para que sea responsive */
      }
      
      .radio-option {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1 1 45%; /* Responsive: se acomodan si el espacio es pequeño */
        min-width: 200px;
      }
    .formulario-container {
        background: #f9f9f9;
        padding: 15px;
        border-radius: 10px;
        text-align: left;
        margin-top: 20px;
    }

    .formulario-container label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .formulario-container input,
    .formulario-container textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
    }

    .contador {
        font-size: 60px;
        font-weight: bold;
        color: #333;
        background: #fff;
        padding: 30px 60px;
        border-radius: 20px;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
        margin-top: 30px;
      }
      input[type="number"] {
        padding: 10px;
        font-size: 16px;
        width: 100px;
        text-align: center;
      }
      .botones-container {
        display: flex;
        justify-content: space-evenly;
        margin: 20px;

      }
      .container {
        padding: 20px;
    }
    
    .categoria {
        margin-bottom: 50px;
        position: relative;
    }
    
    .categoria h2 {
        margin-bottom: 10px;
    }
    
    .carousel-controls {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 10px;
    }
    
    .carousel-controls button {
        background-color: #444;
        color: white;
        border: none;
        padding: 8px 12px;
        margin-left: 5px;
        cursor: pointer;
        border-radius: 4px;
    }
    
    .productos {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(250px, 1fr);
        overflow-x: auto;
        gap: 16px;
        scroll-behavior: smooth;
        padding-bottom: 10px;
    }
    /* Ocultar scrollbar */
.productos::-webkit-scrollbar {
    display: none;
}
    
    .producto {
        background: #f9f9f9;
        border-radius: 8px;
        padding: 16px;
        text-align: center;
        min-width: 250px;
        max-width: 100%;
        box-sizing: border-box;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .producto img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 4px;
    }
    
   
    
    .producto .precio {
        font-weight: bold;
        margin-top: auto;
        margin-bottom: 10px;
    }
    
    button.agregar {
        background-color: #FD5D14;
        color: white;
        border: none;
        padding: 10px;
        cursor: pointer;
        border-radius: 5px;
    }
    /* Descripción del producto */
    .descripcion {
        font-size: 0.9rem;
        color: #555;
        line-height: 1.2;
       margin: 0 20px;
        text-overflow: ellipsis;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        text-align: center;
    }

    
    .carousel-controls {
        text-align: right;
        margin-bottom: 5px;
    }
    
    .prev, .next {
        font-size: 24px;
        cursor: pointer;
    }
    /* Responsive breakpoints */
    @media (min-width: 1200px) {
        .productos {
            grid-auto-columns: calc(20% - 16px);
        }
    }
    
    @media (max-width: 768px) {
        .productos {
            grid-auto-columns: calc(50% - 16px);
        }
    }
    
    @media (max-width: 480px) {
        .productos {
            grid-auto-columns: 100%;
        }
    }