/* Reset y base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #1a202c;
    min-height: 100vh;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.logo i {
    font-size: 2rem;
    color: #f093fb;
}
.nav-menu {
    display: flex;
    gap: 2.5rem;
}
.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}
.nav-menu a:hover {
    color: #f093fb;
    background: rgba(240, 147, 251, 0.1);
    transform: translateY(-2px);
}
.cart-icon {
    position: relative;
    font-size: 1.3rem;
    color: #2563eb;
    cursor: pointer;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Sección de restaurantes */
.restaurants-section h2 {
    margin: 2.5rem 0 1.5rem;
    text-align: center;
    font-size: 2.2rem;
    color: #2563eb;
}
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.restaurant-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.restaurant-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 32px rgba(37,99,235,0.10);
}
.restaurant-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.restaurant-info {
    padding: 1.2rem;
}
.restaurant-info h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.restaurant-info p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Menú/productos */
.menu-section h2 {
    margin: 2.5rem 0 1.5rem;
    text-align: center;
    color: #2563eb;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.menu-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
}
.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.menu-item-image {
    text-align: center;
    margin-bottom: 1.5rem;
}
.emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}
.menu-item-info h3 {
    color: #23272f;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.category {
    color: #f5576c;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.price {
    color: #23272f;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.add-to-cart-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.quantity-input {
    width: 80px;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.3s ease;
}
.quantity-input:focus {
    outline: none;
    border-color: #f093fb;
}
.add-to-cart-btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.3);
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #64748b; color: #fff; }
.btn-secondary:hover { background: #334155; }
.btn-back { background: #f1f5f9; color: #2563eb; margin-bottom: 1.5rem; }
.btn-back:hover { background: #e0e7ef; }

/* Carrito y modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
}
.modal-content {
    background: #fff;
    margin: 5% auto;
    border-radius: 16px;
    width: 95%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(37,99,235,0.10);
}
.modal-header, .modal-footer {
    padding: 1.2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 { margin: 0; color: #1e293b; }
.close {
    color: #64748b;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}
.close:hover { color: #1e293b; }
.modal-body { padding: 1.2rem; }

/* Carrito mejorado */
.cart-items {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(245,87,108,0.10);
    padding: 2rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid #f3e8ff;
    transition: background 0.2s;
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item:hover {
    background: rgba(245,87,108,0.04);
    border-radius: 10px;
}
.cart-item-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
}
.cart-item-info .emoji {
    font-size: 2.5rem;
    margin: 0;
}
.cart-item-info h4 {
    color: #23272f;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.cart-item-info p {
    color: #374151;
    font-size: 1rem;
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.cart-item-total {
    color: #23272f;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 60px;
    text-align: right;
}
.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.cart-summary {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(245,87,108,0.08);
    padding: 1.5rem 2rem;
    border: 1px solid #f3e8ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}
.cart-total h3 {
    color: #23272f;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}
.place-order-btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 2px 8px rgba(245,87,108,0.10);
}
.place-order-btn:hover {
    background: linear-gradient(135deg, #f5576c, #f093fb);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(245,87,108,0.18);
}

/* Pedidos y perfil */
.orders-section, .profile-section {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}
#ordersList {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 1.2rem;
    margin-top: 1rem;
}
.order-card {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}
.order-card:last-child { border-bottom: none; }
.profile-info {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 1.2rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .restaurants-grid, .menu-grid {
        grid-template-columns: 1fr;
    }
    .modal-content { width: 99%; }
    .section h1 {
        font-size: 2.5rem;
    }
    .section h2 {
        font-size: 2rem;
    }
    .cart-items, .cart-summary {
        padding: 1.2rem;
    }
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }
    .cart-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .cart-total h3 {
        font-size: 1.2rem;
    }
    .order-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .logo { font-size: 1.4rem; }
    .header { padding: 0.8rem 0; }
    .modal-content { margin: 10% auto; }
    .section h1 {
        font-size: 2rem;
    }
    .menu-item {
        padding: 1.5rem;
    }
    .add-to-cart-form {
        flex-direction: column;
    }
    .quantity-input {
        width: 100%;
    }
}

.footer {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 2.5rem 0 1.5rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.menu-item, .cart-item, .order-item {
    animation: fadeInUp 0.6s ease-out;
}
.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }

/* Mejora visual de la sección de pedidos */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}
.order-item {
    background: rgba(255,255,255,0.98);
    border-left: 6px solid #f5576c;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(245,87,108,0.08);
    padding: 1.5rem 2rem;
    position: relative;
    transition: box-shadow 0.2s;
}
.order-item:hover {
    box-shadow: 0 8px 32px rgba(245,87,108,0.15);
}
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3e8ff;
}
.order-header h4 {
    color: #23272f;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}
.order-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f5576c;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(245,87,108,0.08);
}
.order-status.en-camino {
    background: #fbbf24;
    color: #23272f;
}
.order-details {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.order-details p {
    margin: 0;
    font-size: 1rem;
    color: #374151;
}

.qty-btn {
    background: #fff;
    color: #f5576c;
    border: 2px solid #f5576c;
    font-size: 1.2rem;
    font-weight: 700;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
    margin: 0 0.1rem;
    box-shadow: 0 2px 8px rgba(245,87,108,0.08);
}
.qty-btn:active, .qty-btn:focus {
    outline: none;
    background: #f5576c;
    color: #fff;
    border: 2px solid #f093fb;
    transform: scale(1.08);
}
.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3e8ff;
    color: #aaa;
    border: 2px solid #eee;
}
@media (max-width: 600px) {
    .cart-item-actions {
        gap: 0.5rem;
    }
    .qty-btn, .remove-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.3rem;
        border-radius: 50%;
        padding: 0;
    }
    .remove-btn {
        margin-left: 0.2rem;
    }
} 