/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
}

body {   
    color: #e0e0e0; /* Texto claro */
}

/* Header */
header {
    background-color: #1a1a1a; /* Fondo gris oscuro */
    color: #e0e0e0;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.logo {
    width: 300px;
    height: auto;
}

/* Main */
main {
    padding: 2rem;
}

#menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Categorías */
.category {
    background-color: #1f1f1f !important; /* Fondo gris oscuro asegurado */
    color: #ffffff !important; /* Texto blanco asegurado */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

.category:hover {
    background-color: #2a2a2a !important; /* Fondo más claro al pasar el mouse */
    transform: scale(1.05);
}

.category-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff !important; /* Texto blanco asegurado */
    cursor: pointer;
}

.category-title:hover {
    text-decoration: underline;
}

/* Subcategorías */
.sub-category-list {
    display: none;
    padding: 10px;
    background-color: #1a1a1a; /* Fondo gris oscuro */
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.sub-category-list.visible {
    display: block;
}

.sub-category {
    background-color: #252525; /* Fondo más oscuro */
    color: #ffffff !important; /* Texto blanco asegurado */
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sub-category:hover {
    background-color: #2a2a2a; /* Fondo más claro al pasar el mouse */
}

.product-info {
    display: flex;
    flex-direction: column; /* Hace que el detalle aparezca debajo */
}

.product-name {
    font-weight: bold;
    font-size: 1rem;
    color: #ffffff; /* Puedes ajustar el color */
}

.product-detail {
    font-size: 0.9rem;
    color: #ccc; /* Gris claro */
    margin-top: 3px; /* Espacio entre el nombre y el detalle */
}

.product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #444;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Footer */
footer {
    background-color: rgba(26, 26, 26, 0.5); /* Añade transparencia con el valor 0.8 */
    color: #e0e0e0;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

footer a {
    color: #76c7c0;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.social-icon {
    width: 50px;
    margin: 0.5rem;
    transition: transform 0.2s ease-in-out;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* Responsivo */
@media screen and (max-width: 768px) {
    #menu {
        flex-direction: column;
        gap: 10px;
    }

    .category {
        width: 100%;
        font-size: 16px;
    }

    .sub-category {
        font-size: 14px;
    }

    .product {
        flex-direction: column;
        align-items: flex-start;
    }

    .product span:last-child {
        margin-top: 5px;
    }
}

@media screen and (max-width: 480px) {
    .category {
        padding: 10px;
        font-size: 14px;
    }

    .sub-category {
        font-size: 12px;
    }

    .product {
        font-size: 12px;
    }
}