/* Globales */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

*::after,
*::before,
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    
    margin: 0 auto;
    max-width: none;
    font-family: 'Lato';
    color: #333;
    min-height: 100vh;
    background-color: #f1f8ff ;
}
h3{ 
    text-align: center;
    padding-top: 2%;
}
nav ul {
    margin: 0px auto; 
    max-width: 100%;
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    background-color: #000000;
    padding: 10px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}
.carusel{
    padding: 20px;
}
/* Secciones */
section {
    padding: 20px;
    margin: 20px 0;
}

.icon-cart{
    width: 40px;
    height: 40px;
    stroke: #000;
}

.icon-cart:hover{
    cursor: pointer;
}

img{
    max-width: 100%;
}
button{
    background-color: black; 
    color: white; 
    padding: 15px 10px; 
    cursor: pointer; 
    border: none; 
    border-radius: 5px;
}
/* Header */
header{
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #FF0099, #00D4FF); /* Fucsia a Azul Neón */
}
.menu{
    z-index: 1000;
    position:relative;
    display: flex;
    align-items: center;
}
.usuario{
    position:relative;
    display: flex;
    align-items: center;
}
.usuario img{
    margin: 20 auto 20px;
    height:50px;
    width: 55px;
    max-width: 90px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.usuario img:hover {
    transform: scale(1.1);
}
.menuBar{
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    width: 180px;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.20);
    border-radius: 10px;
}
.menuBar button{
    padding: 5px 5px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    margin: 5px;
    width: 150px;
}
.carrito{
    position: relative;
    z-index: 1000; /* Asegura que esté sobre el carrusel */
}

.count-products{
    position: absolute;
    top: 55%;
    right: 0;
    background-color: #000;
    color: #fff;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

#contador-productos{
    font-size: 12px;
}

.container-cart-products{
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    width: 400px;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.20);
    border-radius: 10px;
    
}

.cart-product{
    display: flex;
    flex-direction: column; /* Acomoda los elementos en columna (de arriba hacia abajo) */
    gap: 10px; /* Espacio entre los elementos */
    padding: 10px;
    max-width: 400px; /* Ajusta el ancho si es necesario */
    border-bottom: 1px solid rgba(0, 0, 0, 0.20);

}

.info-cart-product{
    display: flex;
    justify-content: space-between;
    flex: 0.8;
}

#carrito-productos{
    font-weight: 700;
    font-size: 20px;
    margin-left: 10px;
}

.cantidad-producto-carrito{
    font-weight: 400;
    font-size: 20px;
}

.closed{
    padding: 5px 9px;
    border: none;
    cursor: pointer;
    margin: 20px;
    width: 50px;
    height: 50px;
}

.icon-close:hover{
    stroke: red;
    cursor: pointer;
}

.cart-total{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    font-size: 20px;
    font-weight: 900;
}
.carrito button{
    padding: 5px 9px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    margin: 20px;
    width: 350px;
}

.hidden-cart{
    display: none;
}

.carrito button:hover,.carrito a:hover{
    background-color: #FF0099; /* Cambia a Fucsia Neón */
    box-shadow: 0px 6px 15px rgba(255, 0, 153, 0.6);
}
/* Contenedor del carrito */
.carrito {
    position: relative;
    z-index: 1000;
}

/* Contador de productos en el carrito */
.count-products {
    position: absolute;
    top: 50%;
    right: -10px;
    background: linear-gradient(45deg, #FF0099, #007bff);
    color: white;
    width: 26px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 0, 153, 0.4);
}

/* Contenedor del carrito flotante */
.container-cart-products {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    width: 400px;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.20);
    border-radius: 10px;
}
/* Mostrar carrito cuando esté activo */


/* Productos en el carrito */
.cart-product {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    max-width: 400px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

/* Información de cada producto */
.info-cart-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Texto del carrito */
#carrito-productos {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

/* Cantidad del producto */
.cantidad-producto-carrito {
    font-weight: 500;
    font-size: 18px;
    color: #555;
}

/* Botón de cerrar carrito */
.closed {
    padding: 5px;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: transparent;
    transition: transform 0.2s ease;
}

.closed:hover {
    transform: rotate(90deg);
}

.icon-close {
    width: 30px;
    height: 30px;
    stroke: #FF0099;
    transition: stroke 0.2s ease;
}

.icon-close:hover {
    stroke: red;
}

/* Total del carrito */
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 20px;
    font-weight: 900;
    color: #333;
}

/* Botones del carrito */
.carrito button,.carrito a {
    padding: 12px 15px;
    background: linear-gradient(90deg, #007bff, #FF0099);
    color: white;
    border: none;
    cursor: pointer;
    width: min-content;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0px 4px 10px rgba(255, 0, 153, 0.3);
}

/* Efecto hover en botones */
.carrito button:hover {
    background: linear-gradient(90deg, #FF0099, #007bff);
    transform: scale(1.05);
}

/* Efecto de botón presionado */
.carrito button:active {
    transform: scale(0.98);
}



/* Main */
.container-items {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Ajusta dinámicamente */
    gap: 20px;
    width: 100%;
    max-width: 1200px; /* Opcional: evita que los elementos se extiendan demasiado */
    margin: 0 auto; /* Centra la cuadrícula */
    padding: 20px; /* Agrega espacio alrededor */
}

.item{
    border-radius: 10px;
    background-color: #3d3d3d00; /* Azul oscuro con tono morado */
    padding: 20px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(95, 80, 230, 0.4); /* Sombra amarilla */
    transition: all 0.3s ease-in-out;
}

.item:hover{
    box-shadow: 0px 8px 20px rgba(255, 165, 0, 0.6);
            transform: translateY(-5px);
}
/* Nombre del producto */
.item h2 {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.5rem;
    color:  #000000; 
    margin: 10px 0;
}



/* Precio */
.item .price {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: #000000;
}

.item button:hover{
    background-color: #FF0099; /* Cambia a Fucsia Neón */
    box-shadow: 0px 6px 15px rgba(255, 0, 153, 0.6);
}
.item img{
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: all .5s;
}
#resultadoBusqueda {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}


#logo{
width: 250px;
}

.item figure{
    overflow: hidden;
}

.item:hover img{
    transform: scale(1.2);
}

.info-product{
    padding: 15px 30px;
    line-height: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price{
    font-size: 18px;
    font-weight: 900;
}

.info-product button{
    background-color: #00D4FF; /* Azul neón */
    color: #121212; /* Texto oscuro */
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 212, 255, 0.4);
}
a{
    
      color: white; 
      text-decoration: none; 
      border-radius: 5px;
}

.btn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    margin: 20px;
}
.page-footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;

}

/* Contenedor del menú */
.menu-lateral {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    background-color: #333;
    padding: 10px 0;
    border-radius: 0 10px 10px 0;
    z-index: 1000;
}

/* Estilo de los ítems del menú */
.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    color: white;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}

.menu-item:hover {
    background-color: #555;
}

/* Tooltip (Texto lateral) */
.tooltip {
    position: absolute;
    left: 100%;
    background-color: #333;
    color: white;
    padding: 10px;
    white-space: nowrap;
    border-radius: 5px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateX(10px);
}

.menu-item:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
  }
  .modal-contenido {
    background: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }
  .cerrar {
    float: right;
    font-size: 28px;
    cursor: pointer;
  }
  
.carousel {
    position: relative;
    overflow: hidden; /* Evita el scroll horizontal */
    width: 100%; /* Asegura que no se desborde */
}


.carousel-inner::after {
    display: block;
    clear: both;
    content: "";
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .carousel-item {
        transition: none;
    }
}

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    display: block;
}

.active.carousel-item-end,
.carousel-item-next:not(.carousel-item-start) {
    transform: translateX(100%);
}

.active.carousel-item-start,
.carousel-item-prev:not(.carousel-item-end) {
    transform: translateX(-100%);
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end,
.carousel-fade .carousel-item.active {
    z-index: 1;
    opacity: 1;
}

.carousel-fade .active.carousel-item-end,
.carousel-fade .active.carousel-item-start {
    z-index: 0;
    opacity: 0;
    transition: opacity 0s 0.6s;
}

@media (prefers-reduced-motion: reduce) {
    .carousel-fade .active.carousel-item-end,
    .carousel-fade .active.carousel-item-start {
        transition: none;
    }
}

.carousel-control-next,
.carousel-control-prev {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    padding: 0;
    color: #fff;
    text-align: center;
    background: 0 0;
    border: 0;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
    .carousel-control-next,
    .carousel-control-prev {
        transition: none;
    }
}

.carousel-control-next:focus,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-prev:hover {
    color: #fff;
    text-decoration: none;
    outline: 0;
    opacity: 0.9;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.carousel-indicators {
    position: relative;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-right: 15%;
    margin-bottom: 1rem;
    margin-left: 15%;
}

.carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 30px;
    height: 3px;
    padding: 0;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
    .carousel-indicators [data-bs-target] {
        transition: none;
    }
}

.carousel-indicators .active {
    opacity: 1;
}

.carousel-caption {
    position: relative;
    right: 15%;
    bottom: 1.25rem;
    left: 15%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: center;
}

.carousel-dark .carousel-control-next-icon,
.carousel-dark .carousel-control-prev-icon {
    filter: invert(1) grayscale(100);
}

.carousel-dark .carousel-indicators [data-bs-target] {
    background-color: #000;
}

.carousel-dark .carousel-caption {
    color: #000;
}

[data-bs-theme=dark] .carousel .carousel-control-next-icon,
[data-bs-theme=dark] .carousel .carousel-control-prev-icon,
[data-bs-theme=dark].carousel .carousel-control-next-icon,
[data-bs-theme=dark].carousel .carousel-control-prev-icon {
    filter: invert(1) grayscale(100);
}

[data-bs-theme=dark] .carousel .carousel-indicators [data-bs-target],
[data-bs-theme=dark].carousel .carousel-indicators [data-bs-target] {
    background-color: #000;
}

[data-bs-theme=dark] .carousel .carousel-caption,
[data-bs-theme=dark].carousel .carousel-caption {
    color: #000;
}

        .carousel-item img {
            height: 650px;
            max-height: 80vh;
            object-fit: cover;
            border-radius: 10px;
            transition: transform 0.3s ease-in-out;
            width: 100%;
        }
        .img-fluid {
            max-height: 250px;
            object-fit: cover;
        }