﻿/*====SEARCH BAR====*/
/* ===== Overlay más suave ===== */
#searchOverlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.55); /* más transparente */
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    /* ===== Caja principal más compacta ===== */
    #searchOverlay .search-box {
        background: rgba(255,255,255,0.85);
        padding: 18px 26px;
        border-radius: 14px;
        box-shadow: 0 4px 25px rgba(0,0,0,0.15);
        max-width: 480px;
        width: 90%;
        animation: fadeIn 0.18s ease-out;
    }

/* animación sutil */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Input más delgado ===== */
#txtSearchGlobal {
    flex-grow: 1;
    padding: 6px 10px;
    font-size: 0.90rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ===== Botón Buscar más pequeño ===== */
#btnDoSearch {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* ===== Botón Cerrar ===== */
#closeSearch {
    padding: 6px 10px;
    font-size: 0.85rem;
}

/* ===== Sugerencias ===== */
#formSearchGlobal p {
    font-size: 0.75rem;
    opacity: 0.7;
}
/*===LINK SELECT*/

.nav-link.active {
    font-weight: 700;
    color: #0d6efd !important;
}
/*PARA CARUSELES AL FINAL DE LA PAGINA */

/* Mostrar flechas incluso con un solo item */

#carouselProducts .carousel-control-next {
    opacity: 1 !important;
    display: flex !important;
}
#carouselProducts .carousel-control-prev-icon,
#carouselProducts .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.55);
    border-radius: 50%;
    padding: 20px;
}

/* Cards iguales */
.product-card {
   
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .product-card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .product-card h6 {
        min-height: 40px;
        max-height: 40px;
        overflow: hidden;
    }


    .product-card span {
        font-size: 0.85rem;
        min-height: 20px;
    }

    .product-card p {
        margin-bottom: 4px !important;
        font-weight:600;
    }
/* Flechas más cerca del carrusel */
.custom-arrow {
    width: 10px;
}

    .custom-arrow .carousel-control-prev-icon,
    .custom-arrow .carousel-control-next-icon {
        filter: invert(1);
    }

.carousel-control-prev {
    left: -20px !important;
}

.carousel-control-next {
    right: -20px !important;
}

/* En móviles — flechas aún más cerca */
@media (max-width: 768px) {
    .carousel-control-prev {
        left: 0 !important;
    }

    .carousel-control-next {
        right: 0 !important;
    }
}
.product-card .card-body {
    min-height: 120px; /* ajusta según tus textos */
}

.product-card h6 {
    min-height: 40px;
    margin-bottom: 4px;
}

.product-card span {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 6px;
}
/*===PARA CATEGOTIAS Y LISTA DE PRODUCTOS ===*/

/* Tarjetas del catálogo */
.card.product {
    border: 1px solid #dcdcdc !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
    transition: transform .15s ease, box-shadow .15s ease;
    padding-top: 12px !important;
}

/* Hover premium */
.card.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Imagen */
.card.product .img-container {
    text-align: center;
    height: 160px;
    padding: 5px;
}

    .card.product .img-container img {
        max-height: 150px;
        object-fit: contain;
    }

/* Nombre */
.card.product h3 {
    font-size: 0.95rem !important;
    margin: 0;
    padding: 0;
    min-height: 35px;
}

/* Precio */
.card.product .price {
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* --- TARJETA PREMIUM --- */
.card.product {
    border: 1px solid #cfcfcf !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12) !important;
    transition: .2s ease all;
    padding-bottom: 10px !important;
}

    /* Hover */
    .card.product:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.18) !important;
    }

    /* --- CONTENEDOR DE IMAGEN --- */
    .card.product .img-container {
        background: #f3f6fa; /* Fondo bonito tipo laboratorio */
        border-radius: 10px;
        padding: 12px;
        height: 220px; /* MÁS ALTO */
        display: flex;
        margin: 2px 15px 0 15px;
        justify-content: center;
        align-items: center;
    }

        /* Imagen más grande */
        .card.product .img-container img {
            max-height: 200px; /* Antes 150px */
            width: auto;
            object-fit: contain;
            transition: transform .2s ease;
            border-radius: 10px;
        }

    .card.product:hover .img-container img {
        transform: scale(1.03);
    }

    /* Nombre */
    .card.product h3 {
        font-size: 1rem !important;
        margin: 10px 0 6px 0 !important;
        min-height: 38px;
        font-weight: 600;
    }

    /* Precio */
    .card.product .price {
        font-size: 0.95rem !important;
        margin-bottom: 8px;
        color: black;
        font-weight: 800;
    }

    /* Botón */
    .card.product .btn-accent {
        margin-top: 5px;
        border-radius: 8px !important;
        background-color: #f5a05d !important;
        border: none !important;
        color: #fff !important;
        font-weight: 600;
        transition: .2s;
        
    }

        .card.product .btn-accent:hover {
            background-color: #e68f46 !important;
        }

        /*==ESTILO DEL POP UP DE CONFIRMACION DE LISTA DE PRODUCTOS PAGINA CATEGORIA Y COMPRA */

/* 🔹 Fondo oscuro difuminado */
#cart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.25s ease-out;
}

/* 🔹 Caja del popup */
.cart-popup-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    animation: popupZoom 0.25s ease-out;
}

    /* Icono check */
    .cart-popup-box h4 {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 8px;
    }

    .cart-popup-box p {
        margin: 4px 0 16px;
        font-size: 0.9rem;
        color: #444;
    }

/* Botones */
.cart-btn-primary {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    margin-right: 6px;
}

.cart-btn-secondary {
    background: #e9ecef;
    color: #000;
    padding: 10px 18px;
    border-radius: 8px;
}

.cart-popup-actions {
    display: flex;
    justify-content: center;
    gap: 12px; /* Espacio entre botones */
    margin-top: 15px;
}

    .cart-popup-actions button {
        min-width: 130px;
        padding: 10px 18px;
        border-radius: 8px;
        font-size: 14px;
        white-space: nowrap; /* evita que se partan las líneas */
    }

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popupZoom {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/*====PAGINA NOSOTROS===*/

/* GRID general */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% – 50% */
    gap: 40px;
    margin-top: 20px;
}

/* Columna izquierda – texto inspirador */
.nosotros-left {
    padding-right: 20px;
}

    .nosotros-left h1 {
        font-size: 2.3rem;
        margin-bottom: 15px;
    }

    .nosotros-left p {
        font-size: 1.08rem;
        line-height: 1.55;
        color: #333;
    }

/* Columna derecha – tarjetas verticales */
.nosotros-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Tarjetas de Calidad / Logística / Cumplimiento */
.nosotros-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 18px 22px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

    .nosotros-card:hover {
        box-shadow: 0 6px 12px rgba(0,0,0,0.10);
        transform: translateY(-2px);
    }

    .nosotros-card h3 {
        margin-top: 0;
        font-size: 1.25rem;
        font-weight: 600;
    }

    .nosotros-card p {
        margin: 8px 0 0 0;
        color: #444;
        font-size: 1rem;
        line-height: 1.5;
    }

/* RESPONSIVE */
@media (max-width: 900px) {
    .nosotros-grid {
        grid-template-columns: 1fr;
    }
}
/*==pagina contacto===*/
/* GRID de filas */


/* Contenedor principal del formulario */
.contactinfo {
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    max-width: 850px;
    margin: auto;
}

/* Labels */
.contactinfo label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

/* Inputs */
.contactinfo .form-control {
    border-radius: 8px !important;
    padding: 10px 12px;
    font-size: 0.95rem;
}

/* Textarea */
#txtMensaje {
    resize: vertical;
}

/* Botón enviar */
.btn-accent {
    background: #1a73e8;
    color: white !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 1rem;
    border: none;
    transition: 0.2s ease;
    width: 180px;
}

.btn-accent:hover {
    background: #155fc2;
}

/* Contenedor del botón */
.actions {
    margin-top: 15px;
    text-align: right;
}

/* Alert bonito */
#alertdiv {
    margin-bottom: 20px;
    border-radius: 10px;
    padding: 15px 18px;
}

/* Responsive */
@media (max-width: 780px) {
    .rowcontact {
        grid-template-columns: 1fr;
    }

    .actions {
        text-align: center;
    }

    .btn-accent {
        width: 100%;
    }
}
