/* Importar fuente de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* Estilo del cuerpo de la página */
body {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    background-image: url('fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0d1117;
    color: #c9d1d9;
}

/* Estilo del menú */
.menu {
    display: flex;
    list-style-type: none;
    background-color: #161b22;
    padding: 0;
    margin: 0;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.menu li {
    position: relative;
    padding: 14px 20px;
}

.menu li a {
    color: #58a6ff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

.menu li a:hover {
    background-color: #238636;
    border-radius: 4px;
}

/* Estilo del menú de perfil */
.profile-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    position: relative;
}

.user-icon {
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #238636;
    margin: 5px;
    transition: transform 0.3s;
}

.user-icon img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

.user-icon:hover {
    transform: scale(1.2);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #161b22;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.profile-menu .dropdown-content {
    right: 0;
    left: auto;
}

.dropdown-content a {
    color: #58a6ff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-content a:hover {
    background-color: #238636;
    border-radius: 4px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.profile-menu:hover .dropdown-content {
    display: block;
}

/* Estilo del contenedor de fondo */
.background-container {
    background-size: cover;
    background-position: center;
    padding: 80px 0 50px 0; /* Ajuste para el padding superior */
}

/* Estilo del contenedor de contenido */
.content-container {
    background-color: #21262d;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.content-container h1 {
    font-size: 2em;
    color: #58a6ff;
}

.content-container p {
    font-size: 1em;
    color: #8b949e;
}

.container-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.item {
    border-radius: 0px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background-color:  #004AAD; /* Agregado para mejorar el contraste */
}

.item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px); /* Efecto sutil de elevación */
}

.item img {
    width: 100%;
    height: auto; /* Ajuste automático de altura */
    aspect-ratio: 16 / 9; /* Mantiene una relación de aspecto fija */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item figure {
    overflow: hidden;
    margin: 0;
}

.item:hover img {
    transform: scale(1.05); /* Escala más sutil */
}

.info-product {
    padding: 15px 20px;
    line-height: 1.6; /* Ajusta el interlineado para mejor lectura */
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color:  #004AAD; /* Fondo para destacar la información */
    border-top: 1px solid #0400fa; /* Delimitación superior */
}

.price {
    font-size: 20px;
    font-weight: 700; /* Peso de fuente más ligero */
}

.info-product button {
    border: none;
    background-color: #000;
    color: #000;
    padding: 12px 20px; /* Ajuste del padding para mejor estética */
    cursor: pointer;
    border-radius: 5px; /* Bordes redondeados para el botón */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.info-product button:hover {
    background-color: #333; /* Cambio de color al pasar el ratón */
    transform: scale(1.05); /* Escala del botón al pasar el ratón */
}

/* Estilo del contenedor del carrito de productos */
.container-cart-products {
    position: absolute;
    top: 50px; /* Ajusta según tu diseño */
    right: 10px; /* Ajusta según tu diseño */
    width: 300px; /* Ajusta según tu diseño */
    background: #000;
    border: 1px solid #000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 5px;
    padding: 15px; /* Añadido padding para mejor espaciado */
}

/* Estilo para el icono del carrito */
.icon-cart {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Estilo para la cuenta de productos en el carrito */
.count-products {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
}

/* Estilo para la lista de productos en el carrito */
.cart-product-list {
    max-height: 250px; /* Ajusta según tu diseño */
    overflow-y: auto;
    margin-top: 10px; /* Añadido margen superior para separación */
}

/* Estilo para cada producto en la lista del carrito */
.cart-product {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Aumentado margen inferior para separación */
    padding: 5px 0; /* Añadido padding para mejor espaciado */
    border-bottom: 1px solid #ddd; /* Línea divisoria opcional */
}

/* Estilo para la imagen del producto en el carrito */
.cart-product img {
    width: 0px; /* Tamaño de imagen ajustado */
    height: 0px; /* Tamaño de imagen ajustado */
    object-fit: cover; /* Mantiene la proporción de la imagen */
    margin-right: 0px; /* Espacio entre la imagen y el texto */
}

/* Estilo para el total del carrito */
.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-top: 10px; /* Añadido margen superior para separación */
    border-top: 1px solid #ddd; /* Línea divisoria opcional */
    padding-top: 10px; /* Espaciado superior */
}
.icon-close {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.icon-close:hover {
    stroke: red; /* Cambia el color al pasar el ratón */
}

.cart-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.icon-close {
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 20px;
    color: red;
}

