/* ============================================
   PAGE: CATALOGO
   ============================================ */

.menu-header {
    padding: 100px 5% 50px;
    text-align: center;
}

.menu-header h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #ffffff;
}

.menu-header h1 span {
    color: var(--primary);
}

.menu-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Menu Grid - Responsive Layout */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* New Design for Catalog Card - Glassmorphism */
.menu-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.menu-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 212, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 212, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.menu-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Card Content */
.menu-item-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item-content h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff; /* Texto claro para visibilidad */
}

.menu-item-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted); /* Color gris claro definido en variables */
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary); /* Color primario brillante */
}

.add-to-cart-btn {
    padding: 10px 20px;
    background: rgba(0, 212, 212, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary);
    border: 1px solid rgba(0, 212, 212, 0.4);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 212, 0.1);
}

.add-to-cart-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 212, 0.4);
    transform: scale(1.05);
}

/* Inline overrides desde catalogo.html */
.menu-header {
    padding: 150px 5% 50px;
    text-align: center;
}

.menu-grid {
    gap: 40px;
    padding: 50px 5%;
}

.menu-item {
    border-top: 2px solid transparent;
    box-shadow: none;
}

.menu-item:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary);
    box-shadow: var(--neon-shadow);
}

.menu-item img {
    height: 280px;
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid var(--glass-border);
}

.price {
    float: right;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.category-badge {
    background: rgba(255, 0, 255, 0.1);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}

.add-to-cart-btn {
    width: 100%;
    margin-top: auto;
    padding: 12px;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.add-to-cart-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--primary);
}

/* Cart Overlay Styles */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 2000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.cart-overlay.active { display: flex; opacity: 1; }
.cart-modal { width: 90%; max-width: 600px; background: var(--bg-surface); border-radius: 20px; padding: 30px; border: 1px solid var(--primary); box-shadow: 0 0 30px rgba(0, 255, 255, 0.2); position: relative; max-height: 90vh; overflow-y: auto; }
.cart-close { position: absolute; top: 20px; right: 20px; background: transparent; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: var(--transition); }
.cart-close:hover { color: var(--secondary); transform: scale(1.2); }
.cart-items { margin: 20px 0; border-bottom: 1px solid var(--glass-border); padding-bottom: 20px; }
.cart-total { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-align: right; margin-bottom: 20px; }
.checkout-form input, .checkout-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 8px; color: white; font-family: inherit; }
.checkout-form input:focus { outline: none; border-color: var(--primary); }

@media (max-width: 600px) {
    .menu-grid {
        grid-template-columns: 1fr;
        padding: 20px 10px;
    }
    .menu-header h1 {
        font-size: 2.5rem;
    }
    .menu-item img {
        height: 200px; /* Reducción de altura en móvil */
        object-fit: cover;
    }
}
