﻿
/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/img/fondoprincipal.png') center center no-repeat;
    background-size: cover;
    height: 85vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

section.full-width {
    width: 100%;
    padding: 60px 5%;
}

/* Tarjetas de producto */
.card-product {
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/*    .card-product:hover {
        transform: translateY(-5px);
        
    }*/

.card-img-top-wrapper {
    height: 250px;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
    /* Hover sobre la tarjeta completa o la imagen */
    .card-img-top-wrapper:hover img {
        transform: scale(1.08); /* crece 8% */
        filter: brightness(1.1); /* se ve un poco más brillante */
    }
.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Iconos secciones */
.feature-icon {
    font-size: 3rem;
    color: #0d6efd;
}

/* Contacto */
#contacto input, #contacto textarea {
    margin-bottom: 15px;
}

.container-fluid {
    margin: 0;
    padding: 0;
}

/* Carrusel */
.productos-carousel-wrapper {
    position: relative;
    overflow: hidden; /* Oculta scroll de página */
    display: flex;
    gap: 1rem;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
}

    .productos-carousel-wrapper.dragging {
        cursor: grabbing;
        cursor: -webkit-grabbing;
    }

.producto-item {
    flex: 0 0 250px;
}

/* Botones de control */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn-left {
    left: 0;
}

.carousel-btn-right {
    right: 0;
}

/* BADGE DISPONIBILIDAD */
/* Colores dinámicos para disponibilidad */
.badge-stock.disponible {
    background-color: rgba(40, 167, 69, 0.9) !important; /* verde semi-transparente */
    color: #fff !important;
}

.badge-stock.agotado {
    background-color: rgba(220, 53, 69, 0.9) !important; /* rojo semi-transparente */
    color: #fff !important;
}

/* Badge animado de "Ver Detalle" */
a .badge {
    display: inline-block;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    padding: 10px;
}

    /* Hover: crece y cambia de color */
    a .badge:hover {
        transform: scale(1.1); /* crece 10% */
        background-color: #0056b3 !important; /* azul más oscuro */
    }

.crecer {
    transition: transform 0.3s ease;
}
    .crecer:hover {
        transform: scale(1.08);
        filter: brightness(1.1);
    }

/* Seleccionamos cada columna dentro de la sección */
.full-width .row .col-md-3 {
    transition: transform 0.3s ease; /* Animación suave */
}

    .full-width .row .col-md-3:hover {
        transform: scale(1.1); /* Aumenta un 5% al pasar el mouse */
    }
