/* Buscador */
form.d-flex {
    display: flex;
    flex-grow: 1; /* Permitir que el buscador ocupe espacio flexible */
    max-width: 600px;
    min-width: 50px;
    margin: 0 1rem;
}

form.d-flex .form-control {
    min-width: 50px; /* Ancho mínimo */
}

/* Botones */
.btn {
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.btn-outline-primary {
    border-color: var(--boton-principal);
    color: var(--boton-principal);
}

.btn-outline-primary:hover {
    background-color: var(--boton-principal);
    border-color: var(--boton-principal);
    color: #fff;
}

/* Dropdown Usuario */
.dropdown .btn {
    background: var(--fondo-principal);
    box-shadow: none;
}

.dropdown .btn::after {
    display: none; /* Quitar flechita */
}

/* Carrusel */
.carousel-inner img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background-color: #f8f8f8;
    border-radius: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.carousel-inner {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Otros ajustes */
.category-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card img {
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.small-ad img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background-color: #f8f8f8;
}

/* Responsive: Ocultar logo en pantallas pequeñas */
@media (max-width: 1000px) {
    .navbar-brand.logo {
        display: none !important; /* Ocultar logo */
    }

    form.d-flex {
        margin: 0; /* Reducir márgenes para ahorrar espacio */
    }
}

/* Botones */
.btn {
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.btn-outline-primary {
    border-color: var(--boton-principal);
    color: var(--boton-principal);
}

.btn-outline-primary:hover {
    background-color: var(--boton-principal);
    border-color: var(--boton-principal);
    color: #fff;
}

/* Dropdown Usuario */
.dropdown .btn {
    background: var(--fondo-principal);
    box-shadow: none;
}

.dropdown .btn::after {
    display: none;
}

/* Carrusel */
.carousel-inner img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background-color: #f8f8f8;
    border-radius: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.carousel-inner {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Otros ajustes */
.category-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card img {
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.small-ad img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background-color: #f8f8f8;
}

/* Perfil */
body {
    background: linear-gradient(135deg, #eef2f3, #8e9eab);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    color: #333;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.list-group {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.list-group-item {
    font-size: 1rem;
    font-weight: bold;
    border: none;
    padding: 15px 20px;
    background: transparent;
    color: #666;
    transition: all 0.3s ease;
}

.list-group-item:hover,
.list-group-item.active {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(106, 17, 203, 0.4);
}

.card {
    background: #ffffff;
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    text-align: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.card-text {
    font-size: 1rem;
    color: #555;
}

.btn-primary {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    border: none;
    color: #fff;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 30px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header,
.modal-footer {
    border: none;
}

form .form-control,
form .form-select {
    border-radius: 15px;
    border: 1px solid #ddd;
    padding: 10px;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

form .form-control:focus,
form .form-select:focus {
    box-shadow: 0 0 8px rgba(106, 17, 203, 0.3);
    border-color: #6a11cb;
}

form .btn {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

form .btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2575fc, #6a11cb);
}

/* Categorías */
body {
    background: linear-gradient(135deg, #eef2f3, #8e9eab);
}

h1 {
    font-size: 2.8rem;
    text-align: center;
    color: #333;
    font-weight: 700;
    margin-bottom: 40px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.category-card {
    background: #2c3e50;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    padding: 15px;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: linear-gradient(135deg, #ff6f61, #ffba08);
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

.category-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffba08;
}

.filters {
    background: #34495e;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.filter-item {
    font-size: 1rem;
    font-weight: 500;
    color: #ecf0f1;
    padding: 10px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-item:hover {
    background-color: #16a085;
    color: #fff;
}

/*index*/
/* Estilo General */
body {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Contenedor Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Encabezados */
h4.category-title {
    font-size: 2rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #2575fc;
    padding-bottom: 10px;
}

/* Carrusel de Publicidad Grande */
#mainAdCarousel {
    border-radius: 15px;
    overflow: hidden;
    /* Mantiene las esquinas redondeadas en todo el carrusel */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Sombra atractiva */
    position: relative;
}

#mainAdCarousel .carousel-item img {
    width: 100%;
    /* La imagen ocupa todo el ancho del carrusel */
    height: 400px;
    /* La imagen ocupa toda la altura */
    object-fit: contain;
    /* Asegura que la imagen no se recorte */
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    /* Animación suave */
    background-color: #f9f9f9;
    /* Fondo neutro detrás de la imagen */
}

#mainAdCarousel .carousel-item img:hover {
    transform: scale(1.05);
    /* Efecto de zoom suave al pasar el ratón */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    /* Mayor profundidad al interactuar */
}

#mainAdCarousel .carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

#mainAdCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#mainAdCarousel .carousel-indicators button.active {
    background-color: #2575fc;
    transform: scale(1.2);
    /* Destaca el indicador activo */
}

#mainAdCarousel .carousel-control-prev-icon,
#mainAdCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    /* Fondo oscuro para mayor contraste */
    border-radius: 50%;
    padding: 10px;
    width: 40px;
    height: 40px;
    background-size: 60%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#mainAdCarousel .carousel-control-prev-icon:hover,
#mainAdCarousel .carousel-control-next-icon:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.8);
}


/* Tarjetas de Productos */
.card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    width: 100%;
    /* Ajustamos la imagen para que ocupe todo el ancho */
    height: 200px;
    object-fit: cover;
    /* Asegura que la imagen se cubra completamente sin distorsionarse */
    transition: transform 0.3s ease;
}

.card-img-top:hover {
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
    text-align: center;
}

.card-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.card-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    border: none;
    color: #fff;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(106, 17, 203, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(106, 17, 203, 0.3);
}

/* Carrusel de Publicidad Pequeña */
.small-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.small-ad img {
    width: 100%;
    /* Asegura que la imagen ocupe todo el espacio disponible */
    height: 100%;
    /* Asegura que la altura también se ajuste */
    object-fit: cover;
    /* Ajusta la imagen sin que se deforme ni se corte */
    max-width: 100%;
    max-height: 150px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.small-ad img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Videos Publicitarios */
iframe {
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    background: #000;
    width: 100%;
    height: 400px;
}

/* Pie de Página */
footer {
    text-align: center;
    padding: 20px 0;
    font-size: 1rem;
    color: #777;
    margin-top: 40px;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-item,
.card,
iframe {
    animation: fadeIn 0.6s ease-out;
}

/* Mejora de Hover */
.card:hover .btn-primary {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(106, 17, 203, 0.3);
}