 /* Estilos personalizados */
 body{
    background-color: #f3f1f1 ;
 }
 .banner {
    height: 55vh;
    background: url('../IMAGENES/banner.jpeg') center/cover;
    position: relative;
}

.productos-container {
    overflow: hidden;
    padding: 40px 0;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.producto {
    min-width: calc(100% / 3);
    padding: 15px;
}
@media (max-width: 1200px) {
    .producto {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .producto {
        flex: 0 0 100%;
    }
}

.dropdown:hover .dropdown-menu {
    display: block;
    
}
.dropdown-item:hover{
    background-color: #764C23;
    color: #fff;
}

.btn-categorias{
    background-color: #003100 !important;
    color: #fff;
}
.btn-sobreNosotros:hover{
 background-color: #B69E16;
 color: #033b06;
 font-weight: bold;
}
.btn-IniciarSesion{
    font-weight: bolder;
    color: #B69E16 ;
    border-color: #B69E16;
    
}
.btn-IniciarSesion:hover{
    background-color: #B69E16;
    color: #fff;
    border-color: black;
}
.carrito-icon {
    position: relative;
}
/* Estilos para el texto del brand */
.navbar-brand {
    gap: 10px;
}

.brand-text {
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Dancing Script', cursive;
    color: #033b06;
    margin-left: 10px;
}

/* Versión mobile - ocultar texto */
@media (max-width: 991px) {
    .brand-text {
        display: none !important;
    }
}

.carrito-contador {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.8em;
}



@media (max-width: 991px) {
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
    
    .carrito-icon {
        font-size: 1.2rem;
        padding: 0.5rem;
    }
    
    .carrito-contador {
        top: -5px;
        right: -5px;
        padding: 1px 5px;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        
    }
    
    .btn-outline-primary, .btn-outline-secondary {
        text-align: left;
    }
}

.titulo-dinamico {
    transition: opacity 0.5s ease-in-out;
    color: black;
    font-weight:390;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}


.stock-info {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stock-info i {
    font-size: 0.8em;
}

.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.text-danger {
    color: #e74c3c !important;
}

.text-success {
    color: #2ecc71 !important;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


/* Estilos para las tarjetas de productos */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 10px;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    align-content: center;
    width: 40%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid #f8f9fa;
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.card:hover .card-img-top {
    transform: scale(1.03);
}

.card-body {
    padding: 1.5rem;
    text-align: center;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0.75rem;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-text {
    font-size: 1.25rem;
    color: #000000;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.btn-agregar {
    background: #B69E16;
    color: #033b06;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-agregar:hover {
    background: #B69E16;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Efecto de overlay en hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        margin: 10px 0;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 1.1rem;
    }
    
    .btn-agregar {
        position: relative;
            z-index: 2; 
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

.footer {
    background-color: #033b06 !important;
    margin-top: auto;
}

.footer h5 {
    color: #fff;
    font-size: 1.5rem;
    border-bottom: 2px solid #2ecc71;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #2ecc71 !important;
    transform: translateX(5px);
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #2ecc71 !important;
}

@media (max-width: 768px) {
    .footer .col-md-3 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer h5 {
        border-bottom: none;
    }
    
    .social-links {
        justify-content: center;
    }
}

#modalCarrito .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#modalCarrito .modal-header {
    background: #033b06;
    color: white;
    border-bottom: none;
}

#modalCarrito .btn-close {
    filter: invert(1);
}

#modalCarrito .modal-body img {
    max-height: 300px;
    object-fit: contain;
}

#precioTotal {
    color: #2ecc71;
    font-weight: 700;
}

#confirmarAgregar {
    background: #2ecc71;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

#confirmarAgregar:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.position-relative {
    position: relative;
    overflow: hidden; /* Para ocultar el exceso del slider */
}

.carrusel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* Permite hacer clic a través de ellos */
    z-index: 1;
}

.carrusel-arrow {
    pointer-events: all; /* Habilita clic en las flechas */
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.carrusel-arrow:hover {
    color: #333;
}

.carrusel-arrow.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.carrusel-paginacion {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.paginacion-item {
    width: 30px;
    height: 4px;
    background-color: #ddd;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.paginacion-item.active {
    background-color: #333;
    width: 40px;
}


/* Carrito lateral */
.carrito-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1) !important;
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
}

.carrito-sidebar.active {
    right: 0;
    opacity: 1;
}

.carrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.carrito-items {
    margin-bottom: 20px;
}

.carrito-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.carrito-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.carrito-item-info {
    flex-grow: 1;
}

.carrito-item-cantidad {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.carrito-total {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ffffff;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5) !important;
    z-index: 999;
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.overlay.active {
    visibility: visible;
    opacity: 1;
}
#comprarAhora{
    background-color: #033b06 !important;
    color: white !important;
    font-weight: 500;
}

#comprarAhora:hover{
    background-color: #B69E16 !important;
    color: #033b06 !important;
}

@media (max-width: 576px) {
    .carrito-sidebar {
        width: 100%;
        right: -100%;
    }
}




