#menu-container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding: 3rem 1.5rem;
    background: var(--bg-primary);
    position: relative;
    transition: var(--transition-normal);
}

body.dark #menu-container {
    background: var(--bg-primary);
}

#menu-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2.5rem,
        var(--border-light) 2.5rem,
        var(--border-light) 2.5625rem
    );
    opacity: 0.3;
    pointer-events: none;
}

body.dark #menu-container::before {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2.5rem,
        var(--border-medium) 2.5rem,
        var(--border-medium) 2.5625rem
    );
}

.main-section-p {
    scroll-margin-top: calc(4.5rem + 1.5rem);
    padding: 0;
    position: relative;
}

.main-section-p h2 {
    margin: 0 0 3rem 0;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    text-align: center;
    position: relative;
    padding-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.0625rem;
}

.main-section-p h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0.25rem;
    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-secondary),
        var(--color-accent)
    );
    background-size: 200% 100%;
    border-radius: var(--radius-full);
    animation: underlineGrow 1s ease-out forwards, gradientMove 3s linear infinite;
}

@keyframes underlineGrow {
    to {
        width: 8rem;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.main-section-p h2::before {
    content: '●';
    display: inline-block;
    margin-right: 0.75rem;
    color: var(--color-accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.main-section-p {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.main-section-p h2 {
    grid-column: 1 / -1;
}

.Producto {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    background: var(--surface-primary);
    border: 0.0625rem solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    will-change: transform;
}

body.dark .Producto {
    background: var(--surface-secondary);
    border-color: var(--border-strong);
}

.Producto::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(99, 102, 241, 0.1),
        transparent
    );
    transform: rotate(45deg);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.Producto:hover::before {
    animation: shine 1.5s ease;
}

@keyframes shine {
    0% {
        top: -50%;
        left: -50%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 150%;
        left: 150%;
        opacity: 0;
    }
}

.Producto:hover {
    transform: translateY(-0.75rem);
    box-shadow: var(--shadow-xl), 0 0 2.5rem rgba(99, 102, 241, 0.2);
    border-color: var(--color-primary);
}

body.dark .Producto:hover {
    box-shadow: var(--shadow-xl), 0 0 2.5rem rgba(129, 140, 248, 0.3);
}

.Producto-image-wrapper {
    position: relative;
    width: 100%;
    height: 15rem;
    overflow: hidden;
    background: var(--surface-hover);
    grid-row: 1;
    grid-column: 1;
}

.Producto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    grid-row: 1;
    grid-column: 1;
}

.Producto::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15rem;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.4));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    grid-row: 1;
    grid-column: 1;
}

.Producto:hover::after {
    opacity: 1;
}

.Producto:hover img {
    transform: scale(1.1);
}

.Producto h3 {
    margin: 1.75rem 1.5rem 0.75rem 1.5rem;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: var(--line-height-tight);
    transition: color 0.3s ease;
    position: relative;
    z-index: 3;
    grid-row: 2;
    grid-column: 1;
}

.Producto:hover h3 {
    color: var(--color-primary);
}

body.dark .Producto:hover h3 {
    color: var(--color-primary-light);
}

.Producto strong {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-inverse);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    grid-row: 1;
    grid-column: 1;
}

body.dark .Producto strong {
    background: linear-gradient(135deg, var(--color-secondary-light), var(--color-secondary));
}

.Producto:hover strong {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.Producto > p {
    margin: 0 1.5rem 1.5rem 1.5rem;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    position: relative;
    z-index: 3;
    grid-row: 3;
    grid-column: 1;
}

.Producto ul {
    list-style: none;
    margin: 0;
    padding: 1.25rem 1.5rem;
    background: var(--surface-secondary);
    border-top: 0.0625rem solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 3;
    grid-row: 4;
    grid-column: 1;
    align-self: end;
}

body.dark .Producto ul {
    background: var(--surface-hover);
    border-top-color: var(--border-medium);
}

.Producto ul li {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    background: var(--surface-primary);
    border: 0.0625rem solid var(--border-medium);
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

body.dark .Producto ul li {
    background: var(--surface-secondary);
    border-color: var(--border-strong);
}

.Producto ul li::before {
    content: '✓';
    margin-right: 0.375rem;
    color: var(--color-success);
    font-weight: var(--font-weight-bold);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.Producto:hover ul li {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--text-inverse);
    border-color: transparent;
    transform: translateY(-0.125rem);
}

.Producto:hover ul li::before {
    opacity: 1;
}

body.dark .Producto:hover ul li {
    color: var(--text-tertiary);
    background-color: var(--surface-hover);
}

@media (min-width: 48rem) {
    #menu-container {
        padding: 4rem 2.5rem;
        gap: 6rem;
    }

    .main-section-p {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .main-section-p h2 {
        font-size: 3rem;
        margin-bottom: 3.5rem;
    }

    .Producto-image-wrapper {
        height: 16rem;
    }

    .Producto img {
        height: 100%;
    }

    .Producto::after {
        height: 16rem;
    }

    .Producto strong {
        top: 1rem;
        right: 1rem;
        font-size: var(--font-size-2xl);
        padding: 0.75rem 1.5rem;
    }

    .Producto h3 {
        font-size: var(--font-size-2xl);
    }

    .Producto > p {
        font-size: var(--font-size-lg);
    }

    .Producto ul li {
        font-size: var(--font-size-base);
        padding: 0.625rem 1.25rem;
    }
}

@media (min-width: 64rem) {
    #menu-container {
        padding: 5rem 4rem;
        gap: 7rem;
    }

    .main-section-p {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }

    .main-section-p h2 {
        font-size: 3.5rem;
        margin-bottom: 4rem;
    }

    .Producto-image-wrapper {
        height: 17.5rem;
    }

    .Producto::after {
        height: 17.5rem;
    }

    .Producto strong {
        top: 1.25rem;
        right: 1.25rem;
    }
}

@media (min-width: 90rem) {
    #menu-container {
        padding: 6rem 6rem;
        max-width: 120rem;
        margin: 0 auto;
    }

    .main-section-p {
        grid-template-columns: repeat(4, 1fr);
        gap: 3.5rem;
    }

    .main-section-p h2 {
        font-size: 4rem;
    }

    .Producto-image-wrapper {
        height: 18.75rem;
    }

    .Producto::after {
        height: 18.75rem;
    }

    .Producto strong {
        top: 1.5rem;
        right: 1.5rem;
    }
}

.main-section-p:empty::before {
    content: '📭 No hay productos en esta categoría';
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--text-tertiary);
    font-size: var(--font-size-lg);
    font-style: italic;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.Producto {
    animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.Producto:nth-child(2) { animation-delay: 0.05s; }
.Producto:nth-child(3) { animation-delay: 0.1s; }
.Producto:nth-child(4) { animation-delay: 0.15s; }
.Producto:nth-child(5) { animation-delay: 0.2s; }
.Producto:nth-child(6) { animation-delay: 0.25s; }
.Producto:nth-child(7) { animation-delay: 0.3s; }
.Producto:nth-child(8) { animation-delay: 0.35s; }
.Producto:nth-child(9) { animation-delay: 0.4s; }